Skip to content

Instantly share code, notes, and snippets.

@bholzer
bholzer / Public Key
Created February 21, 2013 20:16
Public Key
-----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
@bholzer
bholzer / gist:5051418
Last active December 14, 2015 07:29
Unlimited iHeartRadio skips
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));
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 has been truncated, but you can view the full file.
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);
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;
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;
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
.file "test.c"
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "Hello world"
.section .text.startup,"ax",@progbits
.p2align 4,,15
.globl main
.type main, @function
main:
.LFB31:
@bholzer
bholzer / gist:7272804
Created November 1, 2013 22:11
Here ya go!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="content-type" />
<title>novemberissue</title>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
</head>
<body alink="" bgcolor="#ffffff" leftmargin="0" link="" marginheight="0" marginwidth="0" style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" text="#000000" topmargin="0" vlink="">
<h3 style="text-align: center;"><span style="color:#A52A2A;">Join the thousands around the world who read Regional Musician!<br />
Click below to start reading today!</span><span style="color:#ff8c00;"><span id="cke_bm_651E" style="display: none;">&nbsp;</span><span id="cke_bm_650E" style="display: none;">&nbsp;</span><span id="cke_bm_640E" style="display: none;">&nbsp;</span><span id="cke_bm_628E" style="display: none;">&nbsp;</span><span id="cke_bm_312E" style="display: none;">&nbsp;</span><span id="ck
(['chain', 'rang', 'watch'].map{|i| "Gold all in my #{i}"}<<"Don't believe me just watch "+"nigga "*3).join(', ')
=> "Gold all in my chain, Gold all in my rang, Gold all in my watch, Don't believe me just watch nigga nigga nigga "