Skip to content

Instantly share code, notes, and snippets.

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

olive he-and-her

Value Loyalty. Above. All. Else.
View GitHub Profile
@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
@he-and-her
he-and-her / malware.sh
Last active May 13, 2017 16:02
Linux Malware Detector
# Install the LMD
wget https://tinyurl.com/qdcfm2v
tar xfz maldetect-current.tar.gz
cd maldetect-*
sudo ./install.sh
# Edit with your fav editor the config file
vim /usr/local/maldetect/conf.maldet
# The following settings are recommended to change
@he-and-her
he-and-her / null_pattern.rb
Created April 24, 2017 03:55
Null patter
class Body
def ego
ego || NullBeing.new.ego
end
end
class NullBeing
def ego
# "In the end, we are self-perceiving,
# self-inventing, locked-in mirages
@he-and-her
he-and-her / debuggingreact2.js
Last active April 25, 2017 03:55
Another weird bug
...
dispatch(
anAction(
someMiddleware.anFunction(response.data)
)
)
...