Skip to content

Instantly share code, notes, and snippets.

View jordanorelli's full-sized avatar
🎴

Jordan Orelli jordanorelli

🎴
View GitHub Profile
<?php
$thing = [
"x" => 1,
"y" => 2
];
var_dump($thing);
$json = json_encode($thing);
echo $json . "\n";
package main
import (
"fmt"
"time"
)
type Bomb struct {
profile *Connection
origin *System
cols, err := a_rows.Columns()
if err != nil {
bail(1, "can't get columns: %v", err)
}
fmt.Println(cols)
for a_rows.Next() {
fml, vals := make([]interface{}, len(cols)), make([]interface{}, len(cols))
for i := 0; i < len(cols); i++ {
fml[i] = &vals[i] // so fml is an interface{} that contains a *interface{}
// yep. this is the fucking worst.
@jordanorelli
jordanorelli / keybase.md
Created December 1, 2014 22:17
keybase.md

Keybase proof

I hereby claim:

  • I am jordanorelli on github.
  • I am jorelli (https://keybase.io/jorelli) on keybase.
  • I have a public key whose fingerprint is FD44 87EA 9122 8349 2AEB E8B8 B157 1119 10E6 3FF8

To claim this, I am signing this object:

package main
import (
"code.google.com/p/go.crypto/ssh"
"code.google.com/p/go.crypto/ssh/terminal"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
package main
import (
"code.google.com/p/go.crypto/ssh"
"code.google.com/p/go.crypto/ssh/terminal"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
package main
import (
"code.google.com/p/go.crypto/ssh"
"code.google.com/p/go.crypto/ssh/terminal"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
from time import sleep, time
from threading import Thread
class Worker(Thread):
def run(self):
count = 0
while True:
print "worker says hi. %r" % time()
sleep(0.1)
from time import sleep, time
from threading import Thread
class Worker(Thread):
def run(self):
count = 0
while True:
print "worker says hi. %r" % time()
sleep(0.1)