I hereby claim:
- I am derrandz on github.
- I am derrandz (https://keybase.io/derrandz) on keybase.
- I have a public key ASCYR_2eQm232WZF83V--UAvQLiVP7bkAkLzrk2xu04bgQo
To claim this, I am signing this object:
// .==. .==. | |
// //`^\\ //^`\\ | |
// // ^ ^\(\__/)/^ ^^\\ | |
// //^ ^^ ^/6 6\ ^^ ^ \\ | |
// //^ ^^ ^/( .. )\^ ^ ^ \\ | |
// // ^^ ^/\| v""v |/\^ ^ ^\\ | |
// // ^^/\/ / `~~` \ \/\^ ^\\ | |
// ----------------------------- | |
/// HERE BE DRAGONS |
""" | |
To understand what 'divergent' classes mean, please refer to the link: https://coderwall.com/p/hnaroq/divergent-classes-in-python | |
Nothing special, just I like to put fancy names on things from time to time ;) | |
Ofcourse, we can acheive the same thing using inheritence, but some of us design in a way that inheritence would not fit in, | |
This is the solution. |
var Event = function() { | |
var self = this; | |
self.queue = {}; | |
self.fired = []; | |
return { | |
fire: function(event) { |
package main | |
import "fmt" | |
type reducer func(int, string, int, []string) int | |
func ReduceStringArr(arr []string, fn reducer, acc int) int { | |
for i, str := range arr { | |
acc = fn(acc, str, i, arr) | |
} |
var Path = require('path'); | |
var express = require('express'); | |
var router = express.Router(); | |
function render(_fn, path, param, req, res, next) { | |
if (req.params[param]) { | |
res[_fn].call(res, Path.join(...[global.appRoot].concat(path(req.params[param]).split("/")))); | |
}else { | |
next(); | |
} |
// a hack | |
package main | |
import "fmt" | |
type auto interface{} | |
type reduceClosure func(auto, auto, int, auto) auto | |
type Reducable interface{ |
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:muport:QmUC5exZn4Q1DemvKeDFumWPWq5Pd3PKSLgTXQarGCcur2 ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
package main | |
type ( | |
Contextual interface { | |
GetContext() interface{} | |
SetContext() interface{} | |
} | |
Eventful interface { | |
Consume(reporting chan interface{}, msg interface{}) |
I hereby claim:
To claim this, I am signing this object: