Skip to content

Instantly share code, notes, and snippets.

Working from home

John hirejohnsalcedo

Working from home
View GitHub Profile
View RN Auto Debug
import { NativeModules } from 'react-native';
if (__DEV__) {
View gist:c7f25801610acba4713a1c0c2e34f5e1
alias sauce="source ~/.zshrc"
alias gc="git checkout"
alias gcb="git checkout -b"
alias gp='git push -u origin $(git branch | grep \* | cut -d " " -f2)'
alias glog="git log --pretty=oneline"
alias gbd="git branch -d"
alias gbD="git branch -D"
alias gb="git branch"
alias l="ls -la"
# extracted from http//
# under public domain terms
country_bounding_boxes = {
'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)),
'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)),
'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)),
'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)),
'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)),
'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)),

Around 2006-2007, it was a bit of a fashion to hook lava lamps up to the build server. Normally, the green lava lamp would be on, but if the build failed, it would turn off and the red lava lamp would turn on.

By coincidence, I've actually met, about that time, (probably) the first person to hook up a lava lamp to a build server. It was Alberto Savoia, who'd founded a testing tools company (that did some very interesting things around generative testing that have basically never been noticed). Alberto had noticed that people did not react with any urgency when the build broke. They'd check in broken code and go off to something else, only reacting to the breakage they'd caused when some other programmer pulled the change and had problems.

View .eslintrc
root: true,
parser: 'babel-eslint',
plugins: [/*'import', */'jsx-a11y', 'react'],
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
node: true
View .vimrc
set t_Co=256
syntax on
set background=dark
set nocompatible
set number
filetype off
set tabstop=2 shiftwidth=2 expandtab
call plug#begin('~/.vim/plugged')
Plug 'VundleVim/Vundle.vim'
" Javascript Syntax
View burger.css
.buttonMenu {
padding: 15px;
background-color: inherit;
border: none; }
.buttonMenu .buttonMenuIcon {
display: flex;
justify-content: space-around;
flex-direction: column;
position: relative;
border: 2px solid #FFF;
View clock.js
const clock = document.getElementById("clock");
function leadZeroFormat(i) {
if (i<10) {
i = "0" + i;
return i;
hirejohnsalcedo / install-tmux
Created May 7, 2017 — forked from cdkamat/install-tmux
Install tmux 2.0 on rhel/centos 6
View install-tmux
# Install tmux on Centos release 6.5
# install deps
yum install gcc kernel-devel make ncurses-devel
curl -OL
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
hirejohnsalcedo / gulp-rename
Created Mar 20, 2017
rename filename to foldername+index.html
View gulp-rename
.pipe(rename((path) => {
path.dirname += "/" + path.basename;
path.basename = "index";
You can’t perform that action at this time.