Skip to content

Instantly share code, notes, and snippets.

View mbriggs's full-sized avatar

Matt Briggs mbriggs

View GitHub Profile
@mbriggs
mbriggs / gist:4255089
Created December 11, 2012 01:49
apps I use every day
iStat - monitor resource consumption
LittleSnapper - scrapbook for inspiration / nice screencaps
KeyRemap4MacBook - ctrl / fn need swapping, and up key repeat speed past what the control panel allows
Caffeine - keep machine awake
Fantastical - natural language calendar
Bartender - keep menubar sane
BetterTouchTool - map gaming mouse buttons to various things
Shimo - Nice VPN tool, supports many networks
DragonDrop - wiggle the mouse when dragging to create a temporary "dock"
Alfred - best app launcher on any os ever
Routes.define({
jobs: {
module: App.Job,
search: {
modules: [App.Job.SearchList, App.Job.FiltersSidebar]
},
create: {
modules: [App.Job.CreateForm, App.Job.InfoSidebar]
require 'mongo'
require 'nokogiri'
require 'pg'
task 'qcloud:migrate:standards' do
mongo_conn = Mongo::Connection.new.db("qcloud")
pg_conn = PG.connect(dbname: "qcloud_dev", host: 'localhost')
standards_collection = mongo_conn["standards"]
sheets_collection = mongo_conn["sheets"]
(defun semi-colonize ()
(interactive)
(beginning-of-buffer)
(query-replace-regexp "^ *[^/]+[^;,{}\n.]$" "\\&;"))
/* global Underscore jQuery console */
;(function($){
// this is required to solve virtually any problem
var logAllTheThings = false;
function log(){
if(console && logAllTheThings) console.log.apply(console, arguments);
}
/* global Underscore jQuery console */
;(function($){
// this is required to solve virtually any problem
var logAllTheThings = false;
function log(){
if(console && logAllTheThings) console.log.apply(console, arguments);
}
/*
* Currently (as I understand it), BBCloneMail is organized as a hierarchy of modules,
* where all modules communicate via req/resp, or commands, and all internals are implementation
* details.
*
* for the purposes of conversation, I am calling modules that are conceptually bodies of code as
* "sub applications", and modules that interact in those bodies of code as "modules"
*/
// psudo-code
source :gemcutter
# we normally only list top-level dependencies in this file
gem "activerecord-import", "~> 0.2.0"
gem 'activerecord-postgres-hstore'
gem "acts_as_list", "~> 0.1.4"
gem "authorization-rails", "~> 1.0.12", :require => "authorization"
gem 'awesome_print', :require => 'ap'
gem 'nulogy-authlogic', '~>3.1', :require => 'authlogic'
gem 'autocomplete_for', '~> 0.2.4'
module ActionView #:nodoc:
module Helpers #:nodoc:
extend ActiveSupport::Autoload
autoload :ActiveModelHelper
autoload :AssetTagHelper
autoload :AtomFeedHelper
autoload :BenchmarkHelper
autoload :CacheHelper
autoload :CaptureHelper
// unbind all bindings for a given object
unbindAllEventsFor: function(obj){
var binder = this;
_(this._eventBindings).chain().
filter(function(binding){
return binding.obj === obj;
}).
each(function(binding){
binder.unbindFrom(binding);