Skip to content

Instantly share code, notes, and snippets.

View rdai10's full-sized avatar
🤹‍♀️
Focusing

Rebecca Dai rdai10

🤹‍♀️
Focusing
View GitHub Profile
@rdai10
rdai10 / aui-use-vs-ready.md
Created March 15, 2018 00:01 — forked from zenorocha/aui-use-vs-ready.md
A.use vs A.ready
AUI().use('aui-button', function(A) {
   // This code will fire when
   // aui-button module and its
   // dependencies are loaded
});

Now, there are times when you want to both load some modules and fire your callback on DOM ready, so here is how you would do that in Alloy:

@rdai10
rdai10 / jsKeyCode.txt
Created April 18, 2017 22:10 — forked from lbj96347/jsKeyCode.txt
javascript Key Code
keycode 8 = BackSpace BackSpace
keycode 9 = Tab Tab
keycode 12 = Clear
keycode 13 = Enter
keycode 16 = Shift_L
keycode 17 = Control_L
keycode 18 = Alt_L
keycode 19 = Pause
keycode 20 = Caps_Lock
keycode 27 = Escape Escape