This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<shanemhansen> K, noob question. I've attempted to install aws-sdk. When I gem list I get: | |
<shanemhansen> aws-sdk (1.35.0) | |
<shanemhansen> However my local gem which depends on aws-sdk says: | |
<shanemhansen> Unable to resolve dependencies: mf requires awk-sdk (= 1.35.0) | |
<shanemhansen> I have to assume I'm doing something quite stupid. but no idea what. | |
<shanemhansen> The relevant gemspec line looks like: | |
<shanemhansen> s.add_dependency("awk-sdk","1.35.0") | |
<shanemhansen> Any clues on how to get aws-sdk to load when I load something from "mf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
SIZE = 4 | |
import sys | |
import dbhash | |
import random | |
from time import time | |
from multiprocessing import Process, Queue | |
from term2048.game import Game |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE timeline ( | |
MID int, | |
ts timestamp, | |
type text, | |
params map<text, text>, | |
PRIMARY KEY (MID, ts, type) | |
); | |
-- if type is conversion, we need to store order number. conversions are unfortunately rare | |
-- Pardon the likely incorrect date range syntax | |
-- A sample query would be SELECT * from timeline where MID=1 AND ts BETWEEN '2013-04-1' AND '2013-05-1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Query failed (#20140428_163226_00010_ngxmk): An unexpected error occured server side on /10.237.149.163: java.lang.ArrayIndexOutOfBoundsException | |
SQLState: null | |
ErrorCode: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shane@bazinga:~/go/src/github.com/shanemhansen/gowebbench/http$ cat /home/shane/go/src/github.com/shanemhansen/goassm/hello.s | |
// Original source: 1+10 | |
#include "/usr/local/go/src/cmd/ld/textflag.h" | |
TEXT ·main(SB),NOSPLIT,$32 | |
MOVQ $1, AX | |
MOVQ $10, BX | |
ADDQ AX, BX | |
MOVQ BX,(SP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
presto:test> select * from log ; | |
id | name | |
----+------ | |
(0 rows) | |
Query 20140530_201016_00009_jsez7, FINISHED, 1 node | |
Splits: 1 total, 1 done (100.00%) | |
0:00 [0 rows, 0B] [0 rows/s, 0B/s] | |
presto:test> select * from log where id=400; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nil = None | |
def goify(f): | |
""" | |
You know why | |
""" | |
@functools.wraps(f) | |
def wrapper(*args, **kwargs): | |
""" | |
Wrap wrap a function that can return an error | |
in a tuple of (result, error) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(pprof) top10 | |
Total: 174 samples | |
44 25.3% 25.3% 78 44.8% strings.genSplit | |
33 19.0% 44.3% 33 19.0% strings.Count | |
25 14.4% 58.6% 25 14.4% runtime.aeshashbody | |
21 12.1% 70.7% 21 12.1% markonly | |
13 7.5% 78.2% 16 9.2% MCentral_Grow | |
11 6.3% 84.5% 12 6.9% syscall.Syscall | |
7 4.0% 88.5% 7 4.0% runtime.indexbytebody | |
4 2.3% 90.8% 4 2.3% scanblock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"github.com/davecheney/profile" | |
"os" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct List { | |
next: Option<Box<List>> | |
} | |
fn main() { | |
let mut l = Some(box List{next: None}); | |
for _ in range(0, 156751200) { | |
l = match l { | |
Some(l) => l.next, | |
None => None | |
} |
OlderNewer