Skip to content

Instantly share code, notes, and snippets.

View ryanswanstrom's full-sized avatar
🏠
South Dakota

Ryan Swanstrom ryanswanstrom

🏠
South Dakota
View GitHub Profile
@ryanswanstrom
ryanswanstrom / Login.java
Created December 13, 2010 21:19
This class shows some code for the callback of a Janrain (formerly Rpx Now) login using the Play Framework
package controllers;
import com.google.gson.JsonElement;
import play.Play;
import java.util.Properties;
import play.libs.WS;
import play.libs.WS.WSRequest;
import play.mvc.Controller;
/**
@ryanswanstrom
ryanswanstrom / Mashup.java
Created December 13, 2010 21:00
This code demonstrates how to make web service calls with the Play Framework.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controllers;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.ArrayList;
@ryanswanstrom
ryanswanstrom / OrientDBSpeed.java
Created December 3, 2010 21:37
This is a file for testing the speed of OrientDB
package orienttest;
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
import com.orientechnologies.orient.core.db.graph.ODatabaseGraphTx;
import com.orientechnologies.orient.core.db.graph.OGraphVertex;
import com.orientechnologies.orient.core.db.object.ODatabaseObjectTx;
import com.orientechnologies.orient.core.db.record.ODatabaseColumn;
import com.orientechnologies.orient.core.intent.OIntentMassiveInsert;
import com.orientechnologies.orient.core.record.impl.ODocument;