I hereby claim:
- I am e-beach on github.
- I am beachicus (https://keybase.io/beachicus) on keybase.
- I have a public key ASDSgfhNDUmyKoHsUCFoqYKLm66qDiJzY3yh95rhuSTa4go
To claim this, I am signing this object:
import sys | |
# Error-inducing lines didn't have anything interesting. | |
only_errs = False | |
def to_camel_case(snake_str): | |
components = snake_str.split('_') | |
return "".join(x.title() for x in components) | |
for line in sys.stdin: |
I hereby claim:
To claim this, I am signing this object:
# for convenience, get the most recent screen shot on osx | |
# might work for other OSs | |
screenshot=~/Desktop/$(ls -t ~/Desktop/ | grep "Screen Shot" | head -n 1) | |
# move it to currend working directory, and then do what you will. | |
mv "$screenshot" . |
def swap(a, i, j): | |
a[i], a[j] = a[j], a[i] | |
def is_heap(a): | |
n = 0 | |
m = 0 | |
while True: | |
for i in [0, 1]: | |
m += 1 | |
if m >= len(a): |
def swap(a, i, j): | |
a[i], a[j] = a[j], a[i] | |
def heapify(a, n, max): | |
while True: | |
biggest = n | |
c1 = 2*n + 1 | |
c2 = c1 + 1 | |
for c in [c1, c2]: | |
if c < max and a[c] > a[biggest]: |
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
tcget.py | |
Kosei Moriyama <[email protected]> | |
''' | |
import BeautifulSoup |