(64, 64)
0.217446804047 total time
217446.804047 ns / op
(128, 128)
0.085732460022 total time
85732.460022 ns / op
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
rednet.open("right") | |
local db_id = 44 | |
local t = {a="add", id=1, data={name="jeff", age=29, drunk=true, money=3}} | |
local t1 = {a="write", id=1, f="money", v=20} | |
local t2 = {a="read", id=1} | |
local t3 = {a="get", id=1, f="name"} | |
function recv() |
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
>>> r = requests.post("https://steamcommunity.com/login/getrsakey/", params={"username": "b1naryth1ef"}) | |
>>> r.content | |
{ | |
u'publickey_exp': u'010001', | |
u'publickey_mod': u'C1097F74ADE7AAB4E0B5AF7F2CBD39E0E52730763EC777CF50D6CE7BF0C15E41CF2E9F408AA82B19ABD232A4C220FBEA67B6BECB9F008171653E9E2C8939593284E039337B55623B25D1A019483B9E050D056EFD706A03C1934D8E7885CC0DACCB844F78E5862E7C760B0ED35EF042EE325229100ED18BD6ADB71E0169751234BF6A4057FD7C506447606FB4ADE662D006FF4B45F3993344D73BDCD8A824524C3B290024426AE4EBB0541D1C73905CB3B9FAF56F1BF0F93F5F4BFA5FF4E527EE0AD2A536EFBC696F0DEC4EE30E00AA6244B87DB8724D77D62E05C14B712D7C262A09BE71717B0838B00C39C4ACC7A5704DC07166799856C6AEA9E7D5EE4311F7', | |
u'success': True, | |
u'timestamp': u'446618050000 | |
} | |
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 peewee import * | |
class BModel(Model): | |
class Meta: | |
database = db | |
@classmethod | |
def create_table(cls, *args, **kwargs): | |
for field in cls._meta.get_fields(): | |
if hasattr(field, "pre_field_create"): |
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 os, json, sys | |
import subprocess | |
mcpath = None | |
accounts = None | |
def nofile(): | |
print "Could not find accounts.json, please add an account to create it!" | |
sys.exit() |
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 PIL import Image | |
import sys | |
HEAVY_CHAR = "x" | |
LIGHT_CHAR = "." | |
EMPTY_CHAR = " " | |
def get_char_adv(val, third): | |
if val > (third * 2): | |
return HEAVY_CHAR |
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 jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
jQuery.noConflict(); | |
var total = 0; | |
jQuery("td.wht_total").each(function (_, x) { | |
var amount = x.innerText.split("\n")[0].substr(1); | |
amount = parseFloat(amount); | |
if (isNaN(amount)) return; |
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 gc | |
import sys | |
from datetime import datetime | |
from collections import Counter | |
from disco.bot import Plugin, CommandLevels | |
class MemoryDebugPlugin(Plugin): |
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
package queue | |
import "sync" | |
type Queue struct { | |
q []int | |
size int | |
lock *sync.Mutex | |
addlisten chan int | |
} |
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
nickname: "R0WB0AT" | |
levels: | |
# Moderator | |
203287359125585920: 100 | |
# Support | |
180036462832648192: 100 | |
# Devs | |
41771983423143936: 100 | |
NewerOlder