- [Sublime Text 2][1]
- [Sublime Paket Yöneticisi][2]
Zaten python
, virtualenv
vs gibi şeylerin kurulu olduğunu varsayıyorum.
#!/usr/bin/python | |
# coding=utf-8 | |
# Python version of Zach Holman's "spark" | |
# https://github.com/holman/spark | |
# by Stefan van der Walt <[email protected]> | |
""" | |
USAGE: |
#!/bin/bash | |
# markdown ile yazılan dosyalardan pdf üret. | |
# Örnek: <betik> ~/examples.md | |
PATH=/var/lib/gems/1.8/bin:$PATH | |
[ $# -gt 0 ] || { | |
echo >&2 "Kullanım: $0 < markdown dosyası>" | |
echo >&2 "Örnek: $0 ~/examples.md" |
def accepts(*accepted_types): | |
def decorated_function(function): | |
def inner(*passed_args): | |
for accepted_type, passed_arg in zip(accepted_types, passed_args): | |
if not isinstance(passed_arg, accepted_type): | |
raise TypeError | |
return function(*passed_args) | |
return inner | |
return decorated_function |