Skip to content

Instantly share code, notes, and snippets.

View mactkg's full-sized avatar
💭
I may be slow to respond.

mactkg mactkg

💭
I may be slow to respond.
View GitHub Profile
@motoishmz
motoishmz / addons_patch.rb
Last active August 29, 2015 13:57
creating/applying patches to ofxaddons
#!/usr/bin/ruby
dir_addons = File.expand_path("../addons")
module PatchingMode
CREATE = 1
APPLY = 2
end
def patch(patching_mode, path_to_addons_dir, ofxaddon)
@bouzuya
bouzuya / shuburi.md
Last active August 29, 2015 14:11
bouzuya 版週ぶり (bouzuya's shuburi) / 旧・週ぶり (shuburi) 初期コンセプト
@pi8027
pi8027 / gist:5c2ecfd94e1a8364dd7a
Last active August 29, 2015 14:13
全てのページの左上にコンパイルした日時を出力する
\usepackage[yyyymmdd,hhmmss]{datetime}
\usepackage[all]{background}
\usepackage{tikz}
\SetBgContents{
\begin{tikzpicture}[remember picture,overlay, color=black!60]
\draw (-1, 1) node[below right] {\LARGE{\texttt{\today~\currenttime}}};
\end{tikzpicture}
}
\SetBgPosition{current page.south west}
@mactkg
mactkg / gist:825381
Created February 14, 2011 01:48
@sgk
sgk / tzconv.py
Created May 29, 2011 14:44
Timezone conversion
# by sgk
import datetime
class TZ(datetime.tzinfo):
def __init__(self, name, offset):
self.name_ = name
self.offset_ = offset
def utcoffset(self, dt):
return datetime.timedelta(hours=self.offset_)
NITE
Session
Detector
idea
・skypeとkinectの併用
openNIの関数群はWin32APIと似ている
memory
file
INI
@qnighy
qnighy / 00index.markdown
Created January 27, 2012 21:23
数学の問題作った
@pasberth
pasberth / emgist.html
Created February 25, 2012 06:22
Embedded Gist とりあえずやってみた
<!--
これだけで gist 埋め込みされるっぽい
-->
<html>
<body>
<script src="http://gist.github.com/2059.js"></script>
</body>
</html>
#!/usr/bin/env python
#coding:utf-8
import os, sys
import json
import requests
from urllib import urlencode
Client_ID = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com"
Client_secret = "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"