Skip to content

Instantly share code, notes, and snippets.

Avatar

Jenn Creighton jcreighton

View GitHub Profile
View Get all the Tabby Cat Chrome Extension goodies!
{"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}
@jcreighton
jcreighton / tamagotchi.js
Last active Mar 25, 2017
Tamagotchi Game
View tamagotchi.js
function Canvas() {
var options = {
width: 600,
height: 400,
backgroundColor: '#eeeeee'
}
// Create canvas
this.canvas = document.createElement('canvas');
this.canvas.className = 'tamagotchi-game';
View irritable-iterator.js
function irritable() {
let step = 0;
return {
next: function() {
step++;
if (step === 1) {
return { value: '😠', done: false };
}
if (step === 2) {