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
test.A { | |
testA() { | |
"I got %d nose and %d ears." .% (1, 2).println() | |
} | |
%( s: String, o : Object*) : String { | |
String.format( s, o ) | |
} | |
} |
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
/* | |
* Copyright (c) 2011, Oscar Reyes. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without modification, | |
* are permitted provided that the following conditions are met: | |
* | |
* - Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the folLowing disclaimer. | |
* - Redistributions in binary form must reproduce the above copyright notice, |
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
[array do: ^(id obj) { | |
NSLog(@"Obj is %@", obj); | |
}]; |
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 _<T> { | |
public T _; | |
public _(T v){ | |
_ = v; | |
} | |
} | |
interface Block0<T> { | |
public void run(); | |
} | |
/* |
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
// Reduced timing to play faster songs.. add more spaces as needd | |
import java.awt.Robot; | |
class DoodlePlayer { | |
public static void main( String ... args ) throws Exception { | |
Robot robot = new Robot(); | |
robot.delay( 2000 ); | |
for( char c : args[0].toCharArray() ) { | |
if( c != ' ' ) { | |
robot.keyPress(c); | |
robot.keyRelease(c); |
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
//;Ryz code | |
//;http://en.wikipedia.org/wiki/List_comprehension | |
1.to(100) | |
.select((x:Int){ x.*x .> 3}) | |
.collect((x:Int){2.*x}) |
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
/** | |
* Aplicacion que simula ser un visor de imagenes... | |
* Creado por: Jose Manuel Hernandez Farias @author KaltWulx | |
* Version: 0.0.0.0 :D | |
* @warning: Hecho por un novice Lvl 1/1... D: | |
*/ | |
import java.awt.BorderLayout; | |
import java.awt.FlowLayout; | |
import java.awt.event.ActionEvent; |
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
//Clase de prueba: | |
package test; | |
import demo.lombok.Persona; | |
public class UsePersona { | |
public static void main( String ... args ) { | |
System.out.println( new Persona("Oscar","Reyes", 0x20 ) ); | |
System.out.println( new Persona("Oscar","Reyes",0x20).equals( new Persona("Oscar","Reyes",0x20))); |
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
//;Debo de llegar a esto: | |
import( lombok.Data ) | |
@Data | |
demo.lombok.Persona { | |
name : String | |
lastName : String | |
age : Integer | |
} |
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
C:\Users\oreyes\code\java\demo>dir | |
El volumen de la unidad C es | |
El número de serie del volumen es: | |
Directorio de C:\Users\oreyes\code\java\demo | |
04/07/2011 03:16 p.m. <DIR> . | |
04/07/2011 03:16 p.m. <DIR> .. | |
0 archivos 0 bytes |