Skip to content

Instantly share code, notes, and snippets.

View jbinto's full-sized avatar

Jesse Buchanan jbinto

View GitHub Profile
@jbinto
jbinto / gist:9620922
Created March 18, 2014 14:16
'yo angular foo' hangs at jpegtran-bin, bower asking a question
# See https://github.com/yeoman/generator-angular/issues/505
# Below: output from 'yo angular foo' (or what was left in scrollback buffer)
npm http 200 https://registry.npmjs.org/grunt-karma/-/grunt-karma-0.8.2.tgz
npm http 200 https://registry.npmjs.org/load-grunt-tasks/-/load-grunt-tasks-0.2.1.tgz
npm http 200 https://registry.npmjs.org/grunt/-/grunt-0.4.4.tgz
npm http 200 https://registry.npmjs.org/time-grunt/-/time-grunt-0.2.10.tgz
npm http 200 https://registry.npmjs.org/grunt-autoprefixer/-/grunt-autoprefixer-0.4.2.tgz
npm http GET https://registry.npmjs.org/globule
npm http GET https://registry.npmjs.org/google-cdn
@jbinto
jbinto / gist:9621435
Created March 18, 2014 14:41
npm zsh completion broken
% npm egrep: empty (sub)expression 1 ↵
\"\$\{COMP_WORDS\[@\]\}\"
\"\$\{words\[@\]\}\"
\#
\#\#\#-begin-npm-completion-\#\#\#
\#\#\#-end-npm-completion-\#\#\#
\$\(COMP_CWORD=\$\(\(CURRENT-1\)\)
\$\?
\&\>/dev/null\;
@jbinto
jbinto / gist:9665977
Created March 20, 2014 15:11
Make Sublime Text not search through JS vendor/generated code (e.g. typical yeoman project)

In Preferences.sublime-settings (press CMD + , on OS X), add the following:

"folder_exclude_patterns": [".svn", ".git", ".hg", ".sass-cache", ".tmp", "node_modules", "dist", "bower_components"]
@jbinto
jbinto / gist:9676545
Last active August 29, 2015 13:57
thinkster.io chapter 6 fixes - user not signed in after registering

Firebase 'Auth' section now 'Simple Login'

In the Firebase Forge, navigate to the 'Auth' section. Under the 'Authentication Providers' header, select the 'Email & Password' option, and check 'Enable'.

It's now just called "Simple Login". See https://pbs.twimg.com/media/BjMkJAjCMAAvCGT.png

User is not signed in after registering

Now when we register, we should be redirected to the posts page and a log out button should appear in the navbar.

@jbinto
jbinto / digitalocean_images_nyc_april2014.json
Created April 3, 2014 22:51
DigitalOcean images, NYC region, April 2014
{
"status":"OK",
"images":[
{
"id":1601,
"name":"CentOS 5.8 x64",
"slug":"centos-5-8-x64",
"distribution":"CentOS",
"public":true,
"regions":[
@jbinto
jbinto / digitalocean_sizes_nyc_april2014.json
Created April 3, 2014 22:54
DigitalOcean sizes, NYC region, April 2014
{
"status":"OK",
"sizes":[
{
"id":66,
"name":"512MB",
"slug":"512mb",
"memory":512,
"cpu":1,
"disk":20,
@jbinto
jbinto / gist:c660d41b84c1d4acbb07
Created September 27, 2014 03:12
EmberJS basics cheatsheet
// Based on concepts learned in ch 3 of http://ember.vicramon.com/the-ember-object
// defining objects
App.InternetUser = Ember.Object.extend();
App.InternetUser.reopen({
intelligence: -50,
status: 'anonymous'
});
// computed properties
@jbinto
jbinto / keybase.md
Created October 7, 2014 02:12
keybase.md

Keybase proof

I hereby claim:

  • I am jbinto on github.
  • I am jbinto (https://keybase.io/jbinto) on keybase.
  • I have a public key whose fingerprint is C727 8EB4 A461 0AA2 70B6 9B33 5F08 1903 2C80 49ED

To claim this, I am signing this object:

@jbinto
jbinto / bikeway_segment.rb
Last active August 29, 2015 14:07
FeatureWalker - algorithm to walk through bikeway data. Replaced by single PostGIS query.
require 'gis_tools'
# == Schema Information
#
# Table name: bikeway_segments
#
# id :integer not null, primary key
# city_rid :integer
# city_geo_id :integer
# city_linear_feature_name_id :integer
# city_object_id :integer
[blocked] The page at 'https://railsapps.github.io/' was loaded over HTTPS, but ran insecure content from 'http://railsapps.github.io/css/landing.css': this content should also be loaded over HTTPS.
railsapps.github.io/:1
The page at 'https://railsapps.github.io/' was loaded over HTTPS, but displayed insecure content from 'http://railsapps.github.io/images/landing/rickquantz.png': this content should also be loaded over HTTPS.
railsapps.github.io/:1
The page at 'https://railsapps.github.io/' was loaded over HTTPS, but displayed insecure content from 'http://railsapps.github.io/images/landing/josephmay.png': this content should also be loaded over HTTPS.
railsapps.github.io/:1
The page at 'https://railsapps.github.io/' was loaded over HTTPS, but displayed insecure content from 'http://railsapps.github.io/images/landing/justin.png': this content should also be loaded over HTTPS.
railsapps.github.io/:1
The page at 'https://railsapps.github.io/' was loaded over HTTPS, but displayed insecure content from 'http