View Dispatcher.js
const dispatcher = {
subscribers: [],
register(subscriber) {
this.subscribers.push(subscriber)
},
dispatch(action) {
this.subscribers.forEach(s => s(action))
}
}
View gist:9d6adbeaeb8f924f9a07b86f7269929e
### Keybase proof
I hereby claim:
* I am emadb on github.
* I am emadb (https://keybase.io/emadb) on keybase.
* I have a public key whose fingerprint is 8F39 3A1D 85DC 83C7 B8C8 BDDE B295 AE38 057C 4B76
To claim this, I am signing this object:
View eslint.config.js
{"rules": {
// https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb
/* best practices */
"accessor-pairs": 0,
// enforces return statements in callbacks of array's methods
// http://eslint.org/docs/rules/array-callback-return
"array-callback-return": 2,
// treat var statements as if they were block scoped
"block-scoped-var": 2,
// specify the maximum cyclomatic complexity allowed in a program
View SublimeText_shortcuts.md

##Text Editing

  • Insert line before - Cmd + Shift + Return
  • Insert line after - Cmd + Return
  • Delete the word backward - Option + Delete
  • Delete the word forward - fn + Option + Delete
  • Delete to beginning of the line - Cmd + Delete
  • Delete to end of the line - Ctrl + K
  • Delete word back - Option + Delete
  • Delete word forward - fn + Option + Delete
  • Soft undo - Cmd + U
View gist:8ef2832f83e6bd62cfa1
Verifying that +emanueledelbono is my blockchain ID. https://onename.com/emanueledelbono
View Sample.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
View async kata
Consider to have a series of calculators functions that need to run in series.
These calculators are asynchronous and any of those can return a value (a number >=0) or an error (-1).
Calculators must be evaluated in order and you have to write a function that returns the value of the first calculator
that doesn't fail. For first I mean the first in the chain of calculators.
Test case
function calculator1(resultCallback){
setTimeout(function(){ resultCallback(-1) }, 1000);
}
View Comp.ex
defmodule Comp do
def check([h|t], b) do
check(t, List.delete(b, h*h))
end
def check(_,[]), do: true
def check([], b), do: false
end
View Seti_modified.sublime-theme
[
//========================================================
// TABS (REGULAR)
//--------------------------------------------------------
// Tab set
{
"class": "tabset_control",
"layer0.texture": "Seti_UI/Main/tabset-background.png",
"layer0.inner_margin": [1, 7],
"layer0.opacity": 1,