Skip to content

Instantly share code, notes, and snippets.

@rchavarria
rchavarria / about.md
Created Sep 2, 2011 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
View about.md
View LoadTibrvjApp.java
import com.tibco.tibrv.Tibrv;
import com.tibco.tibrv.TibrvException;
public class TibrvLoaderTest {
public static void main(String[] args) {
new TibrvLoaderTest().start();
}
private void start() {
@rchavarria
rchavarria / pom-fragment
Created Dec 3, 2012
fragmento de pom.xml para configurar jpa, hibernate y derby
View pom-fragment
<!-- ... -->
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.6.2.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
@rchavarria
rchavarria / jpa-config
Created Dec 3, 2012
configuracion jpa
View jpa-config
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="test-jpa" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>es.rct.jpa.model.Person</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="hibernate.connection.url"
@rchavarria
rchavarria / derby-delete-statement.java
Created Dec 10, 2012
Borrar un registro, todos los registros o una tabla en una base de datos derby usando Java
View derby-delete-statement.java
String driver = "org.apache.derby.jdbc.EmbeddedDriver";
String dbName = "/DerbyDB/ExampleDB";
String connectionURL = "jdbc:derby:" + dbName;
Connection conn = null;
try{
Class.forName(driver);
} catch(java.lang.ClassNotFoundException e) {
e.printStackTrace();
}
@rchavarria
rchavarria / decissions-made.markdown
Created May 24, 2013
Languages, tools and services to use in our project
View decissions-made.markdown

2013, May 23rd meeting

Decissions we made

  • Operating systems: windows and linux
  • IDE: Take a look to IntelliJ. Use eclipse otherwise.
  • Programming language for the server: scala & play framework
  • Programming language for the web cliente: html5, css3, js
  • Mobile client: android
  • Source code repositories: git & github
View _lifestyle cards.markdown

Este gist incluye un fichero por cada charla, artículo, vídeo que me ha parecido interesante y quiero recordar una serie de notas que haya tomado de ese recurson interesante.

@rchavarria
rchavarria / json2csv.js
Last active Jul 24, 2017
Transform your track's `config.json` into a CSV to be imported into a spreadsheet
View json2csv.js
/*
You'll need NodeJS installed to run this script.
Place this script in your track's root folder:
track/
+ config.json
+ json2csv.js <-----
+ exercises/
+ hello_world