<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Setup</title>
</head>
<body>
<div id="app"></div>
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 function* bounce(arr) { | |
let x = 0; | |
let y = 0; | |
let mx = 1; | |
let my = 1; | |
const w = arr.length - 1; | |
const h = arr[0].length - 1; | |
while (true) { | |
if (mx + x > w || mx + x < 0) { | |
mx = mx * -1; |
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
{ | |
"rows" : "100", | |
"id" : "{index}", | |
"active" : "{bool}", | |
"fname" : "{firstName}", | |
"lname" : "{lastName}", | |
"category" : "[13,16,19,21]", | |
"tel" : "{phone}", | |
"address" : "{addressObject}", | |
"cc" : "{ccObject}", |
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 Map = ({list, key, children}) => { | |
const child = React.Children.only(children); | |
const Item = child.type; | |
return list.map((item, index) => { | |
const keyed = Object.assign({key: item[key] || index}, item) | |
return React.createElement(Item, keyed); | |
}) | |
}; |
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
{ | |
"editor.snippetSuggestions": "top", | |
"editor.insertSpaces": false, | |
"editor.minimap.enabled": false, | |
"editor.hideCursorInOverviewRuler": true, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"workbench.colorTheme": "Afterglow", | |
"window.zoomLevel": 2, | |
"workbench.iconTheme": "vs-seti", |
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
{ | |
"htmli": { | |
"prefix": "htmli", | |
"body": "<link rel=\"import\" href=\"$0\" />", | |
"description": "" | |
}, | |
"wat": { | |
"prefix": "wat", | |
"body": "attachedCallback(){\n\t$0\n}", | |
"description": "" |
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
{ | |
"rows" : "!", | |
"id" : "{index}", | |
"active" : "{bool}", | |
"fname" : "{firstName}", | |
"lname" : "{lastName}", | |
"category" : "[13,16,19,21]", | |
"tel" : "{phone}", | |
"address" : "{addressObject}", | |
"cc" : "{ccObject}", |
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
# CG # | |
> #### Overall Issues: #### | |
* Performance on lower powered devices when animating & retrieving data in parallel. | |
* Intercept route changes, navigate + trigger: false | |
* identify end state as next view's initial state | |
* Possible library http://ricostacruz.com/jquery.transit/ | |
* Add explorer viewstate to Session variable | |
* Can *n* number of genes be shown at the same time with current drawing utils? |
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
function abbevify(items,targetLength,pos,obj){ | |
var obj = obj || {}, | |
pos = pos || 1, | |
arr = items.slice(0), | |
t = arr[0].substring(0, pos) | |
if(!obj[t]){ | |
obj[t] = arr.shift(); | |
pos=1 | |
} |