Skip to content

Instantly share code, notes, and snippets.

View brianchung808's full-sized avatar
🚶‍♂️

Brian Chung brianchung808

🚶‍♂️
View GitHub Profile
@brianchung808
brianchung808 / init.lua
Last active January 30, 2016 05:44
My config file for Hammerspoon
local mash = {"shift", "alt"}
-- disable window animation
hs.window.animationDuration = 0
function fullscreen()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
@brianchung808
brianchung808 / .vimrc
Last active August 29, 2015 14:11
my .vimrc
set nocompatible
filetype off
filetype plugin indent off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" language specific plugins
Plugin 'pangloss/vim-javascript'
@brianchung808
brianchung808 / .zshrc
Last active August 29, 2015 14:14
.zshrc
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
source $HOME/.profile/.tto_credentials
source $HOME/.profile/.golang_setup
source $HOME/.profile/.aws_credentials
# theme
ZSH_THEME="pure"
DEFAULT_USER="bchung"
import most from 'most';
const fromNodeCallback = (nodeCallback) => {
return (...args) => {
return most.create((add, end, error) => {
return nodeCallback(...args, function cb(err, ...data) {
// if data has more than one element, leave as array. Else, pass along that single value
err ? error(err) : data.length > 1 ? add(data) : add(...data);
end();
});
@brianchung808
brianchung808 / umbrella
Created February 21, 2016 08:33 — forked from quinncomendant/umbrella
OpenDNS umbrella start/stop script for Mac OS X. This makes it easy to turn umbrella off temporarily, or get its status.
#!/usr/bin/env bash
# Quinn Comendant <quinn@strangecode.com>
# https://gist.github.com/quinncomendant/3be731567e529415d5ee
# Since 25 Jan 2015
# Version 1.1
CMD=$1;
if [[ `id -u` = 0 ]]; then
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>includes vs. fuzzy</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>