This file contains hidden or 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
/* | |
* Original script by Josh Fraser (http://www.onlineaspect.com) | |
* Continued and maintained by Jon Nylander at https://bitbucket.org/pellepim/jstimezonedetect | |
* | |
* Provided under the Do Whatever You Want With This Code License. | |
*/ | |
/** | |
* Namespace to hold all the code for timezone detection. | |
*/ |
This file contains hidden or 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 cookie_tz = $.cookie('tz'); | |
if (user_tz == null) { | |
if (cookie_tz == null) { | |
try { | |
var tmp_tz = jstz.determine_timezone(); | |
if (tmp_tz) { | |
user_tz = tmp_tz.name(); | |
$.cookie('tz', user_tz); | |
} | |
} catch(err) { |
This file contains hidden or 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
from django.contrib.comments.signals import comment_was_posted | |
@receiver(comment_was_posted) | |
def my_callback(sender, **kwargs): | |
comment = kwargs.get('comment') | |
request = kwargs.get('request') |
This file contains hidden or 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
******************************************************* | |
A pirate walks into a bar. The bartender notices that the pirate | |
has a steering wheel in his pants, and promptly inquires, "Sir, | |
I can't help but ask, why do you have a steering wheel in your | |
pants?" | |
With this the pirate replies, "Yaaar! Its driving me nuts!" | |
******************************************************* |
This file contains hidden or 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 simplejson as json | |
import sys | |
import re | |
load = open('/dev/stdin', 'r') | |
buf = '' | |
for line in load: | |
buf += line | |
if line.strip().endswith('}'): | |
try: |
This file contains hidden or 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/bash | |
for i in `hadoop fs -lsr /flume/incoming/2011/04 | awk '{print $8}'`; do | |
echo $i; hadoop fs -cat $i | gzip -t | |
if [ $? -ne 0 ] && [ -n "`echo \"$i\" | grep 'gz$'`" ]; then | |
`echo hadoop fs -rmr -skipTrash $i` | |
fi | |
done |
This file contains hidden or 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
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or 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
# Copyright 2011 Omniscale (http://omniscale.com) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or 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 com.simplegeo.elephantgeo.pig.load; | |
/* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains hidden or 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
Melissa S. yay fun | |
it's almost worse to spend the whole day in super air conditioned convention center. but JSM is statistician mecca. 5k+ go every year | |
4:05 PM | |
Casey C. sounds like your odds will be pretty good | |
*rimshot* | |
4:10 PM | |
Jon R. casey: it may be a *integral* part of her career | |
Casey C. especially if her talk is a real outlier | |
Jon R. She'll prob need to lim n->30 her talk, or she wont have any time for questions at the end | |
Casey C. I bet they'll give her a 5% margin of error |
NewerOlder