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
| `grep "bean id=" resources/*.xml`.split("\n").map{ |raw_bean| | |
| raw_bean.split('"') | |
| }.map {|bean_pieces| | |
| bean_pieces[1] | |
| }.map {|bean_name| | |
| num = `find ./ -iname "*.java" -exec grep #{bean_name} '{}' \\; | wc -l` | |
| puts "#{bean_name} #{num}" | |
| } |
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
| cab_driver_pay_per_hour = 8 | |
| average_cab_drivers_on_duty_per_hour = 100 | |
| dispatcher_pay_per_hour = 10 | |
| average_cab_driver_hours_worked_per_day = 10 | |
| cab_drivers_per_dispatcher = 50 | |
| average_miles_per_gallon = 30 | |
| average_miles_per_trip = 5 | |
| average_trip_duration = 20 # minutes | |
| average_miles_per_minute = 30 | |
| hours_in_day = 24 |
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
| import org.junit.Test; | |
| import javax.xml.datatype.DatatypeConfigurationException; | |
| import javax.xml.datatype.DatatypeFactory; | |
| import javax.xml.datatype.XMLGregorianCalendar; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Calendar; | |
| import java.util.GregorianCalendar; | |
| import static junit.framework.Assert.assertEquals; |
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
| import org.joda.time.DateTime; | |
| import org.junit.Test; | |
| import static org.junit.Assert.fail; | |
| import static org.junit.Assume.assumeTrue; | |
| public class TimedIgnoreTest { | |
| @Test | |
| public void shouldRunBecauseAssumptionHasTimedOut() { |
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
| configs = `find . -name config | grep ".git"` | |
| configs.split("\n").each{ |config| | |
| puts config.gsub("/.git/config", "").gsub("./", "") + `grep "url =" #{config}`.gsub("url =", "") + "\n" | |
| } |
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
| idea.module { | |
| testSourceDirs += file('src/test/unit/java') | |
| testSourceDirs += file('src/test/unit/resources') | |
| excludeDirs += 'file://$MODULE_DIR$/src/main/webapp/node_modules' | |
| } | |
| idea.project { | |
| ipr.withXml { provider -> | |
| def node = provider.asNode() |
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
| (use 'clojure.string) | |
| (defn first-parts-are? [s test-string] | |
| (let [cleaned-string (subs s 0 (min | |
| (count test-string) | |
| (count s)))] | |
| (= test-string cleaned-string))) | |
| (defn is-a-comment [line] | |
| (some true? (map | |
| (partial first-parts-are? line) |
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
| @if "%DEBUG%" == "" @echo off | |
| @rem ########################################################################## | |
| @rem | |
| @rem Gradle startup script for Windows | |
| @rem | |
| @rem ########################################################################## | |
| @rem Set local scope for the variables with windows NT shell | |
| if "%OS%"=="Windows_NT" setlocal |
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
| class Tvcom | |
| attr_reader :command | |
| attr_accessor :valid | |
| def initialize(foo, valid) | |
| @command = foo | |
| @valid = valid | |
| end | |
| def flip |
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
| files = `git ls-files | grep -v vendor`.split("\n") | |
| a = files[Random.new.rand(files.size)] | |
| p a | |
| `open -a "/Applications/Sublime\ Text.app/" #{a}` | |
OlderNewer