Skip to content

Instantly share code, notes, and snippets.

View Hypnosphi's full-sized avatar
🐙

Filipp Riabchun Hypnosphi

🐙
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<style>
table {
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
}
<!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 = [],
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
@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]) =>
@Hypnosphi
Hypnosphi / esnextbin.md
Last active November 13, 2016 16:20
esnextbin sketch
@Hypnosphi
Hypnosphi / esnextbin.md
Last active December 31, 2016 14:56
esnextbin sketch
@Hypnosphi
Hypnosphi / esnextbin.md
Last active April 23, 2017 02:01
esnextbin sketch
// @flow
import FlipMove from "./FlipMove";
declare class Class0 extends Element<> {
accessKey: string,
accessKeyLabel: string,
className: string,
contentEditable: string,
contextMenu: ?HTMLMenuElement,
dataset: { [key: string]: string },
@Hypnosphi
Hypnosphi / esnextbin.md
Last active May 25, 2017 18:38
esnextbin sketch
@Hypnosphi
Hypnosphi / esnextbin.md
Last active May 25, 2017 18:42
esnextbin sketch