Skip to content

Instantly share code, notes, and snippets.

@anwarmuhamat
anwarmuhamat / kafka_consumer.go
Created December 17, 2020 04:30 — forked from nilsmagnus/kafka_consumer.go
Example of go consuming from kafka, using the shopify/sarama library
package main
import (
"fmt"
"github.com/Shopify/sarama"
"os"
"os/signal"
"strings"
)
@anwarmuhamat
anwarmuhamat / GunDBpermissionExample.js
Created October 4, 2020 02:11 — forked from raiscui/GunDBpermissionExample.js
GunDB group permissions example. Restrict reads and/or writes.
//CLIENT
Gun.on('opt', function (ctx) {
if (ctx.once) {
return
}
this.to.next(ctx)
ctx.on('auth', function(msg){
let to = this.to
clientAuth(ctx)
function clientAuth(ctx){
<?php
/*
* (c) Mark Badolato <mbadolato@gmail.com>
*
* This content is released under the {@link http://www.opensource.org/licenses/MIT MIT License.}
*/
namespace Bado\ScoreCalculator;