Skip to content

Instantly share code, notes, and snippets.

View bdimcheff's full-sized avatar

Brandon Dimcheff bdimcheff

View GitHub Profile
@bdimcheff
bdimcheff / notifier.sh
Created March 27, 2013 15:07
pidgin notifier
#!/bin/bash
DIR=`dirname $0`
$DIR/pidgin_notifier.py | grep -v --line-buffered "^Brandon Dimcheff" | grep -i --line-buffered "\(brandon\)\|\(bdimchef\)\|\(@all\)" | while read line;do notify-send -- "Mentioned in HipChat" "${line}";done
@bdimcheff
bdimcheff / git-recentbranch
Last active August 14, 2018 19:28
git-recentbranch
#!/usr/bin/env bash
for k in `git branch -a|sed "s/..//"|sed "s/\s*->.*//"`;do echo -e `git log -1 --pretty=format:"%ct %Cblue%cr%Creset" "$k" --`\\t"$k";done|sort| cut -d' ' -f2-
@bdimcheff
bdimcheff / jquery.query.js
Created June 22, 2012 21:58
jquery-query
/**
* http://plugins.jquery.com/project/query-object
* jQuery.query - Query String Modification and Creation for jQuery
* Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
* Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
* Date: 2009/8/13
*
* @author Blair Mitchelmore
* @version 2.1.7
*
module EnumerableExtensions
def lazy_map(&block)
Enumerator.new do |yielder|
each do |e|
yielder << block.call(e)
end
end
end
end
@bdimcheff
bdimcheff / .ackrc
Created September 20, 2011 15:45
ackrc
--type-add=ruby=.haml,.rake,.rsel,.feature,.sass
--type-add=xml=.xsd
--type-add=css=.scss
/Users/bdimchef/.rvm/gems/ruby-1.9.2-p0/gems/capybara-0.4.0/lib/capybara/rails.rb:15:in `<top (required)>': undefined method `join' for nil:NilClass (NoMethodError)
from /Users/bdimchef/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /Users/bdimchef/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `block in require'
from /Users/bdimchef/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /Users/bdimchef/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /Users/bdimchef/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/bdimchef/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /Users/bdimchef/.rvm/gems/ruby-1.9.2-p0/gems/rspec-rails-2.3.1/lib/rspec
From c4a38b39430be495cd5b131d660e1b145280148f Mon Sep 17 00:00:00 2001
From: Brandon Dimcheff <[email protected]>
Date: Sat, 11 Dec 2010 01:34:04 -0500
Subject: [PATCH] find_or_create_by doesn't set proper values when using a hash
---
.../associations/has_many_associations_test.rb | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb
var groups = FindMyGroupsSomehow();
var groupRoot = SC.Object.extend({
treeItemIsExpanded: YES,
treeItemChildren: function() {
return groups;
}.property().cacheable()
});
MyApp.sourceListController.set('content', groupRoot.create());
def folder_path(*args)
File.expand_path(args.join("-"), env.config.chef.provisioning_path)
end
From a65a98d171d00768cb0592e85f99f24d84fd8a3c Mon Sep 17 00:00:00 2001
From: Brandon Dimcheff <[email protected]>
Date: Thu, 22 Apr 2010 19:41:00 -0400
Subject: [PATCH] give me http back
---
.../autocomplete/history_contents_provider.cc | 3 +--
.../browser/autocomplete/history_url_provider.cc | 3 +--
chrome/browser/autocomplete/search_provider.cc | 3 +--
chrome/browser/bookmarks/bookmark_table_model.cc | 2 +-