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
#!/usr/local/bin/python | |
# -*- coding: utf-8; -*- | |
import datetime | |
import mechanize | |
from pyquery import PyQuery as pq | |
import PyRSS2Gen | |
login_id = '' | |
password = '' |
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
#!/usr/local/bin/python | |
# -*- coding: utf-8; -*- | |
import re | |
from time import sleep | |
import datetime | |
import mechanize | |
from pyquery import PyQuery as pq | |
import PyRSS2Gen |
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
<!-- | |
input name="id" の value を自分のidに書き換えて保存。 | |
16*16px の twilog.png を作成する。僕は自分のアイコンにした。 | |
それを | |
Macなら ‾/Library/Application¥ Support/Firefox/Profiles/6x1npluu.default/searchplugins | |
Winなら C:¥Program Files¥Mozilla Firefox¥searchplugins | |
に移動する。 | |
再起動すると検索エンジンとしてtwilogが選べるようになる(はず | |
--> | |
<search |
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
static __ClassName__ *shared__ClassName__ = nil; | |
+ (__ClassName__ *)shared__ClassName__ { | |
@synchronized (self) { | |
if (shared__ClassName__ == nil) { | |
[[[self alloc] init] autorelease]; // ここでは代入していない | |
} | |
} | |
return shared__ClassName__; | |
} |
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
#!/usr/bin/python | |
# -*- coding: utf-8; -*- | |
import sys | |
import tweepy | |
ckey = '' | |
csecret = '' | |
atoken = '' | |
atoken_secret = '' |
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; -*- | |
import codecs | |
import json | |
def parse_tweet_file(file_name): | |
f = codecs.open(file_name, "r", "shift_jis") | |
f.readline() # 一行目は要らない | |
tweets_data = f.read() | |
tweets_data = tweets_data.decode("utf-8") |
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
// | |
// Created by kkgn06 on 2013/02/26. | |
// | |
// To change the template use AppCode | Preferences | File Templates. | |
// | |
#import <Foundation/Foundation.h> | |
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
#!/usr/local/bin/python | |
# -*- coding: utf-8; -*- | |
import os | |
import sys | |
args = sys.argv | |
import gzip | |
import urllib |
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 UnityEngine; | |
using System.Collections; | |
struct Panel | |
{ | |
public Rect rect; | |
public bool pushed; | |
public int num; | |
} |
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
package gin.no.utils; | |
import android.util.Log; | |
public class DebugLog { | |
private static boolean debug = false; | |
public static int d(String tag, String msg) { | |
return debug ? Log.d(tag, msg) : -1; | |
} |
NewerOlder