- The competition begins every Friday promptly at beer o'clock (once at least one person has opened a beer and it is 4:00pm or later).
- Anyone in the office at the time of the competition can participate.
- No practice shots can be taken once the competition begins.
- Each participant gets to take one shot after paying the $1 entry fee. All fees must be paid
prior to the first shot.
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 com.salattest | |
import com.mongodb.casbah.Imports._ | |
import com.novus.salat._ | |
import com.novus.salat.global._ | |
import com.novus.salat.dao._ | |
case class Data ( | |
_id: String, |
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
class Person(val name: String) { | |
def greeting = "I am Person %s".format(name) | |
override def equals(that: Any): Boolean = that match { | |
case p: Person if p.name == this.name => true | |
case _ => false | |
} | |
override def hashCode = 11 | |
} |
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
{ | |
"rankerType": "naiveranker", | |
"retrieverType": "mongokeywordindexretriever", | |
"useTfIdf": true, | |
"concurrent": true, | |
"persistResults": false, | |
"targetCorpusTags": [ | |
"wordpress.com", | |
"wordpress.org" |
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
class Node(object): | |
def __init__(self, data): | |
self.data = data | |
self.next_node = None | |
def __repr__(self): | |
return self.data | |
class List(object): | |
""" |
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
class Player(models.Model): | |
name = models.CharField(primary_key=True, max_length=50) | |
date_added = models.DateTimeField('date added', default=datetime.now()) | |
rating = models.IntegerField(default=1600) | |
@property | |
def wins(self): | |
return self.winner_games.all() |
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.2 | |
from concurrent.futures import ThreadPoolExecutor | |
from itertools import chain | |
import time | |
import requests | |
def ngrams(tokens, n): |
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
{ | |
"nodes": [ | |
{"player": "Andy", "rating": 1640}, | |
{"player": "Bob", "rating": 1570}, | |
{"player": "Carmen", "rating": 1590} | |
], | |
"edges": [ | |
{"p1": "Bob", "p2": "Andy", "difference": 50}, | |
{"p1": "Carmen", "p2": "Bob", "difference": 20}, |
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 collection.mutable | |
case class Pair[A, B](key: A, value: B) | |
class HMap[K, V](numBuckets: Int) { | |
val buckets = Seq.fill(numBuckets)(mutable.ListBuffer.empty[Pair[K, V]]) | |
def get(k: K): Option[V] = |
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
from datetime import datetime | |
import json | |
import random | |
import sys | |
names = list(set(sys.argv[1:])) | |
print 'There are %d players: %s' % (len(names), ', '.join(sorted(names))) | |
raw_input('Continue?') |
OlderNewer