Skip to content

Instantly share code, notes, and snippets.

View jbinto's full-sized avatar

Jesse Buchanan jbinto

View GitHub Profile
@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
@jbinto
jbinto / index.html
Created November 2, 2014 07:40
[add your bin description] // source http://jsbin.com/begojepigu
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]" />
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
select {
display: block;
@jbinto
jbinto / upgrading-ruby.md
Last active August 29, 2015 14:09
Upgrading Ruby

Upgrading Ruby

"If something is painful, do it more often."

  • 2.1.5: Nov 13 2014

OS X

I am using chruby and ruby-install.

@jbinto
jbinto / dokku-notes.md
Last active August 29, 2015 14:09
dokku

Notes

Installing:

  • DigitalOcean NYC3 Dokku 0.2.3 on 14.04 with Docker 1.2.0) - create droplet with public key, get an IP address
  • Set up DNS for jbinto.ca: A records for jbinto.ca and *.jbinto.ca
  • DNS won't propogate immediately, so edit /etc/hosts for now
  • Go to http://jbinto.ca, check "Use virtual hosts", verify public key and hostname, finish setup

Deploying