Skip to content

Instantly share code, notes, and snippets.

R SATO rsato

Block or report user

Report or block rsato

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Order of the prefectures in Japan

In a English Website, When choosing a Prefectures in Japan, the order is alphabetical.

  1. Aichi
  2. Akita
  3. Aomori
  4. Chiba
  5. Ehime
  6. Fukui
rsato /
Last active Aug 29, 2015
AndroidアプリでNetworkOnMainThreadExceptionを避けつつTwitter4Jを使用したアプリ連携を行う #Twitter4J ref:
public class TwitterOAuthRequestTokenCallbacks implements LoaderCallbacks<RequestToken> {
private Context mContext;
private Twitter mTwitter;
public TwitterOAuthRequestTokenCallbacks(Context context, Twitter twitter) {
mContext = context;
mTwitter = twitter;
rsato / PC98Beep.cs
Last active Aug 29, 2015
PC98の起動音をC# とWindows PowerShellで
View PC98Beep.cs
using System;
class PC98Beep
public static void Main(string[] args)
// Console.Beep(int frequency, int duration);
Console.Beep(2000, 120); // pi
Console.Beep(1000, 120); // po
rsato / file0.txt
Created May 3, 2014
シークヮーサーとファイアーエムブレムの表記ゆれを正規表現で表す ref:
View file0.txt
rsato / file0.groovy
Created May 15, 2014
「一反田えー(1反田A)」から「千反田える」までを生成する ref:
View file0.groovy
def alphabetList = ["えー", "びー", "しー", "でぃー", "いー", "えふ", "じー", "えいち", "あい", "じぇい", "けー", "える", "えむ", "えぬ", "おー", "ぴー", "きゅー", "あーる", "えす", "てぃー", "ゆー", "ぶい", "だぶりゅー", "えっくす", "わい", "ぜっと"]
def range = 1..1000
range.eachWithIndex {num, i->
println "${arabicNumToKanjiNum(num)}反田${alphabetList[i%alphabetList.size()]}"
// アラビア数字を漢数字に変換します
def arabicNumToKanjiNum(long num){
def kanjiNumUnit = ["", "", "", "", ""]
rsato / JAL-2-step-verification-password-list
Last active Aug 29, 2015
JAL 2-step verification password list. It is the birthday "yyyyMMdd" format. cf. JALホームページにおける2段階認証の実施について .
View JAL-2-step-verification-password-list
rsato / sequence_sourceforge-redirect-to-adsrvmedia.txt
Last active Aug 29, 2015
"sourceforge" redirect to "adsrvmedia"
View sequence_sourceforge-redirect-to-adsrvmedia.txt
click link text
redirect (HTTP 307)
iframe src
rsato / target-list.txt
Created Nov 22, 2014
Webサイト #どうして解散するんですか でツイートすると追加される宛先アカウントリスト
View target-list.txt
rsato / openssl-export-ciphersuites.txt
Last active Aug 29, 2015
Show EXPORT Ciphersuites on OpenSSL
View openssl-export-ciphersuites.txt
$ openssl ciphers -v EXPORT
EXP-EDH-RSA-DES-CBC-SHA SSLv3 Kx=DH(512) Au=RSA Enc=DES(40) Mac=SHA1 export
EXP-EDH-DSS-DES-CBC-SHA SSLv3 Kx=DH(512) Au=DSS Enc=DES(40) Mac=SHA1 export
EXP-ADH-DES-CBC-SHA SSLv3 Kx=DH(512) Au=None Enc=DES(40) Mac=SHA1 export
EXP-DES-CBC-SHA SSLv3 Kx=RSA(512) Au=RSA Enc=DES(40) Mac=SHA1 export
EXP-RC2-CBC-MD5 SSLv3 Kx=RSA(512) Au=RSA Enc=RC2(40) Mac=MD5 export
EXP-RC2-CBC-MD5 SSLv2 Kx=RSA(512) Au=RSA Enc=RC2(40) Mac=MD5 export
EXP-KRB5-RC2-CBC-SHA SSLv3 Kx=KRB5 Au=KRB5 Enc=RC2(40) Mac=SHA1 export
EXP-KRB5-DES-CBC-SHA SSLv3 Kx=KRB5 Au=KRB5 Enc=DES(40) Mac=SHA1 export
EXP-KRB5-RC2-CBC-MD5 SSLv3 Kx=KRB5 Au=KRB5 Enc=RC2(40) Mac=MD5 export
rsato / 1-spring-security-twitter-is-not-work
Last active Dec 15, 2015
[solved]Making Grails app with Twitter authentication, using "spring-security-twitter" is not work well...
View 1-spring-security-twitter-is-not-work
# DevEnv
+ JDK 7 update 17
+ Grails 2.2.1
# Operations
1.Create Grails Project "test"
2. Add to BuildConfig.groovy
You can’t perform that action at this time.