Skip to content

Instantly share code, notes, and snippets.

[ -f ~/.bundler-exec.sh ] && source ~/.bundler-exec.sh
git-completion
--------------
http://benmabey.com/2008/05/07/git-bash-completion-git-aliases.html
.gitconfig
----------
[alias]
st = status
ci = commit
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Web;
using System.Windows;
using Microsoft.Win32;
namespace DocRaptorExample
{
# Example #1: proxy div lookup
class ProxyObject
def method_missing(method, *args, &block)
puts "fake send a method to another process: #{method}(*#{args.inspect}, &#{block.inspect})"
end
end
$browser = ProxyObject.new
$browser.send :div, /foo/
config.gem "redgreen"
@expectedbehavior
expectedbehavior / test_helper.rb
Created February 2, 2010 18:30
A console testrunner hack to show big dots for long-running tests
require 'test/unit/ui/console/testrunner'
require File.join("#{RAILS_ROOT}/lib", 'patches/testrunner')
@expectedbehavior
expectedbehavior / activesupport.rb
Created January 31, 2010 20:56
A patch to allow tag-based testing
module ActiveSupport
module Testing
module Declarative
# test "verify something" do
# ...
# end
alias :tu_test_original :test
def test(name, tags = nil, &block)
if tag_option_specified?
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/x-javascript js;
application/atom+xml atom;
application/rss+xml rss;
.columns > .column_item > .app_tag > .state > .selected {
background-color: hsla(209, 40%, 15%, 0.6);
background-color: #282C19;
background-image: -webkit-gradient(linear, left top, left bottom, from(#39481A), to(#303B17));
background-image:
-webkit-gradient(
linear,
0% 0%,
100% 0%,