Skip to content

Instantly share code, notes, and snippets.

View adamfortuna's full-sized avatar

Adam Fortuna adamfortuna

View GitHub Profile
@adamfortuna
adamfortuna / lol.js
Last active February 18, 2016 01:29 — forked from wesbos/lol.js
// paste in your console
speechSynthesis.onvoiceschanged = function() {
var msg = new SpeechSynthesisUtterance();
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0];
msg.text = document.getElementsByTagName('body')[0].textContent;
this.speak(msg);
};
@adamfortuna
adamfortuna / config.ru
Created February 29, 2012 17:48
Rails Lightweight Stack. Most of this is detailed on Crafting Rails Applications - http://pragprog.com/book/jvrails/crafting-rails-applications
# Run this file with `RAILS_ENV=production rackup -p 3000 -s thin`
# Be sure to have rails and thin installed.
require "rubygems"
require "rails"
# Let's load only action controller. If you want
# to use active record, just require it as well.
require "action_controller/railtie"
class MyApp < Rails::Application