Skip to content

Instantly share code, notes, and snippets.

@rsato
rsato / 1-spring-security-twitter-is-not-work
Last active December 15, 2015 20:19
[solved]Making Grails app with Twitter authentication, using "spring-security-twitter" is not work well...
# DevEnv
+ JDK 7 update 17
+ GGTS 3.2.0RELEASE
+ Grails 2.2.1
# Operations
1.Create Grails Project "test"
2. Add to BuildConfig.groovy
@rsato
rsato / 放送内容解析システム概要
Last active December 25, 2015 02:09
放送内容を自動で解析、情報収集するシステムの構想です。個人ではリソースの限界があるので、是非forkいただいてこの内容を充実させたり、一部実装してみたとかお待ちしております。
# これは?
放送内容を自動で解析、情報収集するシステムの構想です。
# 取得する情報
- 文字や画像として出ている情報
- 字幕スーパー(動画内とデータ)
- 地図?
- クレジット

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
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;
}
@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 / file0.txt
Created May 3, 2014 04:54
シークヮーサーとファイアーエムブレムの表記ゆれを正規表現で表す ref: http://qiita.com/rsato/items/d804894b6b54003b9cb1
シ((ィ|イ)(|ー)|ー)ク(ア|ァ|ワ|ヮ)(ー|)(サ|シャ)ー
@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 / 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 / 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 / target-list.txt
Created November 22, 2014 10:03
Webサイト #どうして解散するんですか why-kaisan.com でツイートすると追加される宛先アカウントリスト
@1hatanorina
@21csts
@310akirasato
@310kakizawa
@47staff
@Abeshinzo
@CoTakayuki
@Dr_NakaMats
@ETO_Akinori
@FujiokaTakao