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
var docs = [ | |
'', // index 0 | |
'version', // index 1 | |
'', // index 2 | |
'', // index 3 | |
'', // index 4 | |
'', // index 5 | |
'', // index 6 | |
'', // index 7 | |
'', // index 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
$('#rsvp-list > li h5 > a') | |
.bind( | |
'click', | |
function() { | |
var name = $(this).text(); | |
window.open('http://www.linkedin.com/vsearch/f?keywords=' + | |
encodeURIComponent(name)); | |
return false; | |
}); |
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/sh | |
# Summarize the options for normalizing some of the URLs without using | |
# machine learning | |
# Options | |
DELIMITER=';' | |
LIMIT=15 | |
# Output | |
# Check this with and without a normalizer and an encoder to ensure |
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/sh | |
# Summarize the options for normalizing some of the URLs without using | |
# machine learning | |
# Options | |
DELIMITER=';' | |
LIMIT=15 | |
# Output | |
# Check this with and without a normalizer and an encoder to ensure |
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
blockingQueue = function(config) { | |
// Don't require the use of a new keyword | |
if (!this instanceof blockingQueue) { | |
return new blockingQueue(config); | |
} | |
// Assume that this is attached to a UI activity so time out after 300ms | |
var timeout = config && config.timeout ? config.timeout : 300; |
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
window.bkmt = [ navigator.userAgent, | |
'', | |
navigator.language, | |
document.defaultCharset, | |
(new Date()).getTime(), | |
screen.width, | |
screen.height, | |
screen.colorDepth, | |
(new Date()).getTimezoneOffset(), | |
(new Date()).toLocaleString(), |
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
window.bkmt = [ navigator.userAgent, | |
'', | |
navigator.language, | |
document.defaultCharset, | |
(new Date()).getTime(), | |
screen.width, | |
screen.height, | |
screen.colorDepth, | |
(new Date()).getTimezoneOffset(), | |
(new Date()).toLocaleString(), |
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
import csv | |
import md5 | |
from collections import Counter | |
def process_file(f, l = None): | |
r = csv.reader(open(f), delimiter='\t') | |
i = 0 | |
for p, uas in r: | |
f, s = uas.split('|', 1) | |
yield (md5.new(f).hexdigest(), md5.new(s).hexdigest()) |
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/sh | |
MATCHES=/tmp/ua-defrag/matches | |
TOP=/tmp/ua-defrag/matches.top | |
echo ' graph graphname {'; | |
for U in `cat $MATCHES | tr ' ' '\n' | sort | uniq -c | sort -rn | head -n 10 | awk '{print $2}'` |
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
int main() | |
{ | |
int a, b; | |
a = 10; | |
b = a / 2; | |
printf("%d\n", b); | |
} |