Skip to content

Instantly share code, notes, and snippets.

Eric Anderson ericanderson

Block or report user

Report or block ericanderson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am ericanderson on github.
  • I am ericlanderson (https://keybase.io/ericlanderson) on keybase.
  • I have a public key ASBdYmO0jOwOlKLD-abke0EVO9_tcz8KMjWvQpkweD52Rgo

To claim this, I am signing this object:

View bamboo.sh
#!/bin/bash
BRANCH="${bamboo.repository.branch.name}"
case $BRANCH in
master|develop|release/*)
echo "PUBLISH"
exec ./scripts/publish.sh
;;
*)
echo "VERIFY"
View NewMachineSetup.md
  1. Turn on FDE
  2. Generate SSH key
  3. Clone boxen repo
  4. Run boxen
  5. Download Mac App Store apps
  6. Install DropBox
  7. Install GPGTools
  8. Install 1Password
  9. Install Sublime Text 3
    1. Install Package Control
@ericanderson
ericanderson / README.md
Last active Dec 21, 2015
Many ways to submit a form...
View README.md

This gist demonstrates that you need a lot of special handlers for form submission...

@ericanderson
ericanderson / index.html
Last active Dec 21, 2015
Demonstrates preventDefault vs stopPropagation
View index.html
<html>
<head>
<script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
</head>
<body>
<form id="preventDefault">
<button>preventDefault</button>
</form>
@ericanderson
ericanderson / index.html
Last active Dec 10, 2015
Starting point for bl.ocks.org pages.
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Example Project</title>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap.no-icons.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.0/css/font-awesome.css" rel="stylesheet">
</head>
<body>
Test
</body>
View code.coffee
$ ->
svg = d3.select("body").insert("svg:svg", "body")
View simple_filter_branch.sh
#!/bin/bash
# Reset
Color_Off='\033[0m' # Text Reset
# Regular Colors
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
View bootstrapmac.sh
#!/bin/bash
if [[ -z `which cc` ]]; then
echo "Please install Xcode from the app store, then install the command line tools."
read -p "Press enter when done"
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
fi
if [[ -z `which gcc-4.2` ]]; then
You can’t perform that action at this time.