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
def username = args[0] | |
def password = args[1] | |
def host = args[2] | |
def database = args[3] | |
def dir = './' | |
def ant = new AntBuilder() | |
def p = ~/.*\.sql/ | |
new File( dir ).eachFileMatch(p) { f -> | |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation template to deploy jenkins/nginx.", | |
"Parameters" : { | |
"KeyName" : { | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances", | |
"Type" : "String", |
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.talesolutions.cep.appengine; | |
import java.util.List; | |
import javax.inject.Named; | |
import org.talesolutions.cep.CEP; | |
import org.talesolutions.cep.CEPService; | |
import org.talesolutions.cep.CEPServiceFactory; |
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
@Api(name = "buscacep", description = "Conjunto de serviços para consulta de CEP") | |
public class CepEndpoint { | |
private CEPService cepService = new MemcacheCepServiceDecorator(CEPServiceFactory.getCEPService()); | |
@ApiMethod(httpMethod = "GET", name = "cep.get") | |
public CEP getCep(@Named("numeroCep") String numeroCep) { | |
return cepService.obtemPorNumeroCEP(numeroCep); | |
} |
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
$scope.getCep = function() { | |
var req = gapi.client.buscacep.cep.get({numeroCep: $scope.numeroCep} ); | |
req.execute(function(response) { | |
var cep = response.result; | |
$scope.cep = cep; | |
$scope.$apply(); | |
}); | |
} | |
$scope.searchCep = 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
#!/usr/bin/env groovy | |
@Grapes( @Grab('org.jsoup:jsoup:1.6.1')) | |
import org.jsoup.* | |
import org.jsoup.nodes.* | |
// a wrapper closure around executing a string | |
// can take either a string or a list of strings (for arguments with spaces) | |
// prints all output, complains and halts on error |
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
<profile> | |
<id>m2e</id> | |
<activation> | |
<property> | |
<name>m2e.version</name> | |
</property> | |
</activation> | |
<build> | |
<plugins> | |
<plugin> |
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.inject.Inject; | |
import org.togglz.core.manager.FeatureManager; | |
import com.google.inject.Provider; | |
/** | |
* Utility class to provide static access to FeatureManager. | |
* @author fabio | |
*/ |
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 socket = io.connect(window.location.host); | |
var received; | |
socket.on('data', function (data) { | |
received = JSON.parse(data); | |
}); |
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.ciandt.d1.commons.cloud; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertNull; | |
import org.junit.Assert; | |
import org.junit.Before; | |
import org.junit.Test; | |
import com.google.appengine.api.NamespaceManager; |
OlderNewer