Skip to content

Instantly share code, notes, and snippets.


Yoichi Fujimoto wozozo

Block or report user

Report or block wozozo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View read_csv.php
$handle = fopen('file.csv', 'r');
while ($a=fgetcsv($handle)) {
$b[] = $a;
echo "<table border='1'>";
foreach ($b as $v) {
echo "<tr>";
View Search ZendFramework Manual (Ubiquity)
name: "zf",
url: " {QUERY}&ie=UTF-8&oe=UTF-8",
icon: "",
description: "Search ZendFramework Manual (en)",
View gist:140000
from juno import *
def index(web):
return 'Hello, World'
View gist:140003
from juno import *
Person = model('Person', name='str', views='int')
def makeperson(web, name):
exist = Person.find().filter(
if exist.count() != 0: return 'That person already exists'
p = Person(name=name, views=0).save()
return 'Person created'
View gist:163456
# -*- coding: utf-8 -*-
import os
import urllib
import re
SAVE_DIR = '/tmp/foobar'
View gist:264605
#!/usr/bin/env python
# coding: utf-8
import logging
import time
def main():
View gist:289884
# 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')
View gist:298907
# -*- 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'}")
View gist:306378
[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
View gist:323713
$a = '1-a';
$a = ++$a;
$a = ++$a;
$a = ++$a;
$a = ++$a;
$a = ++$a;
$a = ++$a;
$a = ++$a;
$a = ++$a;
You can’t perform that action at this time.