Skip to content

Instantly share code, notes, and snippets.

<!Docutype HTML>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>UserStreamsClient</title>
<script src="http://www.google.com/jsapi"></script>
<script> google.load("jquery", "1.4") </script>
<style>
div.tweet {
border-bottom: 1px solid #999;
@paulirish
paulirish / gist:839879
Created February 23, 2011 02:35
requestAnimFrame() shim.
// see http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// shim layer with setTimeout fallback
window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
@saiten
saiten / rec_radiko.sh
Last active December 2, 2021 05:57
簡易radiko録音ツール。要swftools
#!/bin/sh
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf
cookiefile=./cookie.txt
playerfile=./player.swf
keyfile=./authkey.png
if [ $# -eq 1 ]; then
channel=$1
output=./$1.flv
@satoruhiga
satoruhiga / homography2glModelViewMatrix.h
Created December 5, 2011 08:45
homography2glModelViewMatrix
inline ofMatrix4x4 homography2glModelViewMatrix(const cv::Mat &homography)
{
ofMatrix4x4 matrix;
matrix(0, 0) = homography.at<double>(0, 0);
matrix(0, 1) = homography.at<double>(1, 0);
matrix(0, 2) = 0;
matrix(0, 3) = homography.at<double>(2, 0);
matrix(1, 0) = homography.at<double>(0, 1);
@keijiro
keijiro / perlin_noise_memo.md
Created August 16, 2012 09:54
Perlin Noise Memo
@ofZach
ofZach / all OF addons
Created October 16, 2012 02:30
all openframeworks addons from ofxAddons
#!/bin/bash
git clone git://github.com/armadillu/ofxAnimatable.git;
git clone git://github.com/yuichi1004/ofxAnimationKit.git;
git clone git://github.com/alinakipoglu/ofxAssimpNISync.git;
git clone git://github.com/alinakipoglu/ofxAssimpOpenNISkeletonSync.git;
git clone git://github.com/after12am/ofxBoids.git;
git clone git://github.com/diasbruno/ofxCompositeMotion.git;
git clone git://github.com/paulobarcelos/ofxDisplayStackObject.git;
git clone git://github.com/satoruhiga/ofxEasingFunc.git;
@asus4
asus4 / websocket_osc_bridge.py
Created December 18, 2015 05:36
WebSocket to OSC bridge
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import json
from pyOSC import OSC
from SimpleWebSocketServer import WebSocket, SimpleWebSocketServer
# arguments
@Akira-Hayasaka
Akira-Hayasaka / winInst.txt
Last active September 16, 2021 07:33
windows インスタレーション用設定
- windowsはオフラインアカウントでセットアップ
- ネットワークにつなぐ
- 識別されてないネットワーク問題
http://www.projectgroup.info/tips/Windows/comm_0064.html
- windowsのライセンス認証
- windowsをアップデートする
@tos-kamiya
tos-kamiya / py3-venv-activate-on-fish.md
Last active January 11, 2023 08:08
fishでpython3のvenvのactivateをする

fishでpython3のvenvを利用する方法

venv環境を作って入る (パスを設定した新しいシェルを作成する)

python3 -m venv ./venv
begin; set -lx PATH (realpath ./venv)/bin $PATH; fish; end
@ayansg
ayansg / build_freetype.sh
Last active January 9, 2022 02:23 — forked from anonymous/build_freetype.sh
Compile-Freetype-For-iOS
#!/bin/bash
# Compile-Freetype-For-iOS
# Original Script https://github.com/jkyin/Compile-Freetype-For-iOS/blob/master/build_freetype.sh
# Revised by: l'L'l
#
# New Features Include: auto download latest version, fixed toolchain locations, other various tweeks
#
# The MIT License (MIT)
# Copyright (c) 2016 l'L'l