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
application: altcanvas-repo | |
version: 1 | |
runtime: python | |
api_version: 1 | |
handlers: | |
- url: .* | |
script: debrepo.py |
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
--- | |
Language: Cpp | |
BasedOnStyle: LLVM | |
AccessModifierOffset: -4 | |
AlignTrailingComments: false | |
ColumnLimit: 0 | |
NamespaceIndentation: Inner | |
ObjCSpaceAfterProperty: true | |
IndentWidth: 4 | |
BreakBeforeBraces: Stroustrup |
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
<?php | |
function asciize($str) | |
{ | |
static $from = array('Á', 'À', 'Â', 'Ä', 'Ǎ', 'Ă', 'Ā', 'Ã', 'Å', 'Ǻ', 'Ą', 'Ɓ', 'Ć', 'Ċ', 'Ĉ', 'Č', 'Ç', 'Ď', 'Ḍ', 'Ɗ', 'É', 'È', 'Ė', 'Ê', 'Ë', 'Ě', 'Ĕ', 'Ē', 'Ę', 'Ẹ', 'Ǝ', 'Ə', 'Ɛ', 'Ġ', 'Ĝ', 'Ǧ', 'Ğ', 'Ģ', 'Ɣ', 'Ĥ', 'Ḥ', 'Ħ', 'I', 'Í', 'Ì', 'İ', 'Î', 'Ï', 'Ǐ', 'Ĭ', 'Ī', 'Ĩ', 'Į', 'Ị', 'Ĵ', 'Ķ', 'Ƙ', 'Ĺ', 'Ļ', 'Ł', 'Ľ', 'Ŀ', 'Ń', 'Ň', 'Ñ', 'Ņ', 'Ó', 'Ò', 'Ô', 'Ö', 'Ǒ', 'Ŏ', 'Ō', 'Õ', 'Ő', 'Ọ', 'Ø', 'Ǿ', 'Ơ', 'Ŕ', 'Ř', 'Ŗ', 'Ś', 'Ŝ', 'Š', 'Ş', 'Ș', 'Ṣ', 'Ť', 'Ţ', 'Ṭ', 'Ú', 'Ù', 'Û', 'Ü', 'Ǔ', 'Ŭ', 'Ū', 'Ũ', 'Ű', 'Ů', 'Ų', 'Ụ', 'Ư', 'Ẃ', 'Ẁ', 'Ŵ', 'Ẅ', 'Ƿ', 'Ý', 'Ỳ', 'Ŷ', 'Ÿ', 'Ȳ', 'Ỹ', 'Ƴ', 'Ź', 'Ż', 'Ž', 'Ẓ', 'á', 'à', 'â', 'ä', 'ǎ', 'ă', 'ā', 'ã', 'å', 'ǻ', 'ą', 'ɓ', 'ć', 'ċ', 'ĉ', 'č', 'ç', 'ď', 'ḍ', 'ɗ', 'é', 'è', 'ė', 'ê', 'ë', 'ě', 'ĕ', 'ē', 'ę', 'ẹ', 'ǝ', 'ə', 'ɛ', 'ġ', 'ĝ', 'ǧ', 'ğ', 'ģ', 'ɣ', 'ĥ', 'ḥ', 'ħ', 'ı', 'í', 'ì', 'i', 'î', 'ï', 'ǐ', 'ĭ', 'ī', 'ĩ', 'į', 'ị', 'ĵ', 'ķ', 'ƙ', 'ĸ', 'ĺ', 'ļ', 'ł', 'ľ', 'ŀ', 'ʼ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
from __future__ import with_statement | |
import glob | |
import os.path | |
import re | |
import urllib | |
import flickrapi | |
api_key = '________________________________' | |
api_secret = '________________' | |
user_id = '____________' |
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 os.path import expanduser, join | |
from base64 import b64encode | |
from glob import glob | |
import webbrowser | |
from suds.client import Client | |
url = 'https://zoink.it/api/torrage.wsdl' | |
client = Client(url) | |
files = glob(join(expanduser('~'), 'Downloads', '*.torrent')) |
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 png | |
def convert(fin, fout): | |
reader = png.Reader(filename=fin) | |
width, height, pixels, metadata = reader.asDirect() | |
#print metadata | |
out = list() | |
for row in pixels: | |
row_out = list() |
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
<?php | |
$DBUSERNAME = 'YOUR_USERNAME'; | |
$DBPASSWORD = 'YOUR_PASSWORD'; | |
$EMAIL = 'YOUR_EMAIL'; | |
$boundary = '==DBBACKUP-'.md5(uniqid(rand(), true)); | |
$date = date('Ymd'); | |
$header = "Content-Type: multipart/mixed; boundary=\"$boundary\""; | |
$message = | |
"This is a multi-part message in MIME format.\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
#!/usr/bin/env python | |
APIKEY = 'YOUR_APIKEY' | |
USERNAME = 'YOUR_USERNAME' | |
PASSWORD = 'YOUR_PASSWORD' | |
#--- Setup --------------------------------------------------- | |
import sys, os, urllib, urllib2, cookielib | |
try: | |
import json | |
except: |
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 re | |
import json | |
import os | |
from urllib.request import urlopen, urlretrieve | |
from glob import glob | |
config = { | |
'api_key': 'YOUR_API_KEY', | |
'sort': 'interestingness-desc', | |
'per_page': 100 |
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
registry = {} | |
class MultiMethod(object): | |
def __init__(self, name): | |
self.name = name | |
self.typemap = {} | |
def __call__(self, *args): | |
types = tuple(arg.__class__ for arg in args) # a generator expression! | |
function = self.typemap.get(types) | |
if function is None: |
OlderNewer