View throwback.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
var Button = React.createClass({ | |
getDefaultProps: function() { | |
return { | |
onClick: function() { console.log('Throwback React') } | |
} | |
}, | |
handleOnClick: function() { | |
this.props.onClick(); |
View irritable-iterator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function irritable() { | |
let step = 0; | |
return { | |
next: function() { | |
step++; | |
if (step === 1) { | |
return { value: '😠', done: false }; | |
} | |
if (step === 2) { |
View tamagotchi.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Canvas() { | |
var options = { | |
width: 600, | |
height: 400, | |
backgroundColor: '#eeeeee' | |
} | |
// Create canvas | |
this.canvas = document.createElement('canvas'); | |
this.canvas.className = 'tamagotchi-game'; |
View Get all the Tabby Cat Chrome Extension goodies!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"collected":["glasses-1","glasses-2","glasses-3","glasses-4","glasses-5","glasses-6","glasses-7","glasses-8","hat-1","hat-2","hat-3","hat-4","hat-5","hat-6","hat-7","hat-8","hat-9","hat-10","hat-11","hat-12","toy-1","toy-2","toy-3","toy-4","toy-5","toy-6","toy-7","toy-8","toy-9","toy-10","toy-11","toy-12","toy-13","toy-14","toy-15","toy-16","toy-17","toy-18"],"active":{"hat":"hat-11","toy":"toy-14","glasses":"glasses-8"},"unseen":[],"shuffle":false} |