I hereby claim:
- I am isagalaev on github.
- I am isagalaev (https://keybase.io/isagalaev) on keybase.
- I have a public key whose fingerprint is CD82 579D D412 FA0F D9CF 8797 4817 287F 1B64 69EA
To claim this, I am signing this object:
def test_cleanup(): | |
cleaned_objects = [] | |
class A: | |
def cleanup(self): | |
cleaned_objects.append(self) | |
objects = main.init([A, A, A]) | |
main.cleanup(objects) |
DICT = {'hi', 'there', 'hit', 'here'} | |
def camelcase(tail, head=''): | |
heads = [head.title()] if head in DICT else [] | |
return ([h + t for h in heads for t in camelcase(tail)] + camelcase(tail[1:], head + tail[0]) | |
if tail else heads) | |
print(camelcase('hithere')) |
extern crate time; | |
use std::env; | |
use std::ptr; | |
use time::Duration; | |
const SIZE: usize = 10 * 1024 * 1024; |
#include <stdio.h> | |
#include <time.h> | |
#include <yajl/yajl_parse.h> | |
unsigned char buffer[64 * 1024]; | |
unsigned int count = 0; | |
int count_string(void *ctx, const unsigned char *value, size_t length) { |
const BUFSIZE: usize = 64 * 1024; | |
use std::fs::File; | |
use std::io::Read; | |
struct Lexer<'a> { | |
buf: & 'a mut [u8; BUFSIZE], | |
len: usize, | |
pos: usize, | |
f: File, |
import ijson | |
def parse(events): | |
for prefix, event, value in events: | |
if event == 'number': | |
value = float(value) | |
yield prefix, event, value | |
f = urllib.request.urlopen('...') | |
for obj in ijson.common.items(parse(ijson.parse(f)), '... prefix ...'): |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
# coding: utf-8 | |
import os | |
import random | |
import glob | |
from PIL import Image | |
import numpy |
# coding: utf-8 | |
from fabric.api import env, cd, run, local, get | |
from fabric.contrib.files import sed | |
env['hosts'] = ['softwaremaniacs.org'] | |
SRC = '/home/maniac/code/highlight' | |
MEDIA = '/var/www/media/soft/highlight' | |
CACHE = '/home/maniac/app-data/hljs_cache' |