Skip to content

Instantly share code, notes, and snippets.

package com.ideas.api.server.services;
import com.ideas.dao.LocationDAO;
import org.apache.commons.logging.Log;
import org.apache.cxf.jaxrs.ext.MessageContext;
import redis.clients.jedis.Jedis;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
@scottbyrns
scottbyrns / LoginDataSource.java
Created July 14, 2012 09:32
Kinvey Android Bug
package com.kinvey.starter.data.source;
import android.app.Activity;
import android.content.SharedPreferences;
import com.kinvey.KinveyUser;
import com.kinvey.starter.data.DataSources;
import com.kinvey.starter.entities.UserAuthentication;
import com.kinvey.util.KinveyCallback;
/**
@scottbyrns
scottbyrns / Jenkins Controler
Created July 24, 2013 17:41
Java Redist Aspect Messenger + Jenkins & Local Automation
public class JenkinsController
{
public static String METRIC = "m", STANDARD = "s";
@RegisterAsCallback(
group = "jenkins",
channel = "What is the high today?"
)
public void checkWeather (Message message) {
@scottbyrns
scottbyrns / gist:6072753
Created July 24, 2013 17:43
Server Status with Java Redis Aspect Messenger
public class ServerController extends LiveController
{
public ServerController(String group)
{
super(group);
}
@RegisterAsCallback(
group = "server-controller",
@GET
@Path("/meter-distance-between-locations-with-ids:{origin}:{destination}")
@EndpointDescription(
name = "Get Distance Between Locations",
description = "Get the distance between two saved locations.",
signature = "/meter-distance-between-locations-with-ids:{origin}:{destination}",
availability = ResourceAvailability.BETA,
version = 1.0,
returnEntity = "Calculation")
public APIResponse meterDistanceBetweenToLocations(@PathParam("origin") Long originId, @PathParam("destination") Long destinationId);
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.2 (140)
#
# Alignment
# ---------
## Alignment
Good Robots
Good Robots is founded on the belief that the worlds population can be feed through the automated stewarding the creation of new ecosystems. Our open platform provides the worlds communities with the information and software to build the tools that will automate these endeavor. We provide robotics kits, hosted software services, and free information to these communities.
var planOptions = [
{
service:"mail",
plans: [
{
name: "exchange",
plandId: ""
}
]
},
// First
this.frustum = new THREE.Frustum();
this.cameraViewProjectionMatrix = new THREE.Matrix4();
// Second
MessageController.sendMessage("app-controller", "add-render-stage", {name: "compute-frustum", stage:function (delta) {
MessageController.sendMessage("app-controller", "get-camera", function (camera, frustum, viewProjectionMatrix) {
var texture = THREE.ImageUtils.loadTexture(this.data.sun.representation.texture);
var shaderMaterial = new THREE.ShaderMaterial( {
uniforms: {
surface: {
type: "t",
value: texture
},
time: {
type: "f",