Skip to content

Instantly share code, notes, and snippets.

View donvito's full-sized avatar
🚀
solo dev building apps with AI. launched aidreamphoto.com

Melvin Vivas @DonvitoCodes donvito

🚀
solo dev building apps with AI. launched aidreamphoto.com
View GitHub Profile
@donvito
donvito / main.go
Created October 7, 2018 07:30
Go Modules sample client code
package main
import (
hellomod "github.com/donvito/hellomod"
hellomodV2 "github.com/donvito/hellomod/v2"
)
func main() {
hellomod.SayHello()
hellomodV2.SayHello("Melvin")
@donvito
donvito / main.go
Created October 6, 2018 15:45
Hash passwords using bcrypt library #golang
package main
import (
"fmt"
"log"
"golang.org/x/crypto/bcrypt"
)
func main() {
@donvito
donvito / index.html
Created May 27, 2018 15:56
Query GitHub API repos using Vue.js
<script src="https://unpkg.com/vue"></script>
<div id="githubRepos">
</div>
<script>
new Vue({
el: '#githubRepos',
data: {
repos : [],
@donvito
donvito / index.html
Created May 27, 2018 13:07
VueJS getting started
<script src="https://unpkg.com/vue"></script>
<div id="app">
<p>{{ message }}</p>
<span v-bind:title="message2">
Hover your mouse over me for a few seconds
to see my dynamically bound title!
</span>
</div>
@donvito
donvito / main.go
Last active May 21, 2018 14:33
Sample application used for debugging with delve
package main
/*Person is a struct type*/
type Person struct {
Name string
Age int
}
func main() {
@donvito
donvito / docker-compose-stack-elasticsearch-fluentd-nginx-kibana.yml
Last active February 15, 2025 10:49
Docker stack compose files I've created. Please feel free to use! Enjoy!
version: "3.3"
services:
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:5.6.1'
ports:
- "9200:9200"
- "9300:9300"
volumes:
- elasticsearchvol:/usr/share/elasticsearch/data