Put flip somewhere in your $PATH and chmod a+x it.
Copy fuck into ~/.bashrc.
| # If you use bash, this technique isn't really zsh specific. Adapt as needed. | |
| source ~/keychain-environment-variables.sh | |
| # AWS configuration example, after doing: | |
| # $ set-keychain-environment-variable AWS_ACCESS_KEY_ID | |
| # provide: "AKIAYOURACCESSKEY" | |
| # $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY | |
| # provide: "j1/yoursupersecret/password" | |
| export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID); | |
| export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY); |
| Screen resolutions | |
| ------------------ | |
| PICO-8 supports different undocumented videomodes that can be activated at runtime, | |
| using poke(0x5F2C, X) where X is one of the following mode numbers: | |
| 0: 128x128, 0 pages | |
| 1: 64x128, 1 page | |
| 2: 128x64, 1 page | |
| 3: 64x64, 3 pages |
It is possible to compile Go programs for a different OS, even though go build says otherwise.
You'll need:
golang-crosscompile helper script https://github.com/davecheney/golang-crosscompile| I have done some more work on creating very fast hash algorithms in Go for small (3-8) and medium (16-32) size keys. Below are the current results. | |
| NOTE: I used SetBytes(1) to give quick estimate of ops/sec | |
| 2012 MacbookAir 11" i7 2Ghz | |
| ================ | |
| OSX - Mountain Lion | |
| Go version go1.0.3 | |
| ================ |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| class QuerySetDoubleIteration(Exception): | |
| "A QuerySet was iterated over twice, you probably want to list() it." | |
| pass | |
| # "Skinny" here means we use iterator by default, rather than | |
| # ballooning in memory. | |
| class SkinnyManager(Manager): | |
| def get_query_set(self): | |
| return SkinnyQuerySet(self.model, using=self._db) |