Skip to content

Instantly share code, notes, and snippets.

View gnagel's full-sized avatar
🥳
Cranking on new projects, and nuking tech debt with a flamethrower 🔥

Glenn Nagel gnagel

🥳
Cranking on new projects, and nuking tech debt with a flamethrower 🔥
View GitHub Profile
@gnagel
gnagel / main.js
Last active September 10, 2015 18:09 — forked from anonymous/main.js
AWS Lambda Functions in Go
var exec = require('child_process').exec;
console.log('Loading event');
exports.handler = function(event, context) {
eventJSON = JSON.stringify(event);
exec('./test ' + eventJSON, function callback(error, stdout, stderr) {
console.log('stdout: ' + stdout);
console.log('stderr: ' + stderr);
#
# CodeSkuptor URL:
# http://www.codeskulptor.org/#user40_werrOBjB7u_0.py
#
# spaceship.py
# github.com/gnagel
# 2015/08/01
#
#
#
#
# CodeSkuptor URL:
# http://www.codeskulptor.org/#user40_qps4KtZAHn_0.py
#
# guess_the_number.py
# github.com/gnagel
# 2015/08/01
#
#
# We have provided a basic template for this mini-project here.
@gnagel
gnagel / blackjack.py
Last active January 12, 2021 08:45
CodeSkulptor can't save right now :-(
#
# CodeSkulptor URL:
# http://www.codeskulptor.org/#user40_cA4au5WIDr_0.py
#
#
# blackjack.py
# 2015-07-25
# github.com/gnagel
#
#
@gnagel
gnagel / memory.py
Last active August 29, 2015 14:25
CodeSkulptor is unable to save at this time :-(
#
# CodeSkuptor URL:
# http://www.codeskulptor.org/#user40_0zoDGCu9x5_0.py
#
# memory.py
# 2015-07-25
# github.com/gnagel
#
#
# Mini-project description - Memory (late version - half credit)
@gnagel
gnagel / rock_spock_paper_lizard_scissors.py
Last active August 29, 2015 14:25
CodeSkulptor is unable to save at this time :-(
#
# CodeSkulptor URL:
# http://www.codeskulptor.org/#user40_H6qP6dj1LU_0.py
#
# rock_spock_paper_lizard_scissors.py
# 2015-07-25
# github.com/gnagel
#
#
# Rock-paper-scissors is a hand game that is played by two people.
/**
* Parse query string.
* ?a=b&c=d to {a: b, c: d}
* @param {String} (option) queryString
* @return {Object} query params
*/
getQueryParams: function(queryString) {
var query = (queryString || window.location.search).substring(1); // delete ?
if (!query) {
return false;
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:

Preface

Below are the steps I took to install ffmpeg, ffmpegthumbnailer, and heroku to use with carrierwave-video and carrierwave-video-thumbnailer gems on my heroku app. I found there was no documentation to do exactly this, so I hope this is helpful for other people (and will save them the countless hours it took me to finally get it to work)

These are the libraries you will end up installing to get all of this to work.

  • x264