Skip to content

Instantly share code, notes, and snippets.

@en45masao
en45masao / PKWARS.BAS
Created March 31, 2012 13:56
PK-WARS for SMILEBASIC ver2.0
'PK-WARS @en45masao
' First release: 2012-03-31
' Last updated: 2012-04-07
'Initialization
ACLS:PNLTYPE "OFF":GPAGE 1
VISIBLE 0,0,0,0,0,0
BGMSTOP
CLEAR
@en45masao
en45masao / bookmarklet.js.txt
Created February 19, 2012 12:06
The Longest Day in iKnow!
javascript:(function(){var uid=''||window.prompt('iKnow! ID:','en45');$.get('http://iknow.jp/api/users/'+uid+'/study_results.json?since=2009-11-04',function(data){var max=0;var date='';$.each(data.daily,function(i,item){if(max<item.daily.items.seconds){max=item.daily.items.seconds;date=item.date;}});var s=max%(60);var m=Math.floor(max/60)%(60);var h=Math.floor(max/3600);alert('The Longest Day: '+h+'h '+m+'m '+s+'s '+date);});})()
@en45masao
en45masao / sega.ck
Created May 14, 2011 11:32
Generates and plays a wav file -- one of the most famous jingle
ADSR env;
env.set(50::ms, 250::ms, 0.5, 100::ms);
JCRev rev;
0.25 => rev.mix;
Chorus cho;
0.2 => cho.modDepth;
0.25 => cho.mix;
@en45masao
en45masao / iknow_width.css
Created April 17, 2011 08:21
A user CSS file to widen the screen width of iKnow!
/* A user CSS file to widen the screen width of iKnow! <http://iknow.jp> */
div.app {
width: 1100px;
margin: -277px 0px 0px -565px;
}
#keyboard_explanation_window {
width: 800px;
margin: -110px 0px 0px -420px;
}
#api_error {
@en45masao
en45masao / makecsv_yahoodrill.pl
Created January 16, 2011 05:06
Yahoo! Japanのインターネットドリルの問題をダウンロードしてCSVファイル化するスクリプト
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use WWW::Mechanize;
use Text::CSV_XS;
use Web::Scraper;
@en45masao
en45masao / makecsv_yahootoeic5.pl
Created January 10, 2011 05:31
Yahoo! JapanのTOEIC練習問題をダウンロードしてCSVファイル化するスクリプト
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use WWW::Mechanize;
use Text::CSV_XS;
use Web::Scraper;
@en45masao
en45masao / makecsv_yahooeiken.pl
Created January 10, 2011 05:31
Yahoo! Japanの英検過去問題をダウンロードしてCSVファイル化するスクリプト
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use WWW::Mechanize;
use Text::CSV_XS;
use Web::Scraper;