This file contains 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 app = new PIXI.Application({ transparent: true }); | |
const { Machine, interpret, send, sendParent, assign } = window.XState; | |
document.body.appendChild(app.view); | |
// Invoked child machine | |
const CharacterMachine = a => { | |
return Machine({ | |
id: "Kolohe", | |
initial: "active", |
This file contains 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
console.log("Linked From Head"); |
This file contains 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
console.log('Loaded by a url!'); |
This file contains 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 spyInstance = (on, replace, spy) => { | |
const _real = on[replace]; | |
on[replace] = function(...args) { | |
const ret = _real.apply(this, args); | |
const newRet = spy(args, ret, this); | |
if (newRet) return newRet; | |
return ret; | |
}; | |
}; |
This file contains 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
requestIdleCallback(function tick() { | |
requestIdleCallback(tick); | |
}); |
This file contains 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 React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { getPointRelativeToElement, getDistanceBetweenPoints } from 'utilities/geometry'; | |
const THRESHOLD = 10; | |
const pointFromTouch = (touch) => ({ x: touch.clientX, y: touch.clientY }); | |
class PanGesture extends React.Component { | |
constructor() { |
This file contains 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
set nocompatible | |
call plug#begin('~/.vim/plugged') | |
Plug 'chriskempson/base16-vim' | |
Plug 'tpope/vim-surround' | |
Plug 'scrooloose/nerdtree' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'pangloss/vim-javascript' | |
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --tern-completer' } | |
Plug 'SirVer/ultisnips' |
This file contains 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 React from 'react' | |
import { | |
BrowserRouter as Router, | |
Route, | |
Link | |
} from 'react-router-dom' | |
const BasicExample = () => ( | |
<Router> | |
<div> |
This file contains 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 React, { Component } from 'react'; | |
import {List, CellMeasurer} from 'react-virtualized'; | |
import moment from 'moment'; | |
const days = 3000; | |
const today = days / 2; | |
const daysToShow = 3; | |
const height = 180; | |
const rowRenderer = ({ |
This file contains 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
You will receive {numberOfTexts, plural, | |
=0 {no more texts.} | |
=1 {{duration, plural, | |
=0 {1 more text.} | |
=1 {1 text tomorrow.} | |
other {1 text within # days.} | |
}} | |
other {{duration, plural, | |
=0 {{numberOfTexts} more texts.} | |
=1 {{numberOfTexts} texts tomorrow.} |
NewerOlder