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
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
import tweepy | |
if __name__ == "__main__": | |
consumer_key = 'Your Consumer Key' | |
consumer_secret = 'Your Consumer Secret' | |
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
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
#!/usr/local/bin/python2.6 | |
#-*- coding:utf-8 -*- | |
import facebook | |
import cgi | |
import urllib | |
import sys | |
import codecs | |
sys.stdin = codecs.getreader('utf-8')(sys.stdin) | |
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) |
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
\documentclass[a4paper,11pt]{jsarticle} | |
\usepackage{amsmath,amssymb} | |
\usepackage{bm} | |
\usepackage[dvips]{graphicx} | |
%テキストの表示領域の調節 | |
\setlength{\textwidth}{\paperwidth} | |
\addtolength{\textwidth}{-40truemm} | |
\setlength{\textheight}{\paperheight} | |
\addtolength{\textheight}{-45truemm} |
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
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
import tweepy | |
import codecs | |
import sys | |
import threading | |
import time | |
import android |
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
// ==UserScript== | |
// @name Zenkaku2Hankaku.js | |
// @namespace http://github.com/shogo82148/ | |
// @description すべての全角アルファベットを半角に | |
// @include * | |
// ==/UserScript== | |
(function() { | |
Zen2Han = { | |
"A":"A", | |
"B":"B", |
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
import time | |
status_id = int(raw_input('input status id:')) | |
timestamp = (status_id>>22) + 1288834974657 | |
print time.ctime(timestamp/1000) |
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
Index: igo/src/net/reduls/igo/dictionary/build/Matrix.java | |
=================================================================== | |
--- igo/src/net/reduls/igo/dictionary/build/Matrix.java (リビジョン 107) | |
+++ igo/src/net/reduls/igo/dictionary/build/Matrix.java (作業コピー) | |
@@ -21,33 +21,33 @@ | |
public static void build(String inputDir, String outputDir) throws ParseException, IOException { | |
final ReadLine rl = new ReadLine(inputDir+"/matrix.def", "UTF-8"); | |
try { | |
- // 一行目はサイズ: [左文脈IDの数] [右文脈IDの数] | |
+ // 一行目はサイズ: [右文脈IDの数] [左文脈IDの数] |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
import config | |
from TwitterBot import BaseBot | |
import logging | |
logger = logging.getLogger("Bot.counter") | |
class Bot(BaseBot): |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import re | |
from struct import * | |
import glob | |
import os | |
import datetime | |
import locale | |
import shutil |
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
import urllib2 | |
import json | |
api = "http://estar.jp/api/get_novel_page_info?_=1336547125896&w=13428686&p=%d" | |
for i in range(1, 122): | |
url = api % i | |
res = urllib2.urlopen(url) | |
data = json.load(res) | |
print "Page:", i |
OlderNewer