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
// blockerbal.js | |
/* | |
This code is a bad example! It will | |
block the server. It is for demonstration | |
only. | |
Arguments: port number | |
*/ | |
var restify = require('restify'); |
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
// balanceador de carga | |
var http = require('http'); | |
// npm install http-proxy | |
var http_proxy = require('http-proxy'); | |
var proxServer = 0; | |
var servidores = [ | |
{'url':'http://localhost:8085'}, | |
{'url':'http://localhost:8090'}, |
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
// blocker.js | |
/* | |
This code is a bad example! It will | |
block the server. It is for demonstration | |
only. | |
*/ | |
var restify = require('restify'); | |
var fs = require('fs'); |
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 com.obomprogramador.tutoriais.testes.emprestimos; | |
import static org.fest.assertions.Assertions.assertThat; | |
import javax.swing.JFormattedTextField; | |
import javax.swing.JPanel; | |
import javax.swing.JRadioButton; | |
import javax.swing.border.TitledBorder; | |
import org.fest.swing.core.GenericTypeMatcher; |
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> | |
<title>*** Ajax básico ***</title> | |
<script> | |
function iniciaRequest(url) { | |
// Teste do Browser | |
if(window.XMLHttpRequest) { | |
// Não é MS Internet Explorer |
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
/** | |
* TokenController | |
* | |
* @module :: Controller | |
* @description :: A set of functions called `actions`. | |
* | |
* Actions contain code telling Sails how to respond to a certain type of request. | |
* (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL) | |
* | |
* You can configure the blueprint URLs which trigger these actions (`config/controllers.js`) |
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
// (c) http://www.obomprogramador.com | |
// REST / JSON WS implementation with Node.js calling Java | |
var restify = require('restify') | |
var server = restify.createServer() | |
var fs = require('fs') | |
var java = require('java') | |
java.classpath.push("lib/joda-time-2.3.jar") | |
java.classpath.push("lib/mongo-java-driver-2.11.4.jar") |
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
public class One { | |
int x; | |
int y; | |
void a() { | |
b(); | |
} | |
int b() { | |
return this.x; |
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
public class One { | |
int x; | |
int y; | |
void a() { | |
b(); | |
} | |
int b() { | |
return this.x; |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.obomprogramador.discoarq</groupId> | |
<artifactId>microblog</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>microblog</name> |