This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title></title> | |
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script> | |
</head> | |
<script type="text/javascript"> | |
// コメントの場所を指定 | |
function setPosition(id) { | |
var top = $('#nicoscreen').offset(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fib(n) | |
if n < 2 | |
return n; | |
else | |
return fib(n-2) + fib(n-1) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = array('mail' => 'your mail address', 'password' => 'your password'); | |
$data = http_build_query($data); | |
$context = stream_context_create(array( | |
'http' => array( | |
'method' => 'POST', | |
'header' => implode("\r\n", array( | |
'Content-Type: application/x-www-form-urlencoded', | |
'Content-Length: ' . strlen($data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from BeautifulSoup import BeautifulSoup | |
import urllib2 | |
import urllib | |
import sys | |
import re | |
argc = len(sys.argv) | |
if (argc != 2): | |
print 'Usage: # python %s eyeonanime.com\'s url' % sys.argv[0] | |
quit() |