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 keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. Unlike style sheets however, | |
# each selector can only be declared once. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
fmt.Println("hello") |
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
from time import sleep | |
from threading import Event, Thread | |
def main(): | |
# set | |
to_run = Event() | |
to_run.set() | |
# start thread | |
worker = Worker(to_run, 1) |
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
from libcloud.storage.types import Provider | |
from libcloud.storage.providers import get_driver | |
ACCESS_KEY_ID, SECRET_ACCESS_KEY = 'chinko', 'manko' | |
driver_class = get_driver(Provider.S3_AP_NORTHEAST) | |
driver = driver_class(ACCESS_KEY_ID, SECRET_ACCESS_KEY) | |
container = driver.get_container(container_name='my-bucket-name') | |
with open('tenga.txt', 'rb') as iterator: | |
driver.upload_object_via_stream(iterator=iterator, container=container, object_name='tenga') |
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
[color] | |
ui = auto | |
[alias] | |
glog = log --graph --date=short --decorate=short --pretty=format:'%h %Cblue%d%Creset %cd %cn %s' | |
st = status |
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
# default virtualenv | |
export VIRTUAL_ENV_DISABLE_PROMPT=1; source ~/.virtualenvs/default/bin/activate | |
unset VIRTUAL_ENV_DISABLE_PROMPT |
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
.PHONY : all venv py-packages | |
VENV_DIR = venv | |
BIN_DIR = $(VENV_DIR)/bin | |
BASE_PYTHON = python3.4 | |
PIP = $(BIN_DIR)/pip | |
ACTIVATE = $(BIN_DIR)/activate | |
PYTHON = $(BIN_DIR)/python | |
PIP_REQUIREMENTS = pip-requirements.txt |
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
"""Provides patch for backloglib to work on Google App Engine | |
Usage: | |
>>> import backloglib | |
>>> import gaebackloglib | |
>>> gaebackloglib.patch(backloglib) | |
""" | |
import sys | |
import xmlrpclib |
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
angular.module('feiz', [], function($provide) { | |
$provide.factory('get', ['$http', function(http) { | |
return function(scope) { | |
http({url:'http://oldriver.org/index.html', method:'GET'}). | |
error(function(){ | |
scope.hoge = "azuma"; | |
}); | |
}; | |
}]); | |
}); |
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
{ | |
"author": { | |
"name": "wozozo", | |
"position": "co-founder" | |
}, | |
"message": "hello" | |
} |