Skip to content

Instantly share code, notes, and snippets.

View skriptble's full-sized avatar

Kris Brandow skriptble

View GitHub Profile
@skriptble
skriptble / main.go
Created August 30, 2019 15:30
$push example
package main
import (
"context"
"fmt"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
)

Keybase proof

I hereby claim:

  • I am skriptble on github.
  • I am skriptble (https://keybase.io/skriptble) on keybase.
  • I have a public key whose fingerprint is 00C1 AFDE 7B75 8260 758D 4C2F 0911 1000 B543 028A

To claim this, I am signing this object:

@skriptble
skriptble / contacts.go
Created March 22, 2015 17:59
Full example of building the alps-contact example alps profile in Go.
package main
import (
"bytes"
"encoding/json"
"net/url"
"os"
"github.com/skriptble/hyper/profiles/alps"
"github.com/skriptble/hyper/profiles/alps/constructor"
@skriptble
skriptble / FizzBuzzTransducers.go
Last active August 29, 2015 14:10
FizzBuzz with Transducers!
package main
import (
"fmt"
"github.com/sdboyer/transducers-go"
)
func FizzyBuzzyNumbers() transducers.ValueStream {
fizzyBuzzyCurr := 0
@skriptble
skriptble / gist:27f8419f1ac4d66143ea
Last active August 29, 2015 14:10
FizzyBuzzyNumbers!
func FizzyBuzzyNumbers() transducers.ValueStream {
fizzyBuzzyCurr := 0
return func() (value interface{}, done bool) {
if fizzyBuzzyCurr < 100 {
fizzyBuzzyCurr++
return fizzyBuzzyCurr, false
}
return nil, true
}