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 | |
$handle = fopen('file.csv', 'r'); | |
while ($a=fgetcsv($handle)) { | |
$b[] = $a; | |
} | |
echo "<table border='1'>"; | |
foreach ($b as $v) { | |
echo "<tr>"; |
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
makeSearchCommand({ | |
name: "zf", | |
url: "http://www.google.co.jp/search?client=safari&rls=en-us&q=site:framework.zend.com/manual/en {QUERY}&ie=UTF-8&oe=UTF-8", | |
icon: "http://framework.zend.com/favicon.ico", | |
description: "Search ZendFramework Manual (en)", | |
}); |
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
from juno import * | |
@route('/') | |
def index(web): | |
return 'Hello, World' | |
run() |
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
from juno import * | |
Person = model('Person', name='str', views='int') | |
@route('/makeperson/*:name/') | |
def makeperson(web, name): | |
exist = Person.find().filter(Person.name==name) | |
if exist.count() != 0: return 'That person already exists' | |
p = Person(name=name, views=0).save() | |
return 'Person created' |
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
#!/opt/local/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import urllib | |
import re | |
SAVE_DIR = '/tmp/foobar' |
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 logging | |
import time | |
def main(): | |
while(1): | |
time.sleep(1) | |
logging.warn(u'ちんこ') |
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 | |
class Q(object): | |
""" | |
>>> q = Q(2) | |
>>> q.put('a', 1) | |
>>> q.put('b', 2) | |
>>> q.put("c", 3) | |
>>> q.get("a") | |
>>> q.get('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
#!/opt/local/bin/python | |
# -*- coding: utf-8 -*- | |
import timeit | |
t = timeit.Timer(stmt="dict(a='aaaaa',b='bbbbb',c='ccccc',d='ddddd',e='eeeee')") | |
for i in range(5): | |
print 'dict: %s' % t.timeit(number=1000000) | |
t = timeit.Timer(stmt="{'a':'aaaaa','b':'bbbbb','c':'ccccc','d':'ddddd','e':'eeeee'}") |
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
[10/02/17 15:39:42] Toru Furukawa (tof): show は、デフォルトで見えてないものを見せるような動作じゃないかな。 | |
[10/02/17 15:39:59] Toru Furukawa (tof): コートの前をはだけて、 | |
[10/02/17 15:40:04] Toru Furukawa (tof): ちんこを show |
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 | |
$a = '1-a'; | |
$a = ++$a; | |
$a = ++$a; | |
$a = ++$a; | |
$a = ++$a; | |
$a = ++$a; | |
$a = ++$a; | |
$a = ++$a; | |
$a = ++$a; |
OlderNewer