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
/// Chrome -> Developer Tools -> Cosole | |
/// > | |
jQuery(function($) { | |
var since = '2013-02-03'; | |
var until = '2013-03-02'; | |
var from = 'tomoaki_imai'; | |
var u = "https://twitter.com/i/search/timeline?q=since:!s! until:!u! from:!f!&include_available_features=1&include_entities=1"; | |
$.getJSON(u.replace(/!s!/, since).replace(/!u!/, until).replace(/!f!/, from), function(j) { | |
$(j.inner.items_html).find('.content').each(function() { | |
var out = []; |
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
#!/bin/sh | |
# | |
# コマンドの実行が終わったらYOをするシェルスクリプト | |
# | |
# (1) APIユーザを作ってトークンを取得する | |
# http://yoapi.justyo.co/ | |
# | |
# (2) APIユーザをフォローする | |
# APIユーザと普通のユーザは別なので気をつけて | |
# |
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
javascript:;new function(){var pre = document.body.getElementsByTagName('pre')[0],str = JSON.stringify(JSON.parse(pre.innerHTML), null, ' ');str = str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">");document.body.innerHTML = '<textarea style="width: 100%;height: 100%;">' + str + '</textarea>';}; |
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
# -*- coding: utf-8 -*- | |
## http://job.j-sen.jp/18235/ | |
## 4種類のアルファベット "A,C,G,T" から成るn文字の文字列のシーケンスの中から、 | |
## "AAG"という並びが含まれる文字列を全て列挙するプログラムを書きなさい。 | |
def make_string(n, words) | |
return [""] if n == 0 | |
strings = [] | |
words.each do |word| |