Skip to content

Instantly share code, notes, and snippets.

View Hypnosphi's full-sized avatar
🐙

Filipp Riabchun Hypnosphi

🐙
View GitHub Profile
@Hypnosphi
Hypnosphi / esnextbin.md
Last active November 13, 2016 16:20
esnextbin sketch
@Hypnosphi
Hypnosphi / rx react
Last active November 27, 2017 18:55
// Rx
function createStore(actionsToReducers, initialState = {}) {
let dispatch;
const action$ = $.create(observer => {
dispatch = action => observer.onNext(action)
});
const reducer$ = actionsToReducers(action$);
const state$ = reducer$
.scan((state, [scope, reducer]) =>
const {div, h, p, button, ul, li, makeDOMDriver} = CycleDOM;
const {Observable} = Rx;
const isolate = CycleIsolate;
function OriginalInput(sources) {
const input$ = sources.DOM
.events('input')
.map(ev => ev.target.value);
const vtree$ = sources.Assign
<!DOCTYPE html>
<head id="Head1">
<meta charset="utf-8">
<title>Achivements</title>
<script src="//vk.com/js/api/xd_connection.js?2" type="text/javascript"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
var points = {},
polls = [],
<!DOCTYPE html>
<html lang="en">
<head>
<style>
table {
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
}