Skip to content

Instantly share code, notes, and snippets.

@sixman9
sixman9 / gist:3561357
Created August 31, 2012 23:52 — forked from rodionmoiseev/gist:2484934
Setting up Play 2.0 in build.gradle
apply plugin: 'java'
apply plugin: 'scala'
// For those using Eclipse or IntelliJ IDEA
apply plugin: 'eclipse'
apply plugin: 'idea'
def findPlay20(){
def pathEnvName = ['PATH', 'Path'].find{ System.getenv()[it] != null }
for(path in System.getenv()[pathEnvName].split(File.pathSeparator)){
for(playExec in ['play.bat', 'play.sh', 'play']){
@sixman9
sixman9 / GoogleDemoTest.java
Created August 31, 2012 14:20 — forked from chbaranowski/GoogleDemoTest.java
Sikuli JUnit Demo Test
//Found at http://tux2323.blogspot.co.uk/2011/06/sikuli-gui-test-automation-with-java.html
import org.junit.Test;
import org.sikuli.script.App;
import org.sikuli.script.Screen;
public class GoogleDemoTest {
@Test
public void testGoogleSearch() throws Exception {
@sixman9
sixman9 / README.md
Created February 22, 2012 10:59 — forked from TooTallNate/README.md
'cflags' parameter is broken in gyp on OS X?

This is a barebones GYP file to compile 1 C source file. We are demonstrating that the cflags parameter in gyp files gets completely ignored :(

$ ../gyp/gyp -f make --depth=. hello.gyp
$ V=1 make
  cc   -fasm-blocks -mpascal-strings -Os -gdwarf-2  -MMD -MF out/Default/.deps/out/Default/obj.target/hello/hello.o.d.raw  -c -o out/Default/obj.target/hello/hello.o hello.c
  ./gyp-mac-tool flock out/Default/linker.lock g++ -Lout/Default   -o "out/Default/hello" out/Default/obj.target/hello/hello.o 
  LINK(target) out/Default/hello: Finished
@sixman9
sixman9 / Minimal Gradle+Geb build script
Created September 7, 2011 00:11 — forked from kellyrob99/Minimal Gradle+Geb build script
Gives a Gradle build with IDE and maven support, ready to go for Geb and Spock and the Firefox web driver.
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'project-report'
version = '1.0-SNAPSHOT'
group = ''
versions = [