This file contains hidden or 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/bash | |
# ITパスポートは無視する | |
# 平成21〜25年以外の数値を渡されることは想定していない | |
# 想定外の数値や変なモノを渡されて暴走しても作者は関知しない | |
# パラメータはコマンドライン引数で指定できる | |
# 年と季節を指定すると、そのときの試験問題を全科目丸ごと取ってくる | |
heisei=$1 # 試験の年度を平成で指定 | |
kisetu=$2 # 春なら 1、秋なら 2 を指定 |
This file contains hidden or 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/bash | |
platex article.tex | |
dvipdfmx article.dvi | |
evince article.pdf & |
This file contains hidden or 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 | |
require "twitter" | |
Twitter.configure do |config| | |
config.consumer_key = "" | |
config.consumer_secret = "" | |
config.oauth_token = "" | |
config.oauth_token_secret = "" | |
end |
This file contains hidden or 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 | |
require "twitter" | |
Twitter.configure do |config| | |
config.consumer_key = "" | |
config.consumer_secret = "" | |
config.oauth_token = "" | |
config.oauth_token_secret = "" | |
end |
This file contains hidden or 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 | |
require "pp" | |
require "json" | |
require "twitter" | |
require "user_stream" | |
# twitter ジェムと userstream ジェムを使いたいとき | |
# | |
# token.json にトークンを沢山突っ込むと、複垢処理を自動でやってくれる。 |
This file contains hidden or 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 | |
require "twitter" | |
Twitter.configure do |config| #4つのトークンを各自で指定してね | |
config.consumer_key = "" | |
config.consumer_secret = "" | |
config.oauth_token = "" | |
config.oauth_token_secret = "" | |
end |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Hello { | |
class Program { | |
static void Main(string[] args) { | |
System.Console.WriteLine("HelloWorld!!"); |
This file contains hidden or 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
# encoding: utf-8 | |
require "net/http" | |
# ■■ 設定ここから ■■ | |
uri = "http://toro.2ch.net/test/read.cgi/news2/1353695121/" # みたいな感じでスレのURLを入れてね | |
html = true # HTML化してHTMLを保存するならtrue、datだけ拾ってくるならfalseを指定してね | |
file = true # 保存するときのファイル名を スレのidにするならtrue、スレタイにするならfalseを指定してね | |
# ファイル名にできない文字がスレタイに入ってるときはエラーが出るけど、諦めてね |
This file contains hidden or 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
print "Location: http://yahoo.co.jp\n" if request.env["HTTP_USER_AGENT"].match(/MSIE/) | |
# ここまででIEは弾かれる。以下、通常の処理を書く。 |
This file contains hidden or 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
<?php | |
require_once './tmhOAuth.php'; | |
/* | |
* ■ 設置方法 ■ | |
* 1, tmhOAuth.php をネットから拾ってきて、このファイルと同じディレクトリに置く。 | |
* 2, このファイルにある、下の設定項目を埋める。 | |
* 3, 鯖にうpして、cronで定期的に叩く。 | |
* | |
* 以上の手順でプログラムを動かすと、お好みの間隔で定期的にリムーブした者の一覧がメールで配信されます。 | |
*/ |