Skip to content

Instantly share code, notes, and snippets.

View ivancorrales's full-sized avatar
🐾
Doing what I love to do!

Iván Corrales Solera ivancorrales

🐾
Doing what I love to do!
View GitHub Profile
dependencies {
compile 'com.graphql-java-kickstart:graphql-spring-boot-starter:5.2'
compile 'com.graphql-java-kickstart:graphiql-spring-boot-starter:5.2'
compile 'com.graphql-java-kickstart:voyager-spring-boot-starter:5.2'
testCompile 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:5.2'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactive:1.0.0'
compile "io.reactivex.rxjava2:rxjava:2.1.5"
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
runtimeOnly 'org.postgresql:postgresql'
@ivancorrales
ivancorrales / Dockerfile
Created July 27, 2019 05:35
a multi-stage build
FROM golang:1.12.5 AS ci-lint
ENV CGO_ENABLED=0 GOFLAGS="-mod=vendor"
WORKDIR /app
ADD . /app
RUN go run github.com/golangci/golangci-lint/cmd/golangci-lint run --verbose
FROM golang:1.12.5 AS ci-test_unit
ENV CGO_ENABLED=0 GOFLAGS="-mod=vendor"
WORKDIR /app
ADD . /app
git clone https://github.com/wesovilabs/CD_Simulator.git
cd CD_Simulator
## Run containers in detach mode
make run
## It display logs
make logs
git clone https://github.com/wesovilabs/CD_nodejs.git
cd CD_nodejs
git remote set-url origin http://localhost:3000/developer/CD_nodejs.git
git add .
git commit -m "feat: initial commit"
git push origin master
@ivancorrales
ivancorrales / goatimes.csv
Created November 23, 2019 12:52
Table used for time measurement with Goa article
function delay
very-slow 4s
slow 4s
medium 3s
fast 2s
veryf-fast 1s
package main
import (
"errors"
"fmt"
"time"
)
var times = map[string]float32{
"very-slow": 4,
package advice
import (
"bytes"
"crypto/md5"
"encoding/gob"
"encoding/hex"
"fmt"
"github.com/patrickmn/go-cache"
"github.com/wesovilabs/beyond/api"
# feature-math-operations.hcl
description = <<EOF
This feature is used to demonstrate that both add and subs
operations work as expected.
EOF
input {
arg x {
default = 10
}
arg y {
# variables-math-operations.hcl
x = 46
y = 54
sumResult = 100
subResult = 8
# scenario-sum.hcl
scenario "operation add" {
when "values are added" {
set result {
value = x + y
}
}
then "the result of the operation is the expected" {
assert {
assertion = result==sumResult