Skip to content

Instantly share code, notes, and snippets.

View textarcana's full-sized avatar

Noah Sussman textarcana

View GitHub Profile
@textarcana
textarcana / 1-1000.txt
Created August 28, 2016 20:01 — forked from deekayen/1-1000.txt
1,000 most common US English words
the
of
to
and
a
in
is
it
you
that
1 .["_links"]
1 .["_links"]["comments"]
1 .["_links"]["comments"]["href"]
1 .["_links"]["commits"]
1 .["_links"]["commits"]["href"]
1 .["_links"]["html"]
1 .["_links"]["html"]["href"]
1 .["_links"]["issue"]
1 .["_links"]["issue"]["href"]
1 .["_links"]["review_comment"]
2 .[n]
2 .[n]["_links"]
2 .[n]["_links"]["html"]
2 .[n]["_links"]["html"]["href"]
2 .[n]["_links"]["pull_request"]
2 .[n]["_links"]["pull_request"]["href"]
2 .[n]["_links"]["self"]
2 .[n]["_links"]["self"]["href"]
2 .[n]["body"]
2 .[n]["commit_id"]

Keybase proof

I hereby claim:

  • I am textarcana on github.
  • I am noahsussman (https://keybase.io/noahsussman) on keybase.
  • I have a public key whose fingerprint is 7B6D 07EF 0889 D81E F070 CCDA B9C0 F3AC 536D EA52

To claim this, I am signing this object:

@textarcana
textarcana / anagrams.txt
Created October 29, 2015 18:16
Anagrams for Teachers Pay Teachers
Wordplay Version 7.22 03-20-96, 1991 by Evans A Criswell
University of Alabama in Huntsville [email protected]
Candidate word list : no
Anagram Generation : yes
Adjacent duplicates : yes
Vowel-free words OK : no
Max anagram depth : 32

Tom Knight and the Lisp Machine

by Eric Raymond

A novice was trying to fix a broken Lisp machine by turning the power off and on.

Knight, seeing what the student was doing, spoke sternly: “You cannot fix a machine by just power-cycling it with no understanding of what is going wrong.”

Knight turned the machine off and on. >

@textarcana
textarcana / pre-commit
Created September 2, 2015 18:41 — forked from dy-dx/pre-commit
Pre-commit hook that prevents debugging code and merge artifacts from being committed.
#!/bin/bash
# Pre-commit hook that prevents debugging code and merge artifacts from being committed.
FILES_PATTERN='\.(php|ctp|ctpm|css|rb|erb|haml|js|coffee)(\..+)?$'
FORBIDDEN=( "binding\.pry" "save_and_open_page" "debugger" "it\.only" "describe\.only" ">>>>>>" "<<<<<<" "======" )
# the exit code from `grep -E $FILES_PATTERN` gets swallowed unless the pipefail option is set
set -o pipefail
@textarcana
textarcana / pre-push.sh
Last active January 10, 2016 11:19 — forked from ScotterC/pre-push.sh
Git Hook PrePush protection for force pushing
#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. git config --global init.templatedir '~/.git-templates'
# 2. mkdir -p ~/.git-templates/hooks
@textarcana
textarcana / index.html
Last active August 29, 2015 14:21 — forked from biovisualize/index.html
d3 Game of Life / cellular automaton
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<script type='text/javascript' src="http://mbostock.github.com/d3/d3.js"></script>
<style type='text/css'>
.cell{
stroke: none;
}
@textarcana
textarcana / gist:2a9f8bf46a509a814732
Created January 20, 2015 17:03
sparkler coverage reported by constants.py
Name Stmts Miss Cover
--------------------------------------------------------------------------------------------------------------------------------
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/dateutil/__init__ 3 0 100%
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/dateutil/parser 611 527 14%
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/dateutil/relativedelta 221 192 13%
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/dateutil/rrule 815 720 12%
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/dateutil/tz 575 476 17%
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/dateutil/tzwin 106 103