I hereby claim:
- I am pjz on github.
- I am pjz (https://keybase.io/pjz) on keybase.
- I have a public key whose fingerprint is 6B5E E345 00C0 73D0 2B56 55C4 1F2F D328 D987 D2AE
To claim this, I am signing this object:
| import random | |
| def tosses_until(s): | |
| tosses = '' | |
| while not tosses.endswith(s): | |
| tosses += random.choice('HT') | |
| return len(tosses) | |
| TRIALS = 10000 |
| """ | |
| RegistryActor - a dict-based dispatcher for actors | |
| Usage: | |
| from .actors import RegistryActor | |
| class Hello(RegistryActor): | |
| def __init__(self): | |
| super(self.__class__, self).__init__() |
| """ | |
| ActorHandler - class-based dispatch for actors | |
| Usage: | |
| from thespian.actors import Actor | |
| handler = ActorHandler() | |
| class Hello(Actor): |
| #!./goscript | |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { | |
| fmt.Println("hello"); |
| static char* ICACHE_FLASH_ATTR findUrlPathStart(char *url) { | |
| int i = 7; // skip 'http://' | |
| while (url[i] != '/') { i++; } | |
| return &url[i]; | |
| } | |
| void ICACHE_FLASH_ATTR httpClientFetch(char *url, int retbufsz, void (*cb)(char*)) { | |
| static struct espconn conn; | |
| static ip_addr_t ip; | |
| char *hcserver = url[7]; // skip 'http://' |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| ## these need to be set | |
| # initial account credentials | |
| SEED_USER=admin | |
| SEED_PASS=password | |
| # required for new users to be able to sign up ; default to something random | |
| INVITATION_CODE=`dd if=/dev/urandom bs=1024 count=1 | md5sum -` |
| src = """ | |
| from fakemodule import fakefunc | |
| fakefunc() | |
| print dir() | |
| """ | |
| def call_with_fakemodule(usersrc): | |
| class fmod(object): | |
| @staticmethod |
| from fabricate import run | |
| raw_css = os.path.join(website.www_root, '..', 'templates', 'gittip.css') | |
| class Cache(object): | |
| data = None | |
| cache = Cache() | |
| ^L |
| from subprocess import Popen, PIPE | |
| def cat(*files): | |
| result = [] | |
| for f in files: | |
| result.extend(open(f).readlines()) | |
| return result | |
| def pipe(cmd, text=None,filename=None): |