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 steps(): | |
a = 1 | |
dx = 0 | |
dy = 0 | |
x = 0 | |
y = 0 | |
while True: | |
a += 1 | |
dx = ((1+a) & 1) - (2 if (a % 4) == 0 else 0) | |
dy = (a & 1) - (2 if (a % 4) == 1 else 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
import asyncore | |
import asynchat | |
import socket | |
import struct | |
import sys | |
import M2Crypto as m2crypto | |
from hashlib import sha1 | |
import requests | |
import base64 | |
import random |
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
skipping Kryptos09's Manor: no map revision defined | |
skipping Kakariko Village: no map revision defined | |
skipping Player:Muldoonaz: no map revision defined | |
skipping Emerald City: no map revision defined | |
skipping Industrial warp point: no map revision defined | |
skipping Shremplism: no map revision defined | |
skipping Chunk Error: unable to normalise map revision: After Halloween update 2010 | |
skipping Golden Road Castle: no map revision defined | |
skipping Mumble base: no map revision defined | |
skipping Mumble base: no map revision defined |
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 barneymc.protocol.packet import * | |
import base64 | |
import random | |
import M2Crypto as m2crypto | |
## | |
## From https://github.com/bozhu/RC4-Python | |
## |
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
pbarney@invert ~ $ pulseaudio | |
W: [pulseaudio] pid.c: Stale PID file, overwriting. | |
E: [alsa-sink] memblockq.c: Assertion 'bq->n_blocks >= 1' failed at pulsecore/memblockq.c:182, function drop_block(). Aborting. | |
Aborted | |
barney@invert ~ $ pulseaudio | |
W: [pulseaudio] pid.c: Stale PID file, overwriting. | |
E: [alsa-sink] memblockq.c: Assertion '!bq->blocks || (bq->write_index + (int64_t)chunk.length <= bq->blocks->index)' failed at pulsecore/memblockq.c:408, function pa_memblockq_push(). Aborting. | |
Aborted | |
barney@invert ~ $ pulseaudio | |
W: [pulseaudio] pid.c: Stale PID file, overwriting. |
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
Got 339 usages of Template:Creation | |
skipping Kryptos09's Manor: no map revision defined | |
skipping Kakariko Village: no map revision defined | |
skipping Player:Muldoonaz: no map revision defined | |
skipping Emerald City: no map revision defined | |
skipping Industrial warp point: no map revision defined | |
skipping Shremplism: no map revision defined | |
skipping Chunk Error: unable to normalise map revision: After Halloween update 2010 | |
skipping Golden Road Castle: no map revision defined | |
skipping Mumble base: no map revision defined |
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 json | |
import nerdnu | |
import os | |
import re | |
import reddit | |
from nerdnu import app | |
data_dir = 'data' |
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
127.0.0.1 - - [11/Jun/2012 06:59:53] "GET /survival HTTP/1.1" 500 - | |
Traceback (most recent call last): | |
File "/usr/share/pyshared/flask/app.py", line 1518, in __call__ | |
return self.wsgi_app(environ, start_response) | |
File "/usr/share/pyshared/flask/app.py", line 1506, in wsgi_app | |
response = self.make_response(self.handle_exception(e)) | |
File "/usr/share/pyshared/flask/app.py", line 1504, in wsgi_app | |
response = self.full_dispatch_request() | |
File "/usr/share/pyshared/flask/app.py", line 1264, in full_dispatch_request | |
rv = self.handle_user_exception(e) |
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
{ | |
"survival": [], | |
"pve": [ | |
{ | |
"hours": 54, | |
"name": "akfek" | |
}, | |
{ | |
"hours": 47, | |
"name": "Norami" |
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 nerdnu import app | |
from flask import Flask, request, redirect, url_for, render_template, flash | |
import json | |
def load_json(fname): | |
f = open('nerdnu/data/%s' % fname, 'r') | |
o = json.load(f) | |
f.close() | |
return o |