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
html,body,#wrapper { | |
width: 100%; | |
height: 100%; | |
margin: 0px; | |
} | |
.chart { | |
font-family: Arial, sans-serif; | |
font-size: 12px; | |
} |
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 pygame, time | |
from pygame.locals import * | |
class InputCallback: | |
def __init__(self, key, callback): | |
self.key = key | |
self.callback = callback | |
class InputHandler: |
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
(add-hook ‘python-mode-hook ‘jedi:setup) | |
(setq jedi:setup-keys t) | |
(setq jedi:complete-on-dot t) |
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
#!/bin/sh | |
# Convert ANSI (terminal) colours and attributes to HTML | |
# Licence: LGPLv2 | |
# Author: | |
# http://www.pixelbeat.org/docs/terminal_colours/ | |
# Examples: | |
# ls -l --color=always | ansi2html.sh > ls.html | |
# git show --color | ansi2html.sh > last_change.html |
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
# Just copy paste the tables from http://wizardofodds.com/games/blackjack/strategy/calculator/ into | |
# the hard, soft, and split variables. Very quick, and VERY dirty. | |
hard = """Hard 2 3 4 5 6 7 8 9 10 A | |
5 H H H H H H H H H H | |
6 H H H H H H H H H H | |
7 H H H H H H H H H H | |
8 H H H H H H H H H H | |
9 H Dh Dh Dh Dh H H H H H | |
10 Dh Dh Dh Dh Dh Dh Dh Dh H H |
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/python | |
# What's that? You like to use punctuation? Forget about it. | |
import sys | |
import random | |
if __name__ == "__main__": | |
string = sys.argv[1:] | |
anagrammed = [] | |
for element in 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
#!/usr/bin/env python | |
import signal | |
import sys | |
import ssl | |
import argparse | |
import re | |
import threading | |
import irc.client | |
import jaraco.logging | |
import pytesseract |