例文を組み込んだAlfred Workflowを作りました: Alfred Git Commit Message Example
以下転載:
#!/usr/bin/env fish | |
function rainbowify -d "Rainbow-ify text" | |
set -l RAINBOW red FF8800 yellow green blue purple | |
set LENGTH (string length $argv) | |
set SPLIT (string split '' $argv) | |
for i in (seq $LENGTH) | |
set PERC (math -s2 $i / $LENGTH) |
以下転載:
# sync everything excluding things in .gitignore | |
# delete anything on target not in source | |
# include dotfiles and symlinks, also use compression | |
rsync -azP --delete --filter=":- .gitignore" . my-target-host:/my/target/directory |
import tornado.web | |
import tornado.httpserver | |
import tornado.ioloop | |
class MainHandler(tornado.web.RequestHandler): | |
def get(self): | |
self.write("Greetings from the instance %s!" % tornado.process.task_id()) | |
app = tornado.web.Application([ | |
(r"/", MainHandler), |