This file contains hidden or 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
#!/bin/bash | |
# Deletes all branches already merged with master | |
git checkout master | |
git pull | |
for BRANCH in `git branch`; do | |
git branch -d ${BRANCH} | |
done |
This file contains hidden or 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
# I had a lot of fun doing this one! The following code makes | |
# the tests at https://gist.github.com/6ea0a0ba5702824075ab pass. | |
# | |
# NOTE: I normally would DRY some of this code up, but it's just a | |
# fun challenge and would never be deployed to production. :) | |
module MethodInstrumenter | |
def self.instrument_path(path) | |
@path = path | |
@instrumenting = false |
This file contains hidden or 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
# The way the parallel_tests gem loads the test suite is incompatible with how ci_reporter loads the | |
# test suite. This module reconciles the difference by recognizing when ci_reporter is expected to | |
# be loaded and then doing it. | |
module ParallelCIReporter | |
# Sets up ci_reporter if necessary. | |
def self.setup_ci_reporter | |
install_mediator if ci_reporter? | |
end |
This file contains hidden or 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
(function( $ ) { | |
$.fn.simulateDragDrop = function(options) { | |
return this.each(function() { | |
new $.simulateDragDrop(this, options); | |
}); | |
}; | |
$.simulateDragDrop = function(elem, options) { | |
this.options = options; | |
this.simulateEvent(elem, options); | |
}; |
NewerOlder