Skip to content

Instantly share code, notes, and snippets.

@w0ng
w0ng / faster-git.md
Last active July 10, 2021 01:19 — forked from thomcc/faster-git.md

Steps to faster git on mac.

  1. Update to git 2.16

  2. Setup file monitoring with hgwatchman

    1. Run
    $ brew install watchman
    $ cd /path/to/mozilla-central
    

$ watchman watch-project .

This file has been truncated, but you can view the full file.
[
{"question":"A ____ atom in an atomic clock beats 9,192,631,770 times a second","answer":"cesium","money":1000},
{"question":"A ____ generates temperatures five times hotter than those found on the sun's surface","answer":"lightning bolt","money":1000},
{"question":"A ____ is a pact between a secular authority & the church","answer":"concordat","money":1000},
{"question":"A ____ is the blue field behind the stars","answer":"canton","money":1000},
{"question":"A ____ occurs when all the planets of the our Solar System line up","answer":"sysygy","money":1000},
{"question":"A ____ razor removed from King Tut's Tomb was still sharp enough to be used","answer":"golden","money":1000},
{"question":"A ____ takes 33 hours to crawl one mile","answer":"snail","money":1000},
{"question":"A ____ women can get a divorce if her husband doesn't give her coffee","answer":"saudi arabian","money":1000},
{"question":"A ____ written to celebrate a wedding is called a epithalamium","answer":"poem","money":1000},
This file has been truncated, but you can view the full file.
["A ____ atom in an atomic clock beats 9,192,631,770 times a second", "cesium"]
["A ____ generates temperatures five times hotter than those found on the sun's surface", "lightning bolt"]
["A ____ is a pact between a secular authority & the church", "concordat"]
["A ____ is the blue field behind the stars", "canton"]
["A ____ occurs when all the planets of the our Solar System line up", "sysygy"]
["A ____ razor removed from King Tut's Tomb was still sharp enough to be used", "golden"]
["A ____ takes 33 hours to crawl one mile", "snail"]
["A ____ women can get a divorce if her husband doesn't give her coffee", "saudi arabian"]
["A ____ written to celebrate a wedding is called a epithalamium", "poem"]
["A 'dybbuk' is an evil spirit in which folklore", "jewish"]
"
" ~/.vimrc
" vim: fdm=marker
" Options - Compatibility {{{
" -----------------------------------------------------------------------------
if !has('nvim')
set nocompatible " Prefer Vim defaults over Vi-compatible defaults.
endif
@w0ng
w0ng / init.vim
Created June 9, 2018 11:57
~/.config/nvim/init.vim
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
@w0ng
w0ng / what-forces-layout.md
Created May 14, 2018 13:42 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
@w0ng
w0ng / le-renew-webroot
Created February 10, 2016 17:11 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
#!/bin/bash
web_service='nginx'
config_file="/usr/local/etc/le-renew-webroot.ini"
le_path='/opt/letsencrypt'
exp_limit=30;
if [ ! -f $config_file ]; then
echo "[ERROR] config file does not exist: $config_file"
@w0ng
w0ng / Pok3r-Layer-3-for-OSX_Mac.kbd.json
Created February 2, 2016 14:48
Pok3r Layer 3 for OSX/Mac
[
{
"name": "Pok3r Layer 3 for OSX/Mac",
"author": "davidjenni"
},
[
{
"y": 1.5,
"c": "#3c4041",
"t": "#aba18b",
@w0ng
w0ng / .Xresources-hybrid-reduced-contrast
Last active November 23, 2017 15:40
Terminal colourscheme for use in hybrid.vim (reduced contrast)
! Hybrid Terminal Colours. Uses the palette from Tomorrow-Night:
! https://github.com/chriskempson/tomorrow-theme/blob/master/vim/colors/Tomorrow-Night.vim
! and the reduced contrast background color from Codecademy's online editor:
! https://www.codecademy.com/learn
! vim: ft=xdefaults
*background: #232C31
*foreground: #C5C8C6
! black
*color0: #2D3C46