例文を組み込んだAlfred Workflowを作りました: Alfred Git Commit Message Example
以下転載:
| import threading | |
| from uuid import uuid4 | |
| import redis | |
| r = redis.StrictRedis(host='', port=0, db=0, password='') | |
| class Attacker(threading.Thread): | |
| def __init__(self, name): |
以下転載:
| <?php | |
| // Chinachu Prototype rev.5 (2012/02/18) | |
| // GPLv3 | |
| // Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
| /* ユーザー設定 */ | |
| define('JSON_RESULT_SCHEDULE' , __dir__ . '/schedule.json'); | |
| define('JSON_RESULT_SCHEDULE_IGNORE' , __dir__ . '/schedule_ignore.json'); | |
| define('OUTPUT_COMMAND_RECORD' , __dir__ . '/log/recoding.log'); | |
| define('DIR_RECORDED' , __dir__ . '/recorded/'); | |
| define('RESERVE_LIST_TITLE' , __dir__ . '/reserve_titles.txt'); |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| argvs = sys.argv | |
| argc = len(argvs) | |
| if (argc == 1): | |
| print 'usage: %s text' % argvs[0] | |
| quit() | |
| import tweepy |
| <?php | |
| /** | |
| * iPhoneのアイコンみたいな画像を作るよ | |
| * | |
| * @author riaf<[email protected]> | |
| */ | |
| if(!class_exists('Imagick')){ | |
| throw new Exception('Imagick required.'); | |
| return -1; | |
| } |