Skip to content

Instantly share code, notes, and snippets.

View viniciusccarvalho's full-sized avatar

Vinicius Carvalho viniciusccarvalho

  • New York USA
View GitHub Profile
@viniciusccarvalho
viniciusccarvalho / build.gradle
Created April 30, 2020 01:14
TornadoFX sample
plugins {
id 'java'
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
id 'org.openjfx.javafxplugin' version '0.0.8'
}
group 'io.igx.emu'
version '1.0-SNAPSHOT'
@viniciusccarvalho
viniciusccarvalho / build.gradle
Created March 14, 2019 18:34
Gradle Quarkus
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'io.quarkus:quarkus-gradle-plugin:0.11.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"
}
}
@viniciusccarvalho
viniciusccarvalho / LoadTest.kt
Created March 14, 2019 12:50
Ktor client load test
class InvocationService(val client: HttpClient) {
val tasks = mutableListOf<InvocationTask>()
fun start(invocations: Int){
val invocation = InvocationTask(invocations, client)
tasks.add(invocation)
invocation.start()
}
}
@viniciusccarvalho
viniciusccarvalho / vuechart.html
Created July 3, 2018 20:55
Vue + Chartjs sample
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.springframework.org/schema/mvc"
xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="/webjars/momentjs/2.22.1/moment.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="/webjars/chartjs/2.7.2/Chart.min.js"></script>
var colors = ["#826BD7", "#48253C", "#4C616D", "#97D2DF", "#556D57", "#524945", "#3E4053", "#CC2496"];
var data = [];
var numBuckets = 8;
var buckets = [];
var destinations = [];
var margin = {
right: 50
};
/*
* Copyright 2017 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@viniciusccarvalho
viniciusccarvalho / AbstractBinder.java
Created September 25, 2017 16:00
New AbstractBinder
/*
* Copyright 2017 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
[
{
"name": "FoEqUsH-tweets-twitterstream",
"instances": [
{
"name": "FoEqUsH-tweets-twitterstream",
"instanceIndex": "0",
"metrics": [
{
"name": "integration.channel.output.errorRate.mean",
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>quotes</id>
<dependencySets>
<dependencySet>
<includes>
<include>org.springframework.boot:quotes</include>
</includes>
@viniciusccarvalho
viniciusccarvalho / pom.xml
Last active October 4, 2016 20:26
Quotes docker pom
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>1.4.0.RELEASE</version>
<relativePath></relativePath>
</parent>