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
// Copy right 2008 Shumpei Shiraishi (shiraishi at ayuta.co.jp) | |
CmdUtils.CreateCommand({ | |
name: "hotentry", | |
takes: {"エントリの番号を入力": noun_arb_text}, | |
preview: function(prev, index) { | |
var $ = jQuery; | |
var feedUrl = "http://b.hatena.ne.jp/hotentry/diary/rss"; | |
var self = this; | |
$.get(feedUrl,function(feed) { | |
var entries = []; |
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
def _T(text): | |
if 'nt' == os.name: | |
return text.encode('mbcs', 'ignore') | |
else: | |
return text |
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
function makeTable(){ | |
var tableCtrl = $('<table border=1></table>'); | |
for (tate = 1; tate<7; tate++){ | |
tableCtrl.append('<tr>'); | |
for (yoko = 1; yoko<7; yoko++){ | |
tableCtrl.append('<td>'+tate+yoko+'</td>'); | |
} | |
tableCtrl.append('</tr>'); | |
} | |
return tableCtrl; |
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 | |
import socket | |
from time import sleep | |
from flask import * | |
app = Flask(__name__) | |
app.debug = True | |
@app.route('/') |
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 | |
import sys | |
def Kaijo(num): | |
if num == 0: | |
return 1 | |
else: | |
return Kaijo(num -1) * num |
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 | |
# encoding: utf-8 | |
""" | |
queue_FIFO.py | |
Created by atusi on 2008-10-10. | |
Copyright (c) 2008 atusi.com. All rights reserved. | |
""" | |
from Queue import Queue |
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 | |
import sys | |
from multiprocessing import Process | |
def fibonacci(n): | |
if n == 0: | |
return 0 | |
elif n == 1: | |
return 1 | |
else: |
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
~/tmp$ paster create -t buildbot my.project | |
Traceback (most recent call last): | |
File "/usr/local/bin/paster", line 9, in <module> | |
load_entry_point('PasteScript==1.7.4.2', 'console_scripts', 'paster')() | |
File "/usr/local/lib/python2.7/dist-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/command.py", line 104, in run | |
invoke(command, command_name, options, args[1:]) | |
File "/usr/local/lib/python2.7/dist-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/command.py", line 143, in invoke | |
exit_code = runner.run(args) | |
File "/usr/local/lib/python2.7/dist-packages/PasteScript-1.7.4.2-py2.7.egg/paste/script/command.py", line 238, in run | |
result = self.command() |
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
Number.prototype.times (f) -> | |
f i for i in [1..this] | |
// hogehoge |
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 os, sys | |
import oauth2client | |
import httplib2 | |
from urllib import urlencode | |
import urllib2 | |
from pyquery import PyQuery as pq | |
import requests | |
import json |
OlderNewer