Skip to content

Instantly share code, notes, and snippets.

043862af7636a38c83a39df6e463360882631bc2f57dabf9a8972a1ef09d00525267ad9c07a196d3765d16aec1eb344415b7e6fff268605b9feac4db49c1d5046a;hkal

Keybase proof

I hereby claim:

  • I am nthomson on github.
  • I am nthomson (https://keybase.io/nthomson) on keybase.
  • I have a public key whose fingerprint is A560 F4B4 9D0B 8D57 DD0C A850 2D0C C24B 546B 3BE1

To claim this, I am signing this object:

@nthomson
nthomson / gist:7b34727562745b192cd2
Last active August 29, 2015 14:18
Cryptographic Equivalence

Cryptographic Equivalence:

A word is considered to be cryptographically equivalent to another word if one word could conceivably be a ciphered using a simple substitution cipher (a 1 to 1 mapping of characters) into the other word.

For example, the words "mom" and "dad" are cryptographically equivalent.

With a cipher that looks like this:

...
m => d
y=(''+1/0)[6];s=y+'oS'+y+(''+!0)[1]+'ing';window[17795081[s](36)](812073[s](36)+'o wo'+35761[s](36))

Problem

It takes us too long to spin up a new project.

Solution

A tool that will allow us to create a new project with varying components from scratch with minimal configuration.

Requirements

news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion fashion f
@nthomson
nthomson / 0_reuse_code.js
Created November 15, 2013 17:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
carrier,origin_state,delivery_date,total_cost
aa-c,AL,05/25/2013,50
aa-c,AL,05/25/2013,75
aa-c,FL,05/25/2013,100
DHL,FL,05/25/2013,300
UPS,AL,05/25/2013,100
USPS,AL,05/28/2013,100
USPS,AL,05/28/2013,50
UPS,FL,05/28/2013,100
aa-c,FL,05/28/2013,35
@nthomson
nthomson / parse_email
Created September 5, 2012 04:07
Simple email parser in ruby
#!/usr/bin/ruby
#Returns an email dictionary that includes all of an emails headers as well as each part of the email
#You can reference which part of the email you'd like by its content type
#Ex: email['parts']['text/html'] will get you the text/html version of the email body
#You can reference headers by the header name
#Ex: email['headers']['To'] will return the value of the "to" field
def headers_and_parts(file_path)
headers = {}
file = File.new(file_path, "r")