Skip to content

Instantly share code, notes, and snippets.

View saml's full-sized avatar

Sam Lee saml

  • New York, NY
View GitHub Profile
@saml
saml / curlp.bash
Last active September 4, 2015 01:44
#!/bin/bash
echo -e "status\t size\t time(secs)"
for x in "$@"
do
curl -so /dev/null -w "%{http_code}\t%{size_download}\t%{time_total} $x\n" "$x" &
done
wait

install quotable on CentOS 6.5

# install system dependencies: ffi and ssl
sudo yum install libffi-devel # assumming openssl-devl is installed.

# clone project
git clone https://github.com/nprapps/quotable.git 
cd quotable
#!/bin/bash
if (( $# < 1 ))
then
echo "Usage: $0 prefix"
exit 1
fi
p="$1"

・。゜ ・・゜ ・ 。。 ゜・。 。 。 ゜。・゜ ❅。 ❅・。・。 ゜・ 。゜ ・ 。。゜・。 ❅゜ ゜ ・ 。゜・ ❆゜ ・。❅゜❅ ゜・ 。 ❅゜ ゜ ・。゜ ・・❆ ゜・ 。 ゜❅゜ ゜゜・。 。 ゜・。 。 。゜ ・ 。 ❆・❅ ゜゜・。 ゜・ ❆゜・ 。 ❅゜ ゜・。゜ ・・゜ ・ 。。 ゜・。 。 。 ゜。・゜ ❅。 ❅・。・。 ゜・ 。゜ ・ 。。゜・。 ❅゜ ゜ ・ 。゜・。゜ ・・゜ ・ 。。 ゜・。 。 。 ゜。・゜ ❅。 ❅・。・。 ゜・ 。゜ ・ 。。゜・。 ❅゜ ゜ ・ 。゜・ ❆゜ ・。❅゜❅ ゜・ 。 ❅゜ ゜ ・。ㅇㅇ゜ ・・❆ ゜・ 。 ゜❅゜ ゜゜・。 。 ゜・。 。 。゜ ・ 。 ❆・❅ ゜゜・。 ゜・ ❆゜・ 。 ❅゜ ゜・。゜ ・・゜ ・ 。。 ゜・。 。 。 ゜。・゜ ❅。 ❅・。・。 ゜・ 。゜ ・ 。。゜・。 ❅゜ ゜ ・ 。゜・。゜ ・・゜ ・ 。。 ゜・。 。 。 ゜。・゜ ❅。 ❅・。・。 ゜・ 。゜ ・ 。。゜・。 ❅゜ ゜ ・ 。゜・ ❆゜ ・。❅゜❅ ゜・ 。 ❅゜ ゜ ・。゜ ・・❆ ゜・ 。 ゜❅゜ ゜゜・。 。 ゜・。 。 。゜ ・ 。 ❆・❅ ゜゜・。 ゜・ ❆゜・ 。

D G A D G A
Oh my way back home is long. Particularly long.
D/F# G A Bm Em A D
Cause I'm walking slow. So I may bump into you. I may bump into you.
D G A D G A
Oh my way back home is long. Particularly long.
D/F# G A Bm Em A D
Cause I'm walking slow. Unnecessarily slow. I may bump into you.
G A F#m Bm Em A D
Would you be a cop? I'd be a thief. So you can chase after me everyday.
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"strings"
// Expr is something that can be simplified.
type Expr interface {
simplify() Expr
}
// binary operator on int.
type operator struct {
op func(a int, b int) int
a Expr
use strict;
use warnings;
foreach my $line (<STDIN>) {
if ($line =~ /FILEVERSION/) {
if ($line =~ /\S+\s+(\S+).+/) {
print "$1\n";
}
}
}
#!/bin/bash
if [[ -z ${ORIGINALGOPATH+x} ]]
then
ORIGINALGOPATH="$GOPATH"
GOPATH="$(pwd):$ORIGINALGOPATH"
echo "Activating..."
echo "GOPATH = $GOPATH"
deactivate() {
-- MarI/O by SethBling
-- Feel free to use this code, but please do not redistribute it.
-- Intended for use with the BizHawk emulator and Super Mario World or Super Mario Bros. ROM.
if gameinfo.getromname() == "Super Mario World (USA)" then
Filename = "DP1.state"
ButtonNames = {
"A",
"B",
"X",