This file contains hidden or 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
function shift(input, pos) { | |
return input.slice(pos, input.length) + input.slice(0, pos); | |
} | |
console.log(shift("abcdefg", 2) === "cdefgab"); |
This file contains hidden or 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
//ImageView angryHuskyImageView = (ImageView)findViewById(R.id.imageView); | |
//angryHuskyImageView.setTag("http://d24w6bsrhbeh9d.cloudfront.net/photo/a2zQDvw_700b.jpg"); |
This file contains hidden or 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
Your YC username: | |
Company name: | |
Company url, if any: | |
Phone number(s): | |
Please enter the url of a 1 minute unlisted (not private) YouTube video introducing the founders. (Instructions.) | |
YC usernames of all founders, including you, e1ven, separated by spaces. (That's usernames, not given names: "bksmith," not "Bob Smith." If there are 3 founders, there should be 3 tokens in this answer.) | |
YC usernames of all founders, including you, e1ven, who will live in the Bay Area January through March if we fund you. (Again, that's usernames, not given names.) | |
What is your company going to make? | |
If this application is a response to a YC RFS, which one? | |
For each founder, please list: YC username; name; age; year of graduation, school, degree and subject for each degree; email address; personal url, github url, facebook id, twitter id; employer and title (if any) at last job before this startup. Put unfinished degrees in parens. List the main contact first. Separate founders with blank lines. Put an asterisk before t |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?><Response><Say>Welcome to twilio!</Say></Response> |
This file contains hidden or 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 urllib2 | |
import httplib | |
import os | |
import time | |
from urllib2 import Request, urlopen, URLError | |
def save_file(file): | |
output_filename = file.split("/")[-1] | |
if os.path.exists(output_filename): |
This file contains hidden or 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 | |
import fnmatch | |
def gen_find(filepath, loc): | |
for path, diralist, filelist in os.walk(loc): | |
for name in fnmatch.filter(filelist, filepath): | |
yield os.path.join(path, name) | |
pyfiles = gen_find('*.py', '.') |
This file contains hidden or 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 | |
import logging | |
import argparse | |
from boto.s3.connection import S3Connection | |
def create_dir(type): | |
if not os.path.exists(type): | |
os.mkdir(type) | |
def get_aws_credentials(): |
This file contains hidden or 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
\l list databases | |
\d list tables | |
\d table describe table |
This file contains hidden or 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
#!/usr/bin/env python | |
from github3 import login | |
def list_branches(token, target_repo): | |
github_login = login(token=token) | |
repos = github_login.iter_repos() | |
for r in repos: | |
if r.name == target_repo: |
This file contains hidden or 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
#!/usr/bin/python | |
import subprocess | |
devs = {} | |
devs['jayzeng'] = 'jayzeng' | |
devs['niek'] = 'nieksand' | |
devs['lee'] = 'leehasoffers' | |
devs['lucas'] = 'lucasoffers' | |
devs['josh'] = 'joshs633' | |
devs['jack'] = 'jackofseattle' |