Skip to content

Instantly share code, notes, and snippets.

View tsuwatch's full-sized avatar

Tomohiro Suwa tsuwatch

View GitHub Profile
@tsuwatch
tsuwatch / main.coffee
Created October 4, 2012 07:15 — forked from mizchi/main.coffee
mmd.gl.enchant.js
enchant()
window.game = null
MODEL_PATH = 'model/Haku_Yowane.pmd'
MOTION_PATH = 'motion/kishimen.vmd'
GAME_WIDTH = 800
GAME_HEIGHT = 800
class MyScene3D extends Scene3D
constructor: ->
@tsuwatch
tsuwatch / niconicocommentgetter.php
Created October 18, 2012 13:57 — forked from miyukki/niconicocommentgetter.php
Niconico Comment Getter
<?php
define('NICONICO_MAILADDRESS', '<アカウントアドレス>');
define('NICONICO_PASSWORD' , '<アカウントパスワード>');
$id = @$argv[1];
if(!$id) exit('Usage (sm|lv)[\d]+'.PHP_EOL);
if(strpos($id, 'sm') === 0) getVideoComment($id);
if(strpos($id, 'lv') === 0) getLiveComment($id);
if(strpos($id, 'co') === 0) getLiveComment($id);