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
<bean class="com.solab.alarms.channels.CommandLineChannel"> | |
<property name="commandWithArgs"><list> | |
<value>/usr/local/bin/growlnotify</value> | |
<value>-m</value> | |
<value>${alarm}</value> | |
<value>Alarma del motor</value> | |
</list></property> | |
<property name="minResendInterval" value="5000" /> | |
</bean> |
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
apply plugin:'scala' | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
//This repo is for the Finagle jars | |
mavenRepo urls:'http://maven.twttr.com' | |
} | |
dependencies { |
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
object D extends App { | |
implicit def =====(x:Int)={ | |
print(x) | |
print("=====D") | |
D | |
} | |
def apply(f1: => Unit)(f2: => Unit)={ | |
f1 | |
f2 | |
println() |
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 Digito(String partes) { | |
shared String parte(Integer idx) { | |
if (exists p=partes[idx]) { | |
if (p==`_`) { | |
return " _ "; | |
} else if (p==` `) { | |
return " "; | |
} else { | |
return "| "; | |
} |
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
public class MagicalLand { | |
public static void main(String[] args) { | |
for (int i = 0; i < (Math.random() * 500) + 2; i++) { | |
if (Unicorn.pat()) { | |
System.out.println("UNICORN #1: PAT THIS UNICORN ONCE"); | |
} | |
} | |
for (int i = 0; i < (Math.random() * 500) + 2; i++) { | |
if (Unicorn.pat()) { |
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 Cell(index) { | |
doc "The index of the Cell inside its Matrix." | |
shared Integer index; | |
doc "The current state of the Cell." | |
shared variable Boolean state = false; | |
doc "The next state of the Cell." | |
variable Boolean ns = false; | |
shared Boolean nextState { return ns; } | |
assign nextState { |
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 Parent { | |
String name | |
} | |
class External extends Parent { | |
String outer | |
Internal inner(String p) { | |
new Internal(inner:p) | |
} | |
class Internal { | |
String inner |
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
#!/bin/bash | |
if [ "$1" == "7" ]; then | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home | |
elif [ "$1" == "8" ]; then | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home | |
else | |
echo Just pass 7 or 8 dude | |
fi |
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
<html> | |
<head> | |
<title>simple ceylon-js test</title> | |
<script type="text/javascript" src="../ceylon-web-ide-backend/src/main/webapp/scripts/require-jquery.js" data-main="simple.js"></script> | |
</head> | |
<body> | |
</body></html> |
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
<html> | |
<head> | |
<title>simple ceylon-jsjs test</title> | |
<script type="text/javascript" src="../ceylon-web-ide-backend/src/main/webapp/scripts/require.js" data-main="simple.js"></script> | |
</head> | |
<body> | |
</body></html> |
OlderNewer