This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta | |
name="viewport" | |
content="width=device-width, initial-scale=1.0, user-scalable=yes" | |
/> | |
<style> | |
canvas { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const terminal = {} | |
const input = {} | |
const terminalText = {} | |
const showmode = {} | |
const text = {} | |
const col = {} | |
const TEXT_CURSOR = textContent => `<span id="cursor">${textContent}</span>`; | |
let cursor; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const fs = require("fs"); | |
const cluster = require("cluster"); | |
/* | |
* GET IT ALL RUNNING | |
*/ | |
if (cluster.isMaster) { | |
cluster.setupMaster({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const achievementsStates = { | |
id: 'achievements-select', | |
initial: 'ACHIEVEMENTS_IDLE', | |
states: { | |
ACHIEVEMENTS_IDLE: {}, | |
ACHIEVEMENTS_PENDING: { | |
meta: {match: 'ACHIEVEMENTS_PENDING'}, | |
invoke: { | |
src: 'fetchAchievements', | |
onDone: 'ACHIEVEMENTS_SUCCESS', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const achievementsStates = { | |
initial: 'idle', | |
states: { | |
idle: {}, | |
ACHIEVEMENTS_PENDING: { | |
invoke: { | |
src: 'fetchAchievements', | |
onDone: 'ACHIEVEMENTS_SUCCESS', | |
onError: 'ACHIEVEMENTS_ERROR' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react" | |
import { voronoi } from "@vx/voronoi" | |
class Voronoi extends React.Component { | |
tile = null | |
componentDidMount() { | |
this.renderPoints() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const AddPopup = ({ open, onChange, handleSubmit, text, closeModal }) => ( | |
<Popup | |
open={open} | |
onSubmit={e => { | |
e.preventDefault() | |
handleSubmit().then(() => closeModal()) | |
}} | |
> | |
<StyledInput autoFocus value={text} onChange={onChange} /> | |
<Button style={{ float: 'right' }} type="submit"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const LikesList = ({ | |
user: { likes, user }, | |
updateFunctions: { addLike, deleteLike }, | |
isOpen, | |
text, | |
handleChange, | |
toggleModal | |
}) => ( | |
<Fragment> | |
<ListHeader> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Likes = compose( | |
modalHandler, | |
textHandler, | |
getContext({ updateFunctions: PropTypes.object, user: PropTypes.object }) | |
)(LikesList) |
NewerOlder