Skip to content

Instantly share code, notes, and snippets.

View laiso's full-sized avatar
☀️

laiso laiso

☀️
View GitHub Profile
someValue = "Hello"
somevalue = "World"
function helloWorld(say)
print(say)
end
function helloworld(say)
print(say..say)
end
#!/usr/bin/env python2.5
# -*- coding: utf-8 -*-
import pikzie
#import unittest as pikzie
from core.models import User, Bookmark
class GAETestBase(pikzie.TestCase):
def setup(self):
#!/usr/bin/python
#-*- encoding:utf-8 -*-
"""
require : simplejson
simplejson - Project Hosting on Google Code http://code.google.com/p/simplejson/
oauthのコンシューマIDとアクセストークンは自分で取得してください
$ python tw_stream.py <抽出ユーザー名>
#!/usr/bin/python
# coding: utf-8
# (http://github.com/Kami/python-face-client
# "Kami's python-face-client at master - GitHub")
from face_client import face_client
import pit
config = pit.Pit.get(
"api.face.com", {'require':{
#!/usr/bin/env python
# coding: utf-8
import os
import urllib2
from cStringIO import StringIO
import webbrowser
import Image
# -*- coding: utf-8 -*-
# togchk.models
import re
import urllib2
import logging
from BeautifulSoup import BeautifulSoup
RE_URL = re.compile(r'http://togetter\.com\/li\/\d+$')
@laiso
laiso / gist:443197
Created June 18, 2010 03:42
vimperator/copy.js
javascript <<EOM
liberator.globalVariables.copy_templates = [
{ label: 'tw2hb', value: '[%TITLE%] B! %URL%' },
{ label: 'tw2hb+quote', value: '"%SEL%" B! %URL%' },
];
EOM
@laiso
laiso / run.py
Created June 20, 2010 12:20
Run gevent wsgiserver for pylons app.
#!/usr/bin/env python
# coding: utf-8
from gevent import monkey; monkey.patch_all()
from gevent.wsgi import WSGIServer
import os
import logging
log = logging.getLogger(__name__)
@laiso
laiso / gist:451071
Created June 24, 2010 06:34
popup for knotify4/kdialog
#!/usr/bin/env python
# coding: utf-8
import os
from multiprocessing import Process
def main(args):
p = Process(\
@laiso
laiso / .mayu
Created July 12, 2010 16:56
my dote-mayu
# Generic
include "linux104.mayu"
keymap Global
# SandS
mod shift += !!Space
key R-*Space = &Ignore
# beef-up!
key BS = &Undefined