Skip to content

Instantly share code, notes, and snippets.

View briangoins's full-sized avatar

Brian Goins briangoins

View GitHub Profile
@briangoins
briangoins / file.sh
Last active September 23, 2016 20:38
Git: discard changes to deleted files in working directory
# Git one-liner to discard changes to deleted files in working directory
# short st | del'd lines | cut to filename| discard changes
git status -s | grep -e "^\ D" | cut -d" " -f 3 | xargs git checkout --
@briangoins
briangoins / osx_setup.md
Last active February 4, 2016 21:51 — forked from millermedeiros/osx_setup.md
Mac OS X setup.

Setup Mac OS X

Working with Yosemite.

Setup

1. Run software update

{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#3376b2",
"@brand-success": "#228c7d",
@briangoins
briangoins / gist:34fb9a9ed8df3b1102d5
Created June 1, 2014 06:04
Constrain jQuery Plugin Selectors
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Demo: Constrain plugin selectors</title>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<style>
html, body { border:0; margin:0; padding:0; }
body { font-family: 'Helvetica', 'Arial', 'Verdana', 'sans-serif'; }
</style>