Skip to content

Instantly share code, notes, and snippets.

View BigOokie's full-sized avatar
☁️
#Skycoin #Skywire #Skyfleet #CX #GoLang #SkyfleetAcademy #LearnShareRepeat

BigOokie BigOokie

☁️
#Skycoin #Skywire #Skyfleet #CX #GoLang #SkyfleetAcademy #LearnShareRepeat
  • Australia
View GitHub Profile
@bbengfort
bbengfort / ybvid.sh
Created August 29, 2019 13:49
Make the Yellowbrick gource video
gource -1280x720 --camera-mode track --seconds-per-day 4 --auto-skip-seconds 1 \
--file-idle-time 0 --key --title "Yellowbrick" -o - | ffmpeg -y -r 60 \
-f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast \
-pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4
@caongocthai
caongocthai / Naivebayes.go
Last active April 23, 2022 02:43
Sentiment Analysis: Naive Bayes Classifier from scratch in Golang
package main
// The string values of the 2 classes
// They can be "positive" >< "negative" as in this example
// They can also be "ham" >< "spam", i.e.
const (
positive = "positive"
negative = "negative"
)
package main
import (
"encoding/hex"
"fmt"
"github.com/skycoin/skycoin/src/cipher"
"github.com/skycoin/skycoin/src/cipher/base58"
)

Keybase proof

I hereby claim:

  • I am gz-c on github.
  • I am gzc (https://keybase.io/gzc) on keybase.
  • I have a public key whose fingerprint is 10A7 22B7 6F2F FE7B D238 0222 5801 631B D27C 7874

To claim this, I am signing this object:

@gz-c
gz-c / how-to-pgp-release.md
Created March 19, 2018 16:24 — forked from cyphar/how-to-pgp-release.md
Document describing how to create PGP-signed releases of projects.

Creating Releases with PGP Signatures

Aleksa Sarai

Creating a release of a free software project with PGP signatures is quite simple, especially if you have everything set up already. This guide uses GnuPG, but it should be roughly applicable to OpenPGP or other implementations. For completeness, I've included a (very) short introduction to how to create a PGP key and how PGP works.

Introduction

@mamigot
mamigot / docker-compose.yml
Created October 22, 2017 16:20
Ghost + Nginx + Let's Encrypt + Docker Compose
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
// Package events provides an event dispatcher for registering callbacks
// with specific events and handling them when they occur.
package events
import (
"reflect"
"sync"
)
// Sample Event Types
@joncardasis
joncardasis / Storing-Images-On-Github.md
Last active May 25, 2024 08:03
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

@danieleggert
danieleggert / GPG and git on macOS.md
Last active May 26, 2024 06:43
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@p4tin
p4tin / text_adv-part-1.go
Last active February 29, 2024 18:59
Writing a Text Adventure Game in Go - Part 1
package main
import (
"fmt"
"math/rand"
"time"
)
type Game struct {
Welcome string