This file contains 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 | |
# -*- coding:utf-8 -*- | |
from __future__ import print_function | |
import sys | |
import random | |
import time | |
import csv | |
import datetime |
This file contains 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 time | |
import math | |
import functools | |
def printspec(func): | |
@functools.wraps(func) | |
def wrapper(*args, **kwargs): | |
sttime = time.time() | |
# print func(*args, **kwargs) | |
func(*args, **kwargs) |
This file contains 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
################################################################################# | |
## .tmux.conf | |
## reference | |
## 1. http://d.hatena.ne.jp/mizchi/20100829/1283076112 | |
## 2. http://blog.goo.ne.jp/ebgp/e/4fe5c4ed53b2f7fb41835c4e1bcbb82c | |
## 3. http://dev.gentoo.org/~wired/conf/tmux.conf | |
################################################################################# | |
## status bar theme | |
## ステータス行の書式 | |
# (コマンド行) コマンド出力の最初の行 |
This file contains 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
Hi Facebook support team, | |
I am Masahiro KIURA, Japanese facebook user. | |
I would like to submit the bug of facebook group feature to you. | |
Background | |
I uploaded about 200 photos as following group album to the following group that I am managing. | |
Group: <GROUP URL> | |
Group album: <GROUP PHOTO ALBUM URL> |
This file contains 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 flask import Flask, request, g, url_for | |
from flaskext.sqlalchemy import SQLAlchemy | |
import config | |
from flaskr.util.db import db | |
app = Flask(__name__) | |
app.config.from_object(config) | |
app.static_path = '/static' | |
db.init_app(app) |
This file contains 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 threading | |
import time | |
class subThread(threading.Thread): | |
def __init__(self): | |
threading.Thread.__init__(self) | |
self.setDaemon(True) | |
print "================= sub Listened" | |
def run(self): |
This file contains 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
#!/bin/env python | |
# require python 2.x | |
# usage: zipdirs.py <targetdirname> | |
# $ cd ; zipdirs.py ~/hoge | |
# $ cd hoge ; ls | |
# fuga/ | |
# fuga.zip | |
# piyo/ |
This file contains 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
#!/bin/env python | |
# require python 2.x | |
# usage: zipdir.py <dirname> | |
import sys | |
import os | |
import zipfile | |
# dirname: archive target |