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
@hail2u
hail2u / markdown-cheat-sheet.jax
Created December 19, 2010 19:35
Markdown カンニングペーパー
*markdown-cheat-sheet.jax* Markdown カンニングペーパー
作者: Kyo Nagashima <kyo@hail2u.net>
バージョン: 0.04
説明: Markdown 記法のカンニングペーパーです。
1. 記法の例 |markdown-cheat-sheet-examples|
1.1 段落 |markdown-cheat-sheet-paragraph|
1.2 改行 |markdown-cheat-sheet-linebreak|
1.3 テキストの強調 |markdown-cheat-sheet-emphasis|
@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
@sgk
sgk / trac2down.py
Created October 14, 2011 09:35
Trac Wiki to Markdown converter
#!/usr/bin/python
# vim:set fileencoding=utf-8 sw=2 ai:
import sqlite3
import datetime
import re
SQL = '''
select
name, version, time, author, text
@yuya-takeyama
yuya-takeyama / Makefile
Created January 6, 2012 13:37
Makefile からタスクの一覧とその説明 (コメント) を表示する
tasks:
@echo Makefile for FooBar
@echo
@echo Usage: make [task]
@echo
@echo Tasks:
@ruby -ne 'puts " #{$$1.ljust(24)} => #{$$2}" if $$_ =~ /^([a-z\-]*):(?:.*)#\s*(.*)$$/' < Makefile
foo-task: # タスクの説明
echo FOO TASK
@atduskgreg
atduskgreg / face_tracker_processing.pde
Created January 12, 2012 21:26
Accessing FaceTracker OSC messages in Processing
import oscP5.*;
OscP5 oscP5;
PVector posePosition;
boolean found;
float eyeLeftHeight;
float eyeRightHeight;
float mouthHeight;
float mouthWidth;
float nostrilHeight;
@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>
@ymotongpoo
ymotongpoo / requests-oauth2.py
Created February 25, 2012 07:53
Google API OAuth 2.0 Authorization Sample in Python
# -*- coding: utf-8 -*-
"""
This scripts reqire a third party module 'requests'.
You can get it from PyPI, i.e. you can install it using
easy_install or pip.
http://docs.python-requests.org/en/v0.10.4/
Original source code is written by shin1ogawa, which is in Java.