Ember js view events

Took me a while to dig this out. Here is a list of event methods views can implement and the corresponding javascript events.

 

Browser Event : Ember View Event

touchstart: touchStart

touchmove: touchMove

touchend: touchEnd

touchcancel: touchCancel

keydown: keyDown

keyup: keyUp

keypress: keyPress

mousedown: mouseDown

mouseup: mouseUp

click: click

dblclick: doubleClick

mousemove: mouseMove

focusin: focusIn

focusout: focusOut

mouseenter: mouseEnter

mouseleave: mouseLeave

submit: submit

change: change

dragstart: dragStart

drag: drag

dragenter: dragEnter

dragleave: dragLeave

dragover: dragOver

drop: drop

dragend: dragEnd

Git commits from Emacs

I've always hated switching to vim every time I want to write a commit message. And Emacs (the obviously superior editor) always takes too damned long to load with my crazy .emacs file. So I did a little digging and came up with this.

First add a minimal .emacs file (call it .emacs.minimal and put it in your home directory):

Then add in your ~/.gitconfig file add these lines:

And now you should be able to edit config files with the best damned editor and minimal startup time. You're welcome.