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
def scrabble(dictionary_path, letters, max=10): | |
results = [] | |
letters = set(letters) | |
for word in open(dictionary_path): | |
word = word.strip() | |
if letters == set(word): | |
results.append(word) | |
results.sort(key=len) | |
results.reverse() | |
return results[:max] |
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
--- Layout --- | |
bundles/ | |
bundle_lib.js | |
base/ | |
compiled_javascript.js | |
compiled_css.css | |
iphone/ | |
compiled_javascript.js | |
compiled_css.css |
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
Person = Tea.Object.extend({ | |
type: 'person', | |
name: null, | |
__init__ : function() { | |
console.log("New person made named: " + this.name); | |
}, | |
foo : function(args) { | |
console.log("Bar"); | |
} | |
}); |
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
/** Tea | |
Complex UI framework based on jQuery. | |
Copyright (c) 2012 Brantley Harris. All rights reserved. | |
**/ | |
(function() { | |
var Tea = window.Tea = (window.Tea == undefined ? {root: ''} : window.Tea); |
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
$(function() { | |
function getColor(item){ | |
var rgb = $(item).css('color'); | |
return rgb.substring(4, rgb.length - 1); | |
} | |
$(window).keydown(function(e) { | |
if (e.keyCode == 224) { | |
$('a[href=#]').each(function(i, element) { | |
var item = $(element); |
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 json | |
from django.contrib import messages | |
from django.core import urlresolvers | |
from django.db.models import Q, Count | |
from django.shortcuts import get_object_or_404, redirect, render | |
from django.contrib.auth.decorators import login_required, user_passes_test | |
from django.views.decorators.http import require_POST | |
from taggit.models import Tag |
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 "stdio.h" | |
class Object { | |
@collected; | |
int x = 1; | |
float y = 2.0; | |
void init(self, x, *args) { | |
self.x = x; |
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
able | |
about | |
above | |
abuse | |
accept | |
accuse | |
across | |
act | |
actor | |
add |
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
38% Chance to Avoid being Stunned | |
30% Chance to Dodge Spell Damage | |
20% Elemental Resistances while holding a Shield | |
+2 Life gained for each enemy hit by your Attacks | |
+30 Life gained on Kill | |
+40 Mana Gained on Kill | |
+3 Maximum Endurance Charge | |
+3 Maximum Frenzy Charge | |
+3 Maximum Power Charge | |
19% additional Block Chance With Staves |
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
https://dl.dropboxusercontent.com/u/622809/England.eu4 |
OlderNewer