Skip to content

Instantly share code, notes, and snippets.

View ryanwjackson's full-sized avatar

Ryan ryanwjackson

  • Paid
  • San Francisco, CA
View GitHub Profile

Installing a Gem on Heroku from a Private GitHub Repo

Sometimes you want to use a gem on Heroku that is in a private repository on GitHub.

Using git over http you can authenticate to GitHub using basic authentication. However, we don't want to embed usernames and passwords in Gemfiles. Instead, we can use authentication tokens.

  1. Get an OAuth Token from GitHub

First you will need to get an OAuth Token from GitHub using your own username and "note"

@ryanwjackson
ryanwjackson / gist:6108488
Created July 29, 2013 22:30
Handsontable Implementation
$(document).ready(function() {
var handson_table_data = []
var container = $("#edit-metrics-handson-table")
var renderResponse = function (instance, td, row, col, prop, value, cellProperties) {
if (row == 0 || col == 0) {
cellProperties.readOnly = true;
@ryanwjackson
ryanwjackson / gist:6107335
Created July 29, 2013 20:09
HandsonTable Custom Render
$(document).ready(function() {
var container = $("#edit-metrics-handson-table")
var renderResponse = function (instance, td, row, col, prop, value, cellProperties) {
if (row == 0 || col == 0) {
cellProperties.readOnly = true;
}