Skip to content

Instantly share code, notes, and snippets.

@hail2u
hail2u / markdown-cheat-sheet.jax
Created Dec 19, 2010
Markdown カンニングペーパー
View markdown-cheat-sheet.jax
*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|
View gist:825381
@sgk
sgk / tzconv.py
Created May 29, 2011
Timezone conversion
View tzconv.py
# 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_)
View shibuya_ni.txt
NITE
Session
Detector
idea
・skypeとkinectの併用
openNIの関数群はWin32APIと似ている
memory
file
INI
@sgk
sgk / trac2down.py
Created Oct 14, 2011
Trac Wiki to Markdown converter
View trac2down.py
#!/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 Jan 6, 2012
Makefile からタスクの一覧とその説明 (コメント) を表示する
View 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 Jan 12, 2012
Accessing FaceTracker OSC messages in Processing
View face_tracker_processing.pde
import oscP5.*;
OscP5 oscP5;
PVector posePosition;
boolean found;
float eyeLeftHeight;
float eyeRightHeight;
float mouthHeight;
float mouthWidth;
float nostrilHeight;
@pasberth
pasberth / emgist.html
Created Feb 25, 2012
Embedded Gist とりあえずやってみた
View emgist.html
<!--
これだけで gist 埋め込みされるっぽい
-->
<html>
<body>
<script src="http://gist.github.com/2059.js"></script>
</body>
</html>
@ymotongpoo
ymotongpoo / requests-oauth2.py
Created Feb 25, 2012
Google API OAuth 2.0 Authorization Sample in Python
View requests-oauth2.py
# -*- 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.
You can’t perform that action at this time.