Skip to content

Instantly share code, notes, and snippets.

View carlwoodward's full-sized avatar
🤠

Carl Woodward carlwoodward

🤠
  • Scentre Group
  • Sydney
View GitHub Profile
@carlwoodward
carlwoodward / das_download.rb
Created November 12, 2012 12:18 — forked from kalbasit/das_download.rb
Script to download all Destroy All Software screencasts, account needed
#! /usr/bin/env ruby
# usage:
# $ das_download.rb email password [download_directory]
require 'mechanize'
# gem 'mechanize-progressbar'
email = ARGV[0] or raise('Please provide the email address for your account')
password = ARGV[1] or raise('Please provide the password for your account')
path = (ARGV[2] || './').gsub /\//,''
@carlwoodward
carlwoodward / gist:1169698
Created August 25, 2011 00:54 — forked from SET001/gist:1169674
login shit
User = Backbone.Model.extend({
login_attempts: 3,
login: function(){
var that = this;
var res = null;
$.ajaxSetup({async:false});
$.post(SITE_PATH + 'user/login', $('form#loginform').serialize(), function(data){
try{
res = $.parseJSON(data);
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
version '7.3.161'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end
def new_plural (number, text)
number == 1 ? text : text.pluralize
end
ENV["I_LIKE_METHOD_ALIAS_CHAIN"] = "true"
require 'rubygems'
require 'haml'
# performance optimizations.
load 'paml.rb'
pml = Paml.new