Skip to content

Instantly share code, notes, and snippets.

View he-and-her's full-sized avatar
Value Loyalty. Above. All. Else.

he and her he-and-her

Value Loyalty. Above. All. Else.
View GitHub Profile
@he-and-her
he-and-her / life.lisp
Created November 10, 2018 23:27 — forked from masatoi/life.lisp
life
(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
@he-and-her
he-and-her / ipfs.sh
Last active October 13, 2018 22:33 — forked from sanderpick/ipfs.sh
Install ipfs on Amazon Linux.
#!/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
@he-and-her
he-and-her / docker.md
Created October 2, 2018 01:49 — forked from f3l1x/aliases
Docker - installation, tips, commands, aliases

Docker

Shortcuts

$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc
# ------------------------------------
@he-and-her
he-and-her / Gemfile
Created February 25, 2018 08:38 — forked from Joseph-N/Gemfile
File upload using dropzone.js, paperclip in rails. Tutorial link http://josephndungu.com/tutorials/ajax-file-upload-with-dropezonejs-and-paperclip-rails
source 'https://rubygems.org'
# default gems here
#---------------------------
# add paperclip and bootstrap
gem "paperclip", "~> 4.1"
gem 'bootstrap-sass', '~> 3.1.1'
@he-and-her
he-and-her / bobp-python.md
Created November 17, 2017 18:18 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@he-and-her
he-and-her / Capybara.md
Created September 14, 2017 15:24 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@he-and-her
he-and-her / latency.txt
Created September 5, 2017 17:48 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
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
@he-and-her
he-and-her / Big List of Real Estate APIs.md
Created August 24, 2017 22:27 — forked from patpohler/Big List of Real Estate APIs.md
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####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.

@he-and-her
he-and-her / JSONB.go
Created August 14, 2017 20:36 — forked from mraaroncruz/JSONB.go
JSONB for postgres in Golang
// 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) {
@he-and-her
he-and-her / i3.config
Last active May 21, 2017 17:11 — forked from lirenlin/gist:9892945
i3 wm, hide window title bar
for_window [class="^.*"] border pixel 0
new_window 1pixel