- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
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 BuildTemplate = ' \ | |
<h2 class="small-caps">build</h2> \ | |
'; | |
var BuildV = BaseV.extend({ | |
className: 'btn-group-vertical', | |
initialize: function(o){ | |
this.__player = o.player; |
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
function rnd_snd() { | |
return (Math.random()*2-1)+(Math.random()*2-1)+(Math.random()*2-1); | |
} | |
function rnd(mean, stdev) { | |
return Math.round(rnd_snd()*stdev+mean); | |
} |
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 urllib2 | |
import re | |
import sys | |
from collections import defaultdict | |
from random import random | |
""" | |
PLEASE DO NOT RUN THIS QUOTED CODE FOR THE SAKE OF daemonology's SERVER, IT IS | |
NOT MY SERVER AND I FEEL BAD FOR ABUSING IT. JUST GET THE RESULTS OF THE | |
CRAWL HERE: http://pastebin.com/raw.php?i=nqpsnTtW AND SAVE THEM TO "archive.txt" |
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 python | |
from fractions import Fraction | |
def verify(a): | |
return sum(a)== 2011 and sum(map ((lambda n: Fraction(1,n)), a)) == Fraction(1,1) | |
if __name__=='__main__': | |
x = [ [704, 4, 4, 4, 8, 704, 352, 176, 44, 11], [864, 3, 6, 8, 8, 8, 16, 18, 864, 216], | |
[912, 3, 4, 4, 19, 24, 912, 57, 38, 38], [920, 10, 5, 10, 23, 23, 920, 92, 4, 4], | |
[1080, 4, 4, 6, 9, 12, 12, 20, 432, 432], [1188, 3, 4, 6, 9, 9, 297, 297, 99, 99], |
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
def __merge(a, lo, hi): | |
"""__merge(a,lo,hi) merge sorts array a from | |
index lo to index hi, where 0<=lo <= hi < len(a).""" | |
if lo < hi: | |
m = (lo+hi)/2 | |
__merge(a,lo,m) | |
__merge(a,m+1,hi) | |
b = a[lo:m+1] | |
c = a[m+1:hi+1] | |
i = j = 0; |
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
def HeapSort(A): | |
def heapify(A): | |
start = (len(A) - 2) / 2 | |
while start >= 0: | |
siftDown(A, start, len(A) - 1) | |
start -= 1 | |
def siftDown(A, start, end): | |
root = start | |
while root * 2 + 1 <= end: |
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
body { | |
margin: 0px; | |
font-family: "Helvetica Neue", Helvetica, sans-serif; | |
font-weight: 200; | |
} | |
a { | |
text-decoration: none; | |
color: blue; | |
} |
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
# rgis.py job file | |
# install to /etc/init/rgis.conf | |
description "Backend service for A-RIMS" | |
author "Florian Lengyel <florian.lengyel@gmail.com>" | |
env WORKDIR=/Users/ecr/florian/Dropbox/Programming/REST | |
start on (filesystem and started autofs and started apache2) | |
stop on runlevel [016] |
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
<!DOCTYPE HTML> | |
<HTML> | |
<HEAD> | |
<meta lang="en"> | |
<title>Backbone BaseView with corrections</title> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript" src="underscore.js"></script> | |
<script type="text/javascript" src="backbone.js"></script> | |
</HEAD> | |
<BODY> |
NewerOlder