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 | |
#vim:fileencoding=utf-8 | |
import urllib2 | |
import yaml | |
import twitter | |
import re | |
import sys | |
import hashlib | |
import os |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<!-- | |
Designed by | |
_|_|_| _|_| _|_|_|_| _|_| _| _|_| |
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
class FlickrApi: | |
def b58decode(self, s): | |
alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ' | |
num = len(s) | |
decoded = 0 | |
multi = 1 | |
for i in reversed(range(0, num)): | |
decoded = decoded + multi * ( alphabet.index( s[i] ) ) | |
multi = multi * len(alphabet) |
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 | |
HOST_NAME="your_host_name" | |
USER_NAME="your_user_name" | |
PASSWORD="your_pass_word" | |
PUT_DIR="www/media/camera/" | |
cd /your/loca/dir/pass/ | |
for file in *.* | |
do |
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 | |
#vim:fileencoding=utf-8 | |
import cgi | |
import sys | |
sys.path.append('/home/hoge/lib/python') | |
import tweepy | |
consumer_key = 'hoge' | |
consumer_secret = 'hoge' |
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
<!-- SCM Music Player http://scmplayer.net --> | |
<script type="text/javascript" src="http://scmplayer.net/script.js" | |
data-config="{'skin':'skins/black/skin.css','volume':50,'autoplay':true,'shuffle':true,'repeat':1,'placement':'bottom','showplaylist':false,'playlist':[{'title':'Randy Meisner - Hearts on Fire (Dallas 1982)','url':'http://www.randymeisneronline.com/multimedia/MP3/HeartsOnFireDallas82.mp3'},{'title':'Fall Out Boy %u2013 Sugar, We%27re Goin Down','url':'http://www.youtube.com/watch?v=3n-9Rsn52Qk'},{'title':'Elvis Presley - Money Honey','url':'http://www.youtube.com/watch?v=Ev7qUObTliM'},{'title':'Elton John %u2013 Captain Fantastic And The Brown Dirt Cowboy','url':'http://www.youtube.com/watch?v=zT-7meAF-_g'},{'title':'Nina Simone - Who Am I?','url':'http://www.youtube.com/watch?v=ykIuoawZ1KY'},{'title':'Emerson, Lake & Palmer - The Sheriff ','url':'http://www.youtube.com/watch?v=0FgKcnyRNKM'},{'title':'Genesis - it.','url':'http://www.youtube.com/watch?v=eWgphYPf0PA'},{'title':'Josh Rouse - Direc |
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 | |
#vim:fileencoding=utf-8 | |
import re | |
import cgi | |
import os | |
import Cookie | |
import sys | |
sys.path.append('hoge') | |
import tweepy |
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 | |
#vim:fileencoding=utf-8 | |
import re | |
import time | |
import urllib2 | |
from pit import Pit | |
import tweepy | |
import BeautifulSoup |
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
var SCREEN_SIZE = 500; // キャンバスの幅 | |
var SIDE_CELLS = 200; // 一辺のセルの数 | |
var CELL_SIZE = SCREEN_SIZE / SIDE_CELLS; // セルの幅 | |
var FPS = 10; // フレームレート | |
var canvas; //= document.getElementById('world'); | |
var context; //= canvas.getContext('2d'); | |
window.onload = function() { | |
var field = new Array(SIDE_CELLS*SIDE_CELLS); // フィールド情報 | |
var tempField = new Array(SIDE_CELLS*SIDE_CELLS); // フィールド情報の一時記憶用 |