Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesse Buchanan jbinto

View GitHub Profile
@jbinto
jbinto / gist:9620922
Created Mar 18, 2014
'yo angular foo' hangs at jpegtran-bin, bower asking a question
View gist:9620922
# 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 Mar 18, 2014
npm zsh completion broken
View gist:9621435
% npm egrep: empty (sub)expression 1 ↵
\"\$\{COMP_WORDS\[@\]\}\"
\"\$\{words\[@\]\}\"
\#
\#\#\#-begin-npm-completion-\#\#\#
\#\#\#-end-npm-completion-\#\#\#
\$\(COMP_CWORD=\$\(\(CURRENT-1\)\)
\$\?
\&\>/dev/null\;
@jbinto
jbinto / gist:9676545
Last active Aug 29, 2015
thinkster.io chapter 6 fixes - user not signed in after registering
View gist:9676545

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 / gist:9665977
Created Mar 20, 2014
Make Sublime Text not search through JS vendor/generated code (e.g. typical yeoman project)
View gist:9665977

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 / digitalocean_images_nyc_april2014.json
Created Apr 3, 2014
DigitalOcean images, NYC region, April 2014
View digitalocean_images_nyc_april2014.json
{
"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 Apr 3, 2014
DigitalOcean sizes, NYC region, April 2014
View digitalocean_sizes_nyc_april2014.json
{
"status":"OK",
"sizes":[
{
"id":66,
"name":"512MB",
"slug":"512mb",
"memory":512,
"cpu":1,
"disk":20,
@jbinto
jbinto / gist:c660d41b84c1d4acbb07
Created Sep 27, 2014
EmberJS basics cheatsheet
View gist:c660d41b84c1d4acbb07
// 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
View 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 Aug 29, 2015
FeatureWalker - algorithm to walk through bikeway data. Replaced by single PostGIS query.
View bikeway_segment.rb
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
View gist:9295e835d6b4ed45d5ab
[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