Skip to content

Instantly share code, notes, and snippets.

@rsato
rsato / sequence_sourceforge-redirect-to-adsrvmedia.txt
Last active August 29, 2015 14:05
"sourceforge" redirect to "adsrvmedia"
http://tortoisesvn.net/downloads.html
click link text
http://downloads.sourceforge.net/tortoisesvn/LanguagePack_1.8.8.25755-x64-ja.msi?download
redirect (HTTP 307)
http://sourceforge.net/projects/tortoisesvn/files/1.8.8/Language%20Packs/LanguagePack_1.8.8.25755-x64-ja.msi/download?use_mirror=switch&download=
:
?
:
http://d.startpagea.com/widget/render/hash/0433a6b04002a22cbb0f6a1b5e1e7e54
iframe src
@rsato
rsato / JAL-2-step-verification-password-list
Last active August 29, 2015 14:04
JAL 2-step verification password list. It is the birthday "yyyyMMdd" format. cf. JALホームページにおける2段階認証の実施について http://www.jal.co.jp/info/jmb/140731.html .
18980305
18980306
18980307
18980308
18980309
18980310
18980311
18980312
18980313
18980314
@rsato
rsato / file0.groovy
Created May 15, 2014 17:08
「一反田えー(1反田A)」から「千反田える」までを生成する ref: http://qiita.com/rsato/items/a0013f35f731ff6b494f
def alphabetList = ["えー", "びー", "しー", "でぃー", "いー", "えふ", "じー", "えいち", "あい", "じぇい", "けー", "える", "えむ", "えぬ", "おー", "ぴー", "きゅー", "あーる", "えす", "てぃー", "ゆー", "ぶい", "だぶりゅー", "えっくす", "わい", "ぜっと"]
def range = 1..1000
range.eachWithIndex {num, i->
println "${arabicNumToKanjiNum(num)}反田${alphabetList[i%alphabetList.size()]}"
}
// アラビア数字を漢数字に変換します
def arabicNumToKanjiNum(long num){
def kanjiNumUnit = ["", "万", "億", "兆", "京"]
@rsato
rsato / file0.txt
Created May 3, 2014 04:54
シークヮーサーとファイアーエムブレムの表記ゆれを正規表現で表す ref: http://qiita.com/rsato/items/d804894b6b54003b9cb1
シ((ィ|イ)(|ー)|ー)ク(ア|ァ|ワ|ヮ)(ー|)(サ|シャ)ー
@rsato
rsato / PC98Beep.cs
Last active August 29, 2015 13:57
PC98の起動音をC# とWindows PowerShellで
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
rsato / TwitterOAuthRequestTokenCallbacks.java
Last active August 29, 2015 13:57
AndroidアプリでNetworkOnMainThreadExceptionを避けつつTwitter4Jを使用したアプリ連携を行う #Twitter4J ref: http://qiita.com/rsato/items/39efd16c8a77a893a67e
public class TwitterOAuthRequestTokenCallbacks implements LoaderCallbacks<RequestToken> {
private Context mContext;
private Twitter mTwitter;
public TwitterOAuthRequestTokenCallbacks(Context context, Twitter twitter) {
mContext = context;
mTwitter = twitter;
}

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