I hereby claim:
- I am gfrison on github.
- I am gfrison (https://keybase.io/gfrison) on keybase.
- I have a public key whose fingerprint is 83D5 27E0 3F34 C133 F4B3 11D4 1145 0972 D3CC EDA9
To claim this, I am signing this object:
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.nio.charset.Charset; | |
import java.util.Random; | |
import io.netty.handler.logging.LogLevel; | |
import io.reactivex.netty.protocol.http.client.HttpClient; | |
public class ConcatUpload | |
{ |
@RunWith(SpringJUnit4ClassRunner.class) | |
@ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = {HistrixIT.Config.class}) | |
public class HistrixIT | |
{ | |
@Autowired | |
private RemoteService service; | |
private static Function<String, String> function = mock(Function.class); | |
I hereby claim:
To claim this, I am signing this object:
import com.thoughtworks.xstream.core.util.PrioritizedList | |
import groovy.transform.Field | |
import java.text.DecimalFormat | |
/** | |
* Dodgsons Duoblets | |
* | |
* User: gfrison | |
* http://programmingpraxis.com/2009/03/20/dodgsons-doublets/ |
var vertx = require("vertx.js") | |
var console = require('vertx/console'); | |
console.log('module ' + JSON.stringify(module)); | |
var dust; | |
var x = function(){ | |
var module = undefined; |
grep ‘text-2-search’ * | cut -f1 -d':' | xargs tar -zcvf pack.tar.gz |
//just to avoid 'string ...' with spaces | |
//trim a string http://stackoverflow.com/a/498995 | |
String.prototype.trim=function(){return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');}; | |
//improvement of this: http://blog.mastykarz.nl/measuring-the-length-of-a-string-in-pixels-using-javascript/ | |
var visualLength = function(str){ | |
var ruler = document.createElement('span'); | |
ruler.style.visibility = 'hidden'; | |
ruler.style['white-space'] = 'nowrap'; | |
document.body.appendChild(ruler); |
package com.gfrison | |
import groovy.json.* | |
import static org.apache.commons.lang3.StringUtils.* | |
/** | |
* @author Giancarlo Frison <[email protected]> | |
* | |
* rate the affinity between 2 different web sites | |
* |
#!/bin/bash | |
START=$(date +%s.%N) | |
for i in {1..100}; | |
do | |
curl http://localhosT:3000/rest -d '<request>'>/dev/null 2>&1 | |
done; | |
END=$(date +%s.%N) | |
DIFF=$(echo "$END - $START" | bc) |
import org.apache.camel.impl.DefaultCamelContext; | |
import org.apache.camel.language.groovy.GroovyRouteBuilder; | |
import org.apache.camel.* | |
@Grab(group='org.slf4j', module='slf4j-api', version='1.6.1') | |
@Grab(group='org.slf4j', module='slf4j-log4j12', version='1.6.1') | |
@Grab(group='org.apache.camel', module='camel-groovy', version='2.8.0') | |
@Grab(group='org.apache.camel', module='camel-core', version='2.8.0') | |
@Grab(group='org.apache.camel', module='camel-jetty', version='2.8.0') | |
class SampleRoute extends GroovyRouteBuilder { |