This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: git-branch-report [options]" | |
opts.on("--porcelain", "Output machine-readable output") do |v| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: git-safe-delete-branch-report [options]" | |
opts.on("--porcelain", "Output machine-readable output") do |v| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generate_attribute_list(only, except) | |
result = self.new.attribute_names | |
result &= [only].flatten unless only.blank? | |
result -= [except].flatten unless except.blank? | |
return result | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: awesome feature | |
In order to see if this is awesome | |
As a coding dojo runner | |
I want to be able to pull this down like a plugin | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CustomMatchers | |
# Although, it's pretty crude, the BeRandom custom matcher attempts to check randomness. | |
# | |
# It would be invoked like follows: | |
# 1. lambda { perform_some_action }.should be_random | |
# 2. lambda { perform_some_action }.should be_random(7) | |
# 3. lambda { perform_some_action }.should be_random(7).with_a_tolerance_of(3) | |
# | |
# It takes a number of times (default is 10) to execute the lambda. Then, it expects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// only outputs if console available and does each argument on its own line | |
function log() { | |
if (window && window.console && window.console.log) { | |
var i, len; | |
for (i=0, len=arguments.length; i<len; i++) { | |
console.log(arguments[i]); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT='%{$fg[cyan]%}%n %{$fg[green]%}%c %{$fg[yellow]%}$(git_prompt_info)%{$fg[yellow]%} % %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="" | |
ZSH_THEME_GIT_PROMPT_DIRTY="] %{$fg[red]%}•%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT='%{$fg[cyan]%}%n %{$fg[green]%}%c %{$fg[yellow]%}$(git_prompt_info)%{$fg[yellow]%} | |
%# % %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="" | |
ZSH_THEME_GIT_PROMPT_DIRTY="] %{$fg[red]%}•%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SubCategoryDisplay = (function() { | |
function Thumb (element, container) { | |
var element = $(element); | |
var _selected = element.hasClass('selected'); | |
var image = function() { | |
var parts = $('img', element).attr('src').split(/\//) | |
return { | |
filename: parts[parts.length-1].split(/\?/)[0], | |
id: parts[3] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name ExecutiveSummary | |
// @namespace http://fluidapp.com | |
// @description What does this do? | |
// @include * | |
// @author Dave Giunta | |
// ==/UserScript== | |
(function () { | |
if (window.fluid) { |
OlderNewer