Skip to content

Instantly share code, notes, and snippets.

View grampajoe's full-sized avatar
🔕
On silent

Joe Friedl grampajoe

🔕
On silent
View GitHub Profile

Keybase proof

I hereby claim:

  • I am grampajoe on github.
  • I am grampajoe (https://keybase.io/grampajoe) on keybase.
  • I have a public key ASDvsX6hRDPSKIQIvFaF5-ByyMO1AStOXTcUPd7j7adgggo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1HFyP9YDYyw9EVT3e1d29h65DkTcZeBjG3 https://explorer.blockstack.org/address/1HFyP9YDYyw9EVT3e1d29h65DkTcZeBjG3
@grampajoe
grampajoe / bang.go
Created December 5, 2015 20:21
Bang!!!
package main
import (
"fmt"
"math/rand"
"time"
)
const MaxHP = 3
const MinSleepyTime = 3
@grampajoe
grampajoe / app.py
Created September 11, 2013 20:51
A sample Flask-Restful app that logs exceptions and renders them as JSON documents.
"""
A sample Flask-Restful app that logs exceptions and renders them as
JSON documents.
"""
from flask import Flask
from flask_restful import Api, Resource
from flask_restful.representations.json import output_json
import logging
// Figure out whether we can do this.
function weGood() {
return !!(navigator.getUserMedia || navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia || navigator.msGetUserMedia);
}
if (weGood()) {
alert('cool');
} else {
alert('nah');
@grampajoe
grampajoe / glitch_achievement_filter.js
Created October 18, 2011 21:54
Glitch Achievement Filter Bookmarklet
/*
Glitch Achievement Filter
by Joe Friedl <joe@joefriedl.net>
http://joefriedl.net/lab/bookmarklets/
This bookmarklet fades out the achievements a user has gotten at
glitch.com/achievements/.
*/
javascript:void(function(){
if (!/glitch.com\/achievements/.test(window.location))
@grampajoe
grampajoe / glitch_location_helper.js
Created October 18, 2011 21:28
Glitch Location Helper Bookmarklet
/*
Glitch Location Helper
by Joe Friedl <joe@joefriedl.net>
http://joefriedl.net/bookmarklets
This bookmarklet is used on glitch.com/locations. It adds "Check" and
"Show Features" links for each area that allow a player to see where they've
been and view inline lists of features, respectively.
*/
javascript:void(function() {
@grampajoe
grampajoe / glitch_locator.js
Created October 18, 2011 21:06
Glitch Locator Bookmarklet
/*
Glitch Locator
by Joe Friedl <joe@joefriedl.net>
http://joefriedl.net/lab/bookmarklets/
This bookmarklet is used on a glitch.com profile page to periodically set your
destination to another player's location.
*/
javascript:void(function(){
if (!window.location.href.match(/glitch\.com\/profiles\/[0-9A-Z]+/i))
@grampajoe
grampajoe / .vimrc
Created April 27, 2010 17:04
.vimrc
syntax on
set autoindent
set smartindent
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4