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
#!/bin/ksh | |
# | |
# Name: multiple_tkprof.sh | |
# Author: Kodner | |
# Date: 13-Apr-2010 | |
# Purpose: | |
# | |
# Take all of the trace files with an identifier and run tkprof on them | |
# giving each output file an intelligent name - charging_date_serialNum.out. | |
# We're going to use the default sort on all of the tkprofs |
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 | |
import sys | |
# command line arguments are stored in list sys.argv | |
# sys.argv[0] is the name of the python program itself. | |
print sys.argv | |
print "done!" | |
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
# not my code but very similar to what i'm trying to accomplish | |
""" | |
Formula: | |
Na = number of set A elements | |
Nb = number of set B elements | |
Nc = number of common items | |
T = Nc / (Na + Nb - Nc) | |
""" | |
def tanimoto(a, b): |
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
neil-kodners-MacBook-Pro:gardenhose nkodner$ grep -iPo 'g+o+a+l+' gardenhose.out|sort|uniq -c | |
2 GOAAAAAALLL | |
1 GOAAAAALLLLL | |
1 GOAAAAL | |
6 GOAAAL | |
137 GOAL | |
3 GOALLL | |
4 GOALLLLL | |
5 GOALLLLLLLLL | |
1 GOALLLLLLLLLLLLLLLLL |
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 | |
import MySQLdb | |
conn = MySQLdb.connect (host = "localhost",user="root",db="test") | |
cursor = conn.cursor() | |
cursor.execute("SELECT VERSION()") | |
row = cursor.fetchone() | |
print "server version:", row[0] | |
cursor.close() | |
cursor=conn.cursor() | |
conn.close() |
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
neil-kodners-MacBook-Pro:gardenhose nkodner$ time cat *.json|grep -iPo 'g+o+a+l+' |sort|uniq -c|sort -rg | |
50225 goal | |
11727 Goal | |
4202 GOAL | |
798 goAl | |
340 goall | |
92 GOAAAL | |
88 goaL | |
75 Goall | |
69 GoaL |
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
71977 goal | |
17674 Goal | |
8125 GOAL | |
390 goall | |
197 GOAAAL | |
128 GOALLL | |
115 GOal | |
114 GOALLLLL | |
111 goaaaal | |
104 Gooooooaaall |
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
71977 goal | |
17674 Goal | |
8125 GOAL | |
390 goall | |
197 GOAAAL | |
128 GOALLL | |
115 GOal | |
114 GOALLLLL | |
111 goaaaal | |
104 Gooooooaaall |
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
71977 goal | |
17674 Goal | |
8125 GOAL | |
390 goall | |
197 GOAAAL | |
128 GOALLL | |
115 GOal | |
114 GOALLLLL | |
111 goaaaal | |
104 Gooooooaaall |
OlderNewer