This is a SCRIPT-8 cassette.
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
function* makeSlices(delim, array) { | |
let offset = 0; | |
let length = 0; | |
for(let x of array) { | |
if (x === delim) { | |
yield { | |
offset, | |
length, | |
get: (i) => { | |
if (i < 0 || i > length) { throw "OutOfBounds"; } |
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
/* | |
* This type defines the internal state of our class so | |
* that we can use type refinement to check each branch. | |
* It should not be exported from this module and is | |
* purely an implementation detail. | |
*/ | |
type InternalResultState<Value, Error> = { | |
tag: "Ok", | |
value: Value, | |
} | { |
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
/* | |
* We first need to create a few functions that will facilitate out weird syntax that | |
* relies on continuation-style programming wherein the next statement is executed as | |
* a lambda invoked by the previous statement. For clarity, `cf` is shorthand for | |
* callforward; like a callback, but not really. | |
*/ | |
const define = (name, body, cf) => scope => cf({...scope, [name]: body(scope)}); | |
const include = (as, module, cf) => scope => cf({...scope, [as]: module}); | |
const main = (body) => scope => body(scope); |
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
awk -v FPAT='[^,]*|"[^"]+"' 'BEGIN{ | |
print "# -*- mode: rec -*-"; | |
print ""; | |
print "%rec: To Read"; | |
print ""; | |
} | |
/to-read/ { | |
gsub("\"","",$2); | |
print "Name: " $2; | |
print "Author: " $3; |
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
# This YouTube video has a number of other people | |
# involved and links to them in the description in | |
# a clean way. Should serve as a good origin node. | |
ORIGIN_VIDEO_ID = "zUDqI9PJpc8" | |
import os | |
import json | |
import google_auth_oauthlib.flow | |
import googleapiclient.discovery | |
import googleapiclient.errors |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<polymer-element name="my-element"> |