Skip to content

Instantly share code, notes, and snippets.

View tibbon's full-sized avatar

David Fisher tibbon

View GitHub Profile
@apangeajwrubel
apangeajwrubel / gist:4953849
Created February 14, 2013 16:11
our unicorn config
rails_env = ENV['RAILS_ENV'] || 'production'
preload_app true
# number of workers - makes sure this matches memory config
worker_processes Integer(ENV['UNICORN_WORKERS'] || 2)
# restart workers if request takes too long
timeout Integer(ENV['UNICORN_TIMEOUT'] || 25)
# Only allow reasonable backlog of requests per worker
anonymous
anonymous / gist:5051617
Created February 27, 2013 20:53

To the members of the MIT community:

This past weekend, a distressing event disrupted the life of our campus community. I am writing now to share details about the incident and important information that affects us all.

The incident itself On Saturday, February 23 at 7:28 AM, the dispatch center at the Cambridge Police Department (CPD) received an electronic communication reporting an emergency at 77 Massachusetts Avenue. The communication came through a Sprint relay message service designed for people with hearing or speech impediments. The communication went on for more than 18 minutes, with a Sprint relay operator interacting with the caller and in turn communicating with a CPD dispatcher.

One minute into the communication, the caller reported someone with a “really big gun,” and “armor” who was “getting out of control.” The CPD dispatcher immediately sent CPD units and State Police to the site, and notified MIT Police.

Within two minutes of being notified, the first MIT Police units entered Buildi

window.alert = function() {};
var customUsername = "POOOOP";
var postMessage = 'POOOOOOP';
var spamEvent = jQuery.Event("submit");
//spamEvent.keyCode = 13;
GhostPost.username = customUsername;

### How would your project help to further humanities research?

(e.g. it will make more content and data openly available for researchers to use, it will produce novel insights into humanities data through visualisations...) *

GITenberg will improve the quality of Public Domain transcriptions of books by treating books like open source code. The GITenberg project has compiled an archive of 40,000 public domain ebooks, and by applying open source software tools and techniques to these texts,

@exocode
exocode / MegaGen.rb
Last active December 16, 2015 21:59
SETUP your advanced Ruby on Rails app in seconds. This generator-setup-script which I call "MegaGen" provides a complete automatic setup of mongoid, mySQL, pg, Guard, rSpec, Cucumber, Shoulda Matchers, Capybara, fabrication, factory_girl, haml, amazon-aws, omniauth, devise, cancan, carrierwave, paperclip, and more. Simply choose your desired add…
####
# Copyright by mediatainemnt-productions.com
# Created by Jan Jezek
# 2012
############################
## PLUGIN
#########
@phlco
phlco / sublime_text_notes.md
Last active December 18, 2015 14:08
sublime text notes
@jfarmer
jfarmer / 00_LICENSE.md
Last active January 4, 2017 08:43
It's like lisp, in JavaScript!

Getting started

First add your twitter username and password. Then server.rb and once it's started open websocket.html in your browser. You should see some tweets appear. If not take a look at the javascript console.

@juliocesar
juliocesar / testing_front_end_rspec_capybara.md
Created October 21, 2010 23:51
Testing front-end for a Sinatra app with RSpec and Capybara

Testing front-end for a Sinatra app with RSpec and Capybara

I've used Cucumber quite a bit on my last job. It's an excellent tool, and I believe readable tests are the way to the future. But I could never get around to write effective scenarios, or maintain the boatload of text that the suite becomes once you get to a point where you have decent coverage. On top of that, it didn't seem to take much for the suite to become really slow as tests were added.

A while ago I've seen a gist by Lachie Cox where he shows how to use RSpec and Capybara to do front-end tests. That sounded perfect for me. I love RSpec, I can write my own matchers when I need them with little code, and it reads damn nicely.

So for my Rails Rumble 2010 project, as usual, I rolled a Sinatra app and figured I should give the idea a shot. Below are my findings.

Gemfile

# rubocop:disable Style/HashSyntax
# shoryuken用のタスク
namespace :queues do
desc 'Create default SNS & SQS'
task 'setup' => :environment do
# http://qiita.com/takeyuweb/items/cdc262d97c3e863c15ff
# TODO
end
desc "List all SQS queues"