Skip to content

Instantly share code, notes, and snippets.

fixin' bugs and givin' hugs

Tom Scott tubbo

fixin' bugs and givin' hugs
Block or report user

Report or block tubbo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mttdffy / unvalidate.rb
Last active Nov 17, 2017
RoR/Mongoid module for removing validations from a model
View unvalidate.rb
module Mongoid
module Unvalidate
extend ActiveSupport::Concern
module ClassMethods
# Removes specified validations from existing models for a given field
# @param [Symbol] field the field to remove validations from
# @param [Array<Symbol> | Symbol] validations validations to remove from field
View helpers.js
QUnit.config.testTimeout = 4000;
/*global $ App*/
Ember.onLoad('application', function(application) {
Ember.onLoad('Ember.Application', function(Application) {
name: 'tests',
gaspanik / capture.js
Last active Nov 6, 2018
Take screenshot at single viewport size using CasperJS
View capture.js
var screenshotUrl = ''
var casper = require("casper").create({
viewportSize: {
width: 1024,
height: 768
if (casper.cli.args.length < 1) {
tubbo / macvim_drawer.rb
Created Jul 9, 2012
macvim-drawer homebrew formula
View macvim_drawer.rb
require 'formula'
class MacvimDrawer < Formula
homepage ''
head 'git://', :branch => 'split-browser'
def options
# Building custom icons fails for many users, so off by default.
["--custom-icons", "Try to generate custom document icons."],
tubbo / stock.rb
Created Nov 24, 2011
A stock price fetcher and dividend yield calculator for humans.
View stock.rb
#!/usr/bin/env ruby
# = Stock
# Given a key/value pair of a stock symbol and how many shares you own, this
# program will spit out the yearly dividend amounts you will yield from holding
# it. Based on data from Yahoo! Finance.
# == Installation
# Install to ~/bin and run
c4milo / yourservice.conf
Created Apr 25, 2011
upstart example script
View yourservice.conf
# Ubuntu upstart file at /etc/init/yourservice.conf
pre-start script
mkdir -p /var/log/yourcompany/
end script
respawn limit 15 5
start on runlevel [2345]
You can’t perform that action at this time.