Skip to content

Instantly share code, notes, and snippets.

View spoon16's full-sized avatar
:shipit:

Eric Schoonover spoon16

:shipit:
  • Snohomish WA, Alexandria VA, and Costa Mesa CA
  • 11:17 (UTC -04:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am spoon16 on github.
  • I am spoon16 (https://keybase.io/spoon16) on keybase.
  • I have a public key whose fingerprint is 24E1 E382 1873 D9EC 1A04 6B0D ED35 6E91 7025 49F2

To claim this, I am signing this object:

@spoon16
spoon16 / keybase.md
Created April 7, 2015 21:27
keybase.md

Keybase proof

I hereby claim:

  • I am spoon16 on github.
  • I am spoon16 (https://keybase.io/spoon16) on keybase.
  • I have a public key whose fingerprint is A899 7039 3ED0 5BDB 637F 6519 F5D7 4B95 8D7C A1EA

To claim this, I am signing this object:

;; I feel like this should be less lines
(defn add-edge
[graph edge]
(let [parts (clojure.string/split edge #",")
from (first parts)
to (second parts)
graph (if (not (contains? graph from))
(assoc-in graph [from] #{})
graph)
graph (if (not (contains? graph to))
@spoon16
spoon16 / New-TableRow.ps1
Created May 3, 2010 04:51
Why is the output of this function (line:46 - $row) an instance of System.Array instead of an instance of Intellidimension.Rdf.TableRow?
function New-TableRow {
<#
.Synopsis
Creates a new table row that can be added to a table
.Description
Creates a new Intellidimension.Rdf.TableRow instance that can be added to a table
.Parameter cellCount
The number of cells the row will have
import sys
class Graph(object):
def __init__(self, nodeCount, links):
self.nodeCount = nodeCount
self.matrix = [[False] * self.nodeCount for _ in range(self.nodeCount)]
for l in links:
self.matrix[l[0]][l[1]] = self.matrix[l[1]][l[0]] = True
def paths(self, path):
@spoon16
spoon16 / out
Created October 7, 2011 22:47
winston log output when meta param is a literal ("literal" instead of {object: true})
7 Oct 22:45:15 - info: handshake authorized 0=6, 1=0, 2=8, 3=3, 4=8, 5=8, 6=3, 7=1, 8=7, 9=6, 10=8, 11=7, 12=1, 13=8, 14=7, 15=3, 16=6, 17=0, bold=608388317687187360, underline=608388317687187360, italic=608388317687187360, inverse=608388317687187360, grey=608388317687187360, black=608388317687187360, yellow=608388317687187360, red=608388317687187360, green=608388317687187360, blue=608388317687187360, white=608388317687187360, cyan=608388317687187360, magenta=608388317687187360, rainbow=608388317687187360, zalgo=6̥̳̣̣̠̲͍̞͖̬͉̟̫̩̦̺̘̥̱͚̯̖͍̘͎̲̼͍̪̦̰̼̭͇̩̠̮͇͖͈̬̯̟̜͕͖͍̪͖͚̲͍̬̤ͮͩ̆̏̍̕ͅ0̶̥̝̯̹̼̭̟͚̰̰̮̠̫͚̯̦̯ͣ̆̍͋ͩ͊ͣ8̵̮̟̦̰̺̲̝̰̪̻̩͉̩̬̭̙͙̬̪̠̹̮̤̤̙̥̲͙̜͎͔̟̼͍̮̠̪ͯ̏̔͐̓̐̐͂͌̓͋̋ͪ͂͂̆3̪͎̥̟͈̙̬̠͕͈̩̣̟̗̞͈̰̟̗̲̦̠̞̺̰̻̠̳̞̬̱͓͓̜͍̦̠̳͚̻̤̭̫͓͍̬̖̘͉̹͈̟ͭ̄́̾͐ͣ̔̍̌͊̓͗̌̕ͅͅͅ8̣̯̼̙̟̺͎͓̠̲̪̰̜͈͚̩͎̹̞̤̻͈̮͕̣̖̗̩̯̻̥̝̱̺̠̣ͣ̍́ͪ̾͌̓̃͐ͬ̍̂͠ͅ8̹̤̭̰̮̱̗̤̮̥̞̪̞͈͇̲̹̬͕̩̺͕̜̳͙̥͎͙ͬ͂͌̆ͦ͜ͅͅ3͖̜̥̙̗̫̝̮͕̩̙͇̩̫̩̫͇̼ͣ́̓ͨ̈ͫ̕ͅͅ1̧̜̥̥̰̰̣̲̘̠̖̝̭͙̯̮͉̩̥̬̼̰͙͉̮̗͎͔̪̲̘̘͙̗̹̹̠̱̺͚͖̜̥͙̞̩̀͊̎ͯͤ͒̒͗̉ͣ̈̈͂7̝̥̺̞͙̯̦̯̗̼̗̼̠̝͎͈̭̥̰̻̟̭̬͔ͬͧ̍͆̒̂͘ͅ6̻̪̮̦̘̳̰͚̣̬̰̘̮͈̙̤͇̻͎̮̘̬̻̯͚̱̗̟̬̘̼͖͔̘͕̗̟̳͈̪̤̰̭͙͎̪̤̰̖͋̈̌̀͐͊͛ͦ͟ͅͅ8̡̥̭̝͖̹ͩͮ̍ͩͪ7̤̰̟̺͉͚͔͚͓̟
@spoon16
spoon16 / ReverseHW C#
Created October 22, 2011 21:03 — forked from blaineh/ReverseHW C#
Reverse Hello world C#
//namespace names this object.
namespace blaine
{
class helloworld
{
//Every program starts with a Main method.
//Static indicates that you can access this method without having an object of your class available.
//void indicates to the compiler that your method will not return a value to the calling method.
static void Main()
{
@spoon16
spoon16 / package.json
Created October 30, 2011 21:09
package.json example
{
"name": "example",
"version": "0.1.0",
"author": "User <email>",
"contributors": [
{ "name": "Eric Schoonover", "email": "erics@capdes.com" }
],
"repository": {
"type": "git",
"url": "https://github.com/user/repo"
hello world
@spoon16
spoon16 / error.txt
Created November 15, 2011 03:00
Maven/Lein Error
$ lein deps
[INFO] artifact org.clojure:clojure-contrib: checking for updates from releases
[INFO] artifact org.clojure:clojure-contrib: checking for updates from thirdparty
[INFO] artifact org.clojure:clojure-contrib: checking for updates from central
[INFO] artifact org.clojure:clojure-contrib: checking for updates from clojars
[INFO] artifact org.clojure:tools.logging: checking for updates from releases
[INFO] artifact org.clojure:tools.logging: checking for updates from thirdparty
[INFO] artifact org.clojure:tools.logging: checking for updates from central
[INFO] artifact org.clojure:tools.logging: checking for updates from clojars
[INFO] artifact log4j:log4j: checking for updates from releases