Skip to content

Instantly share code, notes, and snippets.

货币的冻结性,是每一个货币系统的 property
BTC[货币的冻结性] => nil
这是没问题的。
普通民众要不要买 BTC 是另一个话题。
谁给 BTC 背书是另一个话题。
谁给美元背书是另一个话题。
谁给卢布背书是另一个话题。
论苏联解体对卢布价值的影响是另一个话题。
@changsj
changsj / paste_into_.zshrc
Last active January 13, 2016 17:39
Seize the Finder path into shell
# Seize the Finder path into shell.
cdf() {
cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')"
}
@changsj
changsj / python_resources.md
Created April 28, 2014 01:35 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@changsj
changsj / 0_reuse_code.js
Created April 28, 2014 01:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@changsj
changsj / find_primes.py
Last active August 29, 2015 14:00
find primes using a for-else construct in Python
#find primes using a for-else construct
for maxn in range(2, 100): # back here <-
x_range = range(2, maxn)
for i in x_range: # Start CheckProcess
if maxn % i == 0:
break # find the check-divisor i,drop maxn, End CheckProcess goback ->