This file contains 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.jugvale.transparenciaexplorerfx; | |
import com.sensedia.transparencia.client.core.TransparenciaClient; | |
import com.sensedia.transparencia.client.ex.RestException; | |
import com.sensedia.transparencia.client.resources.Candidato; | |
import java.net.URL; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.ResourceBundle; |
This file contains 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
import javax.ws.rs.Path; | |
import javax.ws.rs.POST; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.FormParam; | |
import javax.ws.rs.HeaderParam; | |
/** | |
* | |
* Just a simple service to receive a name and returns it with a greeting. | |
* | |
* |
This file contains 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
var liveoak; | |
function deletePost(id) { | |
liveoak.remove( '/blog/storage/post', | |
{id: 'ObjectId(%22' + id + '%22)' }, | |
{ success: function(data) { | |
console.log( "Post Removed" ); | |
}, | |
error: function() { |
This file contains 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
<servlet> | |
<servlet-name>RESTEasy JSAPI</servlet-name> | |
<servlet-class>org.jboss.resteasy.jsapi.JSAPIServlet</servlet-class> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>RESTEasy JSAPI</servlet-name> | |
<url-pattern>/bpms-js</url-pattern> | |
</servlet-mapping> |
This file contains 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
// namespace | |
var REST = { | |
apiURL : null, | |
debug: false, | |
loglevel : 0, | |
antiBrowserCache : false, | |
cacheHeaders : [] | |
}; | |
// helper function |
This file contains 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> | |
<script src="./bpms-js" type="text/javascript"> | |
</script> | |
<script type="text/javascript"> | |
function loadTasks() { | |
var tasks_resp = TaskResource.query({ownerId: "jesuino", $accepts: "application/json"}); | |
var tasks = tasks_resp.list; |
This file contains 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 Particle { | |
PVector location; | |
PVector velocity; | |
float life; | |
float lifeRate; | |
color c; | |
Particle(){ | |
location = new PVector(mouseX, mouseY, height/2); | |
velocity = new PVector(random(-2, 2), random(1, 3)); |
This file contains 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
import javafx.application.Application; | |
import javafx.stage.Stage; | |
import javafx.scene.web.WebView; | |
import javafx.scene.Scene; | |
/** | |
* | |
* @author william | |
*/ | |
public class SimplesWEBView extends Application { |
This file contains 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.jugvale.javafx; | |
import javafx.scene.canvas.GraphicsContext; | |
/** | |
* | |
* @author william | |
*/ | |
public abstract class Game { |