I hereby claim:
- I am outbreak on github.
- I am outbreak (https://keybase.io/outbreak) on keybase.
- I have a public key ASBWjPWuq3cGqRo6ZtOGmaCzutjlvF2uakytSe5UC8peego
To claim this, I am signing this object:
| [ | |
| { | |
| "title": "161 FM", | |
| "url": "http://stream.161fm.ru:8000/256" | |
| }, | |
| { | |
| "title": "Deep (DFM)", | |
| "url": "https://dfm-dfmdeep.hostingradio.ru/dfmdeep96.aacp" | |
| }, | |
| { |
| import { | |
| createDomain | |
| } from 'effector' | |
| import useDomainLogger from './useDomainLogger.js' | |
| const DEBUG = true | |
| const app = createDomain('app') |
I hereby claim:
To claim this, I am signing this object:
| // Combinators | |
| const K = a => b => a | |
| const I = a => a | |
| // Operators | |
| const eq = a => b => a === b | |
| // Types | |
| const typeOf = a => typeof a | |
| const isArray = a => Array.isArray(a) |
| // Operators | |
| const eq = (a) => (b) => a === b | |
| // Types | |
| const typeOf = (a) => typeof a | |
| const isArray = (a) => Array.isArray(a) | |
| const isUndefined = (a) => eq('undefined')(typeOf(a)) | |
| // Lists | |
| const reverse = (xs) => xs.reverse() |
| // addTo :: HTML, HTML -> HTML | |
| function addTo(container, html) { | |
| $(container).append(html) | |
| return container | |
| } | |
| // addAllTo :: HTML, [HTML] -> HTML | |
| function addAllTo(container, htmls) { | |
| htmls.map(function(html){ addTo(container, html) }) | |
| return container |
| function Event() { | |
| this.observers = []; | |
| } | |
| Event.prototype.raise = function (data) { | |
| for (var i in this.observers) { | |
| var item = this.observers[i]; | |
| item.observer.call(item.context, data); | |
| } | |
| }; |
| var Dispatcher = (function() { | |
| var instance | |
| var subscribers | |
| var reset = function () { | |
| subscribers = {} | |
| } | |
| var unsubscribe = function (type, handler, context) { | |
| context = context || null |
| function uuid () { | |
| function getRandomSymbol (symbol) { | |
| var array; | |
| if (symbol === 'y') { | |
| array = ['8', '9', 'a', 'b']; | |
| return array[Math.floor(Math.random() * array.length)]; | |
| } | |
| array = new Uint8Array(1); |