$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc
# ------------------------------------
(ql:quickload 'lispbuilder-sdl) | |
(ql:quickload 'lispbuilder-sdl-gfx) | |
(ql:quickload 'alexandria) | |
(defparameter world (make-array '(100 100) :element-type 'fixnum)) | |
;; initialize | |
(defun init-world! (world) | |
(loop for i from 0 to (1- (array-dimension world 0)) do | |
(loop for j from 0 to (1- (array-dimension world 1)) do |
#!/usr/bin/env bash | |
set -e | |
echo 'export IPFS_PATH=/data/ipfs' >>~/.bash_profile | |
source ~/.bash_profile | |
# ipfs daemon | |
wget https://dist.ipfs.io/go-ipfs/v0.4.17/go-ipfs_v0.4.17_linux-amd64.tar.gz | |
tar xvfz go-ipfs_v0.4.17_linux-amd64.tar.gz |
source 'https://rubygems.org' | |
# default gems here | |
#--------------------------- | |
# add paperclip and bootstrap | |
gem "paperclip", "~> 4.1" | |
gem 'bootstrap-sass', '~> 3.1.1' |
Latency Comparison Numbers | |
-------------------------- | |
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 |
####Rets Rabbit http://www.retsrabbit.com
Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.
// Found in this issue thread https://github.com/jinzhu/gorm/issues/516#issuecomment-109055198 | |
// License unknown | |
// | |
// | |
// Postgres' JSONB type. It's a byte array of already encoded JSON (like json.RawMessage) | |
// which also saves itself correctly to PG's jsonb type. It would probably also work on | |
// PG json types. | |
type JSONB []byte | |
func (j JSONB) Value() (driver.Value, error) { |
for_window [class="^.*"] border pixel 0 | |
new_window 1pixel |