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
Code: | |
class RepoControllerTests extends ControllerUnitTestCase { | |
protected void setUp() { | |
super.setUp() | |
} | |
protected void tearDown() { | |
super.tearDown() | |
} |
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
class CommandLine { | |
def ls() { | |
def cmd = "ls".execute() | |
if(cmd.waitFor() != 0) { | |
throw new Execution() | |
} | |
return cmd.text | |
} | |
} |
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
<< | |
{ <a a'>2 } \\ | |
{ e'8. cis'16 d'4 } | |
>> | |
<< | |
{ <a d' a'>4 <a' d''>4 } \\ | |
{ s4 e'8 d'8 } | |
>> | |
<< | |
{ a'4 a'4 } \\ |
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
// Class under test | |
class Repo { | |
static listRepos() { | |
def dir = new File("repos") | |
def repos = [] | |
dir.listFiles().each { | |
def regex = /repos\/(.+)\.git/ | |
def match = it =~ regex | |
if(match.size() > 0) { |
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
commit 3f3dc05bada3b0aa782091215cd9f59b9b64928e | |
Merge: 01740c7 481708e | |
Author: Hayden Muhl <[email protected]> | |
Date: Mon Jul 18 15:17:33 2011 -0700 | |
Merge branch 'feature' | |
diff --cc sandwich | |
index 919ef00,727d1bd..52ffab8 | |
--- a/sandwich |
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
<ul> | |
<g:each in="${list}" var="item"> | |
<li><render template="itemTemplate" model="[item: item]"/></li> | |
</g:each> | |
</ul> | |
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> | |
${item.name} |
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
line 1 | |
line 2 | |
line 3 | |
etc. |
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
<project name="hNes" default="build" basedir="."> | |
<presetdef name="javac"> | |
<javac includeantruntime="false" /> | |
</presetdef> | |
<property name="src" location="src" /> | |
<property name="build" location="build" /> | |
<property name="test" location="test" /> | |
<property name="src.classes" location="${build}/classes" /> | |
<property name="test.classes" location="${build}/tests" /> |
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
package amidst.me; | |
import java.io.File; | |
import java.io.PrintStream; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.Set; |
OlderNewer