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
<!DOCTYPE HTML> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>安田記念レース結果</title> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
<script> | |
$(function(){ | |
var settings = new Array(); | |
set = { |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<style> | |
#twitter{ | |
box-sizing:border-box; | |
width:520px; | |
height:260px; | |
margin:0; |
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
<? | |
//EasyBotter.php 内の class EasyBotter 内に新しい関数を突っ込むような感じで | |
function send($user,$address){ | |
$f_list = $this->getFollowers(); | |
for ( $i=0; $i < count($f_list); $i++){ | |
$data[$i] = $f_list->user[$i]->screen_name; | |
} | |
sort($data); | |
$n_data= count($data); //フォロワー数を変数に代入しておく | |
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
<?xml version="1.0" standalone="no" encoding="UTF-8"?> | |
<!--?xml-stylesheet type="text/css" href=".css"?--> | |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |
<svg width="1000" height="1200" viewBox="0 0 1000 1200" xmlns="http://www.w3.org/2000/svg"> | |
<style type="text/css"><![CDATA[ | |
text{ | |
font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'MS Pゴシック',sans-serif; | |
text-anchor:middle; | |
fill:black; |
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
<?php | |
// PHPでuser_agent.datにアクセスログもどきをjson風に記録する。こんなもの実用化したら、読み込みが遅くなってお話にならないので、要注意。 | |
// $item に好きなものを入れれば、好きな環境変数を記録可能。put($file_name)でログの吐き出しが可能。 | |
$item = array( | |
"REQUEST_URI", | |
"HTTP_USER_AGENT", | |
"REMOTE_ADDR" | |
); |
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
<?php | |
require_once './tmhOAuth.php'; | |
/* | |
* ■ 設置方法 ■ | |
* 1, tmhOAuth.php をネットから拾ってきて、このファイルと同じディレクトリに置く。 | |
* 2, このファイルにある、下の設定項目を埋める。 | |
* 3, 鯖にうpして、cronで定期的に叩く。 | |
* | |
* 以上の手順でプログラムを動かすと、お好みの間隔で定期的にリムーブした者の一覧がメールで配信されます。 | |
*/ |
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
print "Location: http://yahoo.co.jp\n" if request.env["HTTP_USER_AGENT"].match(/MSIE/) | |
# ここまででIEは弾かれる。以下、通常の処理を書く。 |
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
# 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 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 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 |
OlderNewer