Skip to content

Instantly share code, notes, and snippets.

View dlresende's full-sized avatar

Diego Lemos dlresende

View GitHub Profile
@dlresende
dlresende / main.go
Created December 18, 2020 11:52
goroutine example with logging
package main
import (
"fmt"
"io"
"os"
"os/signal"
"sync"
)

Ruby

$ bundle gem $my_app -t rspec -b

Installing the local gem:

$ gem build $my_app.gemspec
$ gem install $my_app-<version>.gem
$ $my_app
@dlresende
dlresende / gist:60b4c0240ad020a323ad
Last active March 20, 2021 19:51
FooBarQix Kata

FooBarQix Kata

Write a program that prints numbers from 1 to 100, one number per line. For each printed number, use the following rules:

  1. if the number is divisible by 3 or contains 3, replace 3 by "Foo";
  2. if the number is divisible by 5 or contains 5, replace 5 by "Bar";
  3. if the number is devisible by 7 or contains 7, replace 7 by "Qix".

Example: 1

@dlresende
dlresende / manifest.yml
Created August 27, 2021 19:55
my-http-server BOSH manifest for CF Networking Onboarding
name: my-http-server
releases:
- name: "bpm"
version: "latest"
- name: "routing"
version: "latest"
- name: "nginx"