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
/* | |
Esta clase se tomo del libro "Ejercicios de programación en Java: Condicionales, bucles, tablas y funciones" | |
Autor de la clase: Alfonso Jiménez | |
*/ | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
public class Entrada{ |
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
<html> | |
<head><title>::Línea de código [Programación orientada a objetos con javascript]::</title> | |
<!-- | |
Autor: Ariel Carraro | |
--> | |
</head> |
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 E Y L O N | |
************************** | |
1. Crear directorio | |
samples>mkdir directorio\source | |
2. Crear programa.ceylon | |
samples>more > directorio>source\miProg.ceylon |
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
package org.pruebasgwt.modelo; | |
import java.util.List; | |
import org.hibernate.HibernateException; | |
import org.hibernate.Session; | |
import org.hibernate.Transaction; | |
import org.pruebasgwt.hibernate.Empleado; | |
import org.pruebasgwt.hibernate.HibernateUtil; | |
/** | |
* |
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
package org.utilidad.hibernate; | |
import org.hibernate.HibernateException; | |
import org.hibernate.Session; | |
import org.hibernate.cfg.Configuration; | |
/** | |
* | |
* @author fernando | |
*/ | |
public class SessionFactory { | |
private static String CONFIG_FILE_LOCATION = "hibernate1.cfg.xml"; |
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
package org.servlet; | |
import java.io.IOException; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.File; | |
import java.util.Iterator; | |
import java.util.List; |
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
package org.pruebasgwt.client; | |
import com.google.gwt.core.client.EntryPoint; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.user.client.rpc.AsyncCallback; | |
import com.google.gwt.user.client.ui.Grid; | |
//import com.google.gwt.user.client.ui.Frame; | |
//import com.google.gwt.user.client.ui.Button; | |
//import com.google.gwt.user.client.ui.Label; | |
import com.google.gwt.user.client.ui.RootPanel; |
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
/** | |
* @file UsoGrapes.groovy | |
* @version 0.0.1 | |
* @author Fer Carraro | |
* @date 03-enero-2013 | |
* @url http://codemonkeyjunior.blogspot.mx/ | |
* @description Crear un documento PDF con la librería itext (itextpdf) usando @Grapes y @Grab de Groovy | |
*/ | |
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
object DynamicElvis { | |
class DynamicImpl( x: AnyRef ) extends Dynamic { | |
def _select_(name: String): DynamicElvis = { | |
val mName = name.substring(0, name.length - 1 ) | |
val mVal = x.getClass.getMethod(mName).invoke( x ) | |
new DynamicElvis( if( mVal != null ) Some( mVal ) else None ) | |
} | |
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
//http://codemonkeyjunior.blogspot.mx/ | |
//10 | |
/* | |
public class Groov{ | |
static main(args) { | |
println "valor: "+UserStatus.ACTIVE.getStatusCode(); | |
} | |
} |