This is my first crack at spec'ing out the fields in the wordObject
s contained in a "universal transcript" as produced by a machine, a human, or both, from human speech.
This is the word that the transcriber thinks is spoken.
const getNeighbors = (rowNum, colNum, board) => { | |
const neighbors = []; | |
for (let r of [rowNum - 1, rowNum, rowNum + 1]) { | |
if (board[r] === undefined) { | |
continue; | |
} | |
for (let c of [colNum - 1, colNum, colNum + 1]) { | |
if (board[r][c] === undefined) { | |
continue; | |
} |
generateGoL = (numRows, numCols) => { | |
return Array.from({length: numRows}, () => | |
Array.from({length: numCols}, () => | |
Math.round(Math.random()))) | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title></head> | |
<body> | |
<script src="https://unpkg.com/[email protected]/umd/react.development.js"></script> | |
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.js"></script> | |
<script type="text/babel"> |
<!doctype html> | |
<head> | |
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
<script crossorigin src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.js"></script> | |
</head> | |
<body> |
MATCHED_LOOKUP = {k: v for k, v in ["()", "[]", "{}"]} | |
def is_valid(string): | |
open_braces = [] | |
for char in string: | |
if char in MATCHED_LOOKUP: | |
open_braces.append(char) |
[ | |
{ | |
"date": "9 Apr 2019", | |
"location": "Spaces Genève, Quai de l'île", | |
"ping": 4, | |
"down": 222.29, | |
"up": 213.07 | |
} | |
] |
""" | |
MIT License | |
Copyright (c) 2019 Zev Averbach | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
""" | |
MIT License | |
Copyright (c) 2019 Zev Averbach | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
(function(l, r) { if (l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (window.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.head.appendChild(r) })(window.document); | |
var app = (function () { | |
'use strict'; | |
function noop() { } | |
function add_location(element, file, line, column, char) { | |
element.__svelte_meta = { | |
loc: { file, line, column, char } | |
}; |