Skip to content

Instantly share code, notes, and snippets.

$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk
$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk
$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk
$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk
$data = array ( 0 => array ( 'alternateHotkeys' => '(happy)', 'name' => 'happy', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_happy_16.png', 'hotkey' => '(happy)', ), 1 => array ( 'alternateHotkeys' => '(hee)', 'name' => 'hee', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_hee_16.png', 'hotkey' => '(hee)', ), 2 => array ( 'alternateHotkeys' => '(rofl)', 'name' => 'rofl', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_rofl_16.png', 'hotkey' => '(rofl)', ), 3 => array ( 'alternateHotkeys' => '(whoa)', 'name' => 'whoa', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_awesome_16.png', 'hotkey' => '(whoa)', ), 4 => array ( 'alternateHotkeys' => '(sad)', 'name' => 'sad', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_sad_16.png', 'hotkey' => '(sad)', ), 5 => array ( 'alternateHotkeys' => '(cry)', 'name' => 'cry', 'type' => 'IMAGE', 'url' => '/images/emoticons/default-pack/e_cry_16.png', 'hotkey' => '(cry)', ), 6 => array ( 'alternateHotk
@YanlongLai
YanlongLai / gist:9dcfbcd38df3fc898755
Created January 19, 2016 13:44 — forked from bradfrost/gist:59096a855281c433adc1
Why I'm Not A JavaScript Developer

Answering the Front-end developer JavaScript interview questions to the best of my ability.

  • Explain event delegation

Sometimes you need to delegate events to things.

  • Explain how this works in JavaScript

This references the object or "thing" defined elsewhere. It's like "hey, thing I defined elsewhere, I'm talkin' to you."

  • Explain how prototypal inheritance works.
@YanlongLai
YanlongLai / KpYBoN.markdown
Last active August 29, 2015 14:27
KpYBoN