I hereby claim:
- I am quantum5 on github.
- I am quantum5 (https://keybase.io/quantum5) on keybase.
- I have a public key whose fingerprint is 1497 6D29 4E79 978E 1336 CF7E 3DC5 5F49 1A67 0BED
To claim this, I am signing this object:
/** | |
* Custom logger to save errors. | |
* | |
* @author Icyene | |
*/ | |
public class ErrorLogger extends PluginLogger { | |
public static Map<String, List<String>>> registry = new HashMap<String, List<String>>>(); | |
public static boolean inited = false; | |
private static Field logger_mc, cb_mcs, logger; |
/** | |
* Copyright (c) 2013 Quantum | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright | |
* notice, this list of conditions and the following disclaimer in the |
import pgmagick | |
def remove_background(image, background=None): | |
"""Returns a copy of `image` that only contains the parts that is distinct | |
from the background. If background is None, returns parts that are | |
distinct from white.""" | |
if background is None: | |
background = pgmagick.Image(image.size(), 'white') | |
elif isinstance(background, pgmagick.Image): | |
blob = pgmagick.Blob() |
import os | |
def download(file, source, target): | |
size = int(source.info().getheaders('Content-Length')[0]) | |
print('Downloading {}, Size: {:,d}'.format(file, size)) | |
downloaded = 0 | |
block = 65536 | |
timer = [time.time, time.clock][os.name == 'nt'] | |
start = timer() | |
while True: |
define("ace/mode/turing", [ | |
"require", "exports", "module", "tokenizer", "ace/lib/oop", | |
"ace/mode/turing_highlight_rules", "ace/mode/folding/coffee" | |
], function(require, exports, module) { | |
var oop = require("../lib/oop"); | |
var TextMode = require("./text").Mode; | |
var Tokenizer = require("../tokenizer").Tokenizer; | |
var TuringHighlightRules = require("./turing_highlight_rules").TuringHighlightRules; | |
var FoldMode = require("./folding/coffee").FoldMode; |
chardet==2.3.0 | |
Django==1.9 | |
django-appconf==1.0.1 | |
django-compressor==1.6 | |
django-cprofile-middleware==0.1 | |
django-debug-toolbar==1.4 | |
django-extensions==1.5.9 | |
django-mailgun==0.8.0 | |
-e git://github.com/django-mptt/django-mptt.git@b41869a9c7bbbdddd9112d684c9430b118b81e31#egg=django-mptt | |
django-newsletter==0.6.dev0 |
import subprocess | |
import requests | |
import argparse | |
import time | |
import sys | |
import os | |
import re | |
from datetime import datetime, timedelta | |
from textwrap import dedent |
#!/usr/bin/env python | |
from __future__ import division | |
import time | |
import os | |
import threading | |
import subprocess | |
from wand.image import Image | |
from watchdog.events import FileSystemEventHandler |
I hereby claim:
To claim this, I am signing this object:
import argparse | |
import sys | |
import time | |
import uuid | |
from datetime import datetime, timedelta, timezone | |
ICAL_TIME = '%Y%m%dT%H%M%SZ' | |
def generate(f, begin=None, alarms=None, opaque=True, duration=15): |