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 Product (options) { | |
//I like to have all my instance variables in one accessible place | |
this.priceChangeListeners = new Array(); | |
this.name = null; | |
this.price = 0.0; | |
this.upc = null; | |
this.image_path = null; | |
// Was: if (options.name == undefined) | |
// In javascript, many values evaluate to false, including undefined |
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
Backdrop- | |
-webkit-transition-delay: 0s; | |
-webkit-transition-duration: 0.15s; | |
-webkit-transition-property: opacity; | |
-webkit-transition-timing-function: linear; | |
background-color: rgb(30, 30, 30); | |
bottom: 0px; | |
color: rgb(56, 56, 56); | |
display: block; |
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
Backdrop- | |
-webkit-transition-delay: 0s; | |
-webkit-transition-duration: 0.15s; | |
-webkit-transition-property: opacity; | |
-webkit-transition-timing-function: linear; | |
background-color: rgb(30, 30, 30); | |
bottom: 0px; | |
color: rgb(56, 56, 56); | |
display: block; |
This file has been truncated, but you can view the full file.
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 LOG() { | |
if (window.DEBUG_MODE) try { | |
console.log.apply(console, arguments) | |
} catch (e) {} | |
} | |
function ASSERT(e, t) { | |
if (!e) { | |
if (t = "Failed assert: " + t, DEBUG_MODE) alert(t); | |
else { |
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
var answers=new Array(); | |
answers[answers.length]=new Array("pienso"); | |
answers[answers.length]=new Array("suele"); | |
answers[answers.length]=new Array("comienza"); | |
answers[answers.length]=new Array("podemos"); | |
answers[answers.length]=new Array("cuestan"); | |
answers[answers.length]=new Array("confieso"); | |
answers[answers.length]=new Array("atraviesa"); | |
answers[answers.length]=new Array("pierde"); | |
answers[answers.length]=new Array("resuelve"); |
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
var stationId=$.parseJSON(localStorage.getItem('p-nowPlaying')).data.id; | |
var oldVal=$.parseJSON(localStorage.getItem('p-station-'+stationId)); | |
var skips=$.parseJSON(localStorage.getItem('p-station-skips')); | |
oldVal.count=0; | |
skips.count=0; | |
localStorage.setItem('p-station-'+stationId, JSON.stringify(oldVal)); | |
localStorage.setItem('p-station-skips', JSON.stringify(skips)); |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1.4.12 (Darwin) | |
mQENBFEmf44BCAC0cEqZTa0SPMCEkJ45ncuvOEecqVMZnufhI0GczcKf/i4mOE/a | |
/Ji0aL3rqLYuOs2Ge8UPZ83LyYYlAaBzD4u5wyTimCGl0xMuuJsA0kfZuQnoI3za | |
ob6donPOms2KSwtc63O6W/4oW6dfOstbb0X63auZJw3b//1myJsQXnOlWYEHBSru | |
n1Np/EwojE0rFYHDcNsD9+rzkXHC+v5H9ptl+tSRVA4YjH0cdXngO0OfTrZSGmXy | |
LngV7ysdIMriA1P6WbOdqs4IKoh/fxGZrEu57BHEWyRQhOHjzs1zDYFiGGT/EW0X | |
xy5yXwiHibt2jop23iSS80nmt7ZtAZUJ9U0LABEBAAG0KUJyZW5uYW4gSG9semVy | |
IDxicmVubmFuLmhvbHplckBnbWFpbC5jb20+iQE4BBMBAgAiBQJRJn+OAhsDBgsJ |
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 getCookies() { | |
var c = document.cookie, v = 0, cookies = {}; | |
if (document.cookie.match(/^\s*\$Version=(?:"1"|1);\s*(.*)/)) { | |
c = RegExp.$1; | |
v = 1; | |
} | |
if (v === 0) { | |
c.split(/[,;]/).map(function(cookie) { | |
var parts = cookie.split(/=/, 2), | |
name = decodeURIComponent(parts[0].trimLeft()), |
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
javascript:var a=35;var b=["#FF57EB","#FF0000","#CE08FF"];var c=["Arial Black","Arial Narrow","Times","Comic Sans MS"];var c="Fuck you all";var d=0.5;var e=40;var f=20;var g=1;var sn=[];var mb,mr,tmr;var is=0;var xm=[];var crds=[];var lr=[];var browserinfos=navigator.userAgent;var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/);var ns6=document.getElementById&&!document.all;var op=browserinfos.match(/Opera/);var browserok=ie5||ns6||op;function rm(range){rand=Math.floor(range*Math.random());return rand;} | |
function go(){if(ie5||op){mb=document.body.clientHeight;mr=document.body.clientWidth;}else if(ns6){mb=window.innerHeight;mr=window.innerWidth;}var ssr=e-f; | |
for(i=0;i<=a;i++){crds[i]=0;lr[i]=Math.random()*15;xm[i]=0.03+Math.random()/10;sn[i]=document.getElementById("s"+i);sn[i].style.fontFamily=c[rm(c.length)];sn[i].size=rm(ssr)+f;sn[i].style.fontSize=sn[i].size;sn[i].style.color=b[rm(b.length)];sn[i].sink=d*sn[i].size/5;if(g==1){sn[i].posx=rm(mr-sn[i].size)}if(g==2){sn[i].posx=rm(mr/2-s |
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
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define PIN 6 | |
// Parameter 1 = number of pixels in strip | |
// Parameter 2 = Arduino pin number (most are valid) | |
// Parameter 3 = pixel type flags, add together as needed: |