/etc/rc.conf.local
apmd_flags="-A"
dhcpd_flags=vether0
vmd_flags=
ntpd_flags="-s"
Here are some simple ways to make your PICO-8 code fit in 140 280 characters (as in the #tweetjam #tweetcart craze). I did not invent these, I merely observed and collected them from the tweetjam thread.
x=.1 and x=.023, not x=0.1 or x=0.023x=1/3 is shorter than x=.3333circ(x,y,1)pset(z,q,7) works just as well| 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 |
| #!/bin/bash | |
| # -------------------------------------------------------------------------------------------- | |
| # Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
| # | |
| # Run from the web: | |
| # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh) | |
| # -------------------------------------------------------------------------------------------- | |
| # Set the Ruby version you want to install |
| 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 |
| # Hacky random image thumbnailer. | |
| # by Peter Sobot, April 21, 2012 | |
| # Based heavily on code by Michael Macias | |
| # (https://gist.github.com/a54cd41137b678935c91) | |
| require 'rmagick' | |
| images = Dir.glob(ARGV[0] ? ARGV[0] | |
| : '-default-input-paths-') | |
| output_dir = (ARGV[1] ? ARGV[1] |