Skip to content

Instantly share code, notes, and snippets.

var docs = [
'', // index 0
'version', // index 1
'', // index 2
'', // index 3
'', // index 4
'', // index 5
'', // index 6
'', // index 7
'', // index 8
$('#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;
});
#!/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
#!/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
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;
window.bkmt = [ navigator.userAgent,
'',
navigator.language,
document.defaultCharset,
(new Date()).getTime(),
screen.width,
screen.height,
screen.colorDepth,
(new Date()).getTimezoneOffset(),
(new Date()).toLocaleString(),
window.bkmt = [ navigator.userAgent,
'',
navigator.language,
document.defaultCharset,
(new Date()).getTime(),
screen.width,
screen.height,
screen.colorDepth,
(new Date()).getTimezoneOffset(),
(new Date()).toLocaleString(),
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())
#!/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}'`
int main()
{
int a, b;
a = 10;
b = a / 2;
printf("%d\n", b);
}