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 ( | |
"fmt" | |
"sort" | |
) | |
type Thingy struct { | |
Woop int | |
} |
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 ( | |
"database/sql" | |
"flag" | |
"image" | |
_ "image/jpeg" | |
_ "image/png" | |
"io/ioutil" | |
"log" |
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
""" | |
Run N number of processes at once | |
""" | |
from itertools import izip_longest | |
from multiprocessing import Process | |
import time | |
DATA = (('a', '2'), ('b', '4'), ('c', '6'), ('d', '8'), |
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/env python3 | |
""" | |
hipchatter | |
Import ALL THE EMOJI (allthethings) from Hipchat into Slack! | |
Usage: | |
hipchatter <slack-team> <slack-cookie> | |
Options: |
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/env python | |
""" | |
top_history | |
Print the top 10 commands from your bash history | |
Usage: | |
top_history <user_name> | |
Options: |
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/env python | |
""" | |
dumb | |
this is pretty dumb | |
Usage: | |
dumb <file_name> | |
Options: |
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
""" | |
My Python spin on this: | |
http://burakkanber.com/blog/machine-learning-genetic-algorithms-in-javascript-part-2/ | |
""" | |
import math | |
import random | |
import sys | |
from copy import copy | |
from optparse import OptionParser |
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
""" | |
My Python spin on this: | |
http://burakkanber.com/blog/machine-learning-genetic-algorithms-part-1-javascript/ | |
""" | |
from optparse import OptionParser | |
import random | |
import string | |
import sys | |
import time |