Skip to content

Instantly share code, notes, and snippets.

Brennan Holzer bholzer

View GitHub Profile
View gist:dd713832705831652e3c8806a814d920
import turtle
def drawLine(x1, y1, x2, y2):
turtle.penup()
turtle.goto(x1, y1)
turtle.pendown()
turtle.goto(x2, y2)
View puzz.rb
~ pbpaste | ruby -ne 'require "base64";enc=Base64.decode64($_.chars.each_slice(8).map(&:join).map{|byte|byte.to_i(2)}.map(&:chr).join);ascii=enc.split("").map{|chr|chr.ord};1.upto(26){|i| p ascii.map{|chr| (chr+i).chr}.join}'
"NEBJLLLNRBNLMFLEOBNESBEUMFRROLFBOOSBFLTFFFWIOMRLSNRRMFOEMERWRFTMMLBOJRMWFLELBMTOBFHFWBBMOSSJRMM"
"OFCKMMMOSCOMNGMFPCOFTCFVNGSSPMGCPPTCGMUGGGXJPNSMTOSSNGPFNFSXSGUNNMCPKSNXGMFMCNUPCGIGXCCNPTTKSNN"
"PGDLNNNPTDPNOHNGQDPGUDGWOHTTQNHDQQUDHNVHHHYKQOTNUPTTOHQGOGTYTHVOONDQLTOYHNGNDOVQDHJHYDDOQUULTOO"
"QHEMOOOQUEQOPIOHREQHVEHXPIUUROIERRVEIOWIIIZLRPUOVQUUPIRHPHUZUIWPPOERMUPZIOHOEPWREIKIZEEPRVVMUPP"
"RIFNPPPRVFRPQJPISFRIWFIYQJVVSPJFSSWFJPXJJJ[MSQVPWRVVQJSIQIV[VJXQQPFSNVQ[JPIPFQXSFJLJ[FFQSWWNVQQ"
"SJGOQQQSWGSQRKQJTGSJXGJZRKWWTQKGTTXGKQYKKK\\NTRWQXSWWRKTJRJW\\WKYRRQGTOWR\\KQJQGRYTGKMK\\GGRTXXOWRR"
"TKHPRRRTXHTRSLRKUHTKYHK[SLXXURLHUUYHLRZLLL]OUSXRYTXXSLUKSKX]XLZSSRHUPXS]LRKRHSZUHLNL]HHSUYYPXSS"
"ULIQSSSUYIUSTMSLVIULZIL\\TMYYVSMIVVZIMS[MMM^PVTYSZUYYTMVLTLY^YM[TTSIVQYT^MSLSIT[VIMOM^IITVZZQYTT"
"VMJRTTT
View gist:7533913
(['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 "
View gist:7272804
<!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
View gist:7018191
.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:
View Annotated.js
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
View gist:5339556
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;
View gist:5339514
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;
View gist:5314906
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);
View gist:5114112
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");
You can’t perform that action at this time.