View pageItem.json
{
"data": {
"attributes": {
"alias": "page17505937737920",
"name": "Page with nested collections",
"published": "2018-03-26T14:18:36.658Z",
"state": "published"
},
"id": "276531033297232303596041382983189222632",
"relationships": {
View useful.js
const pipe = (...fns) => x => fns.reduce((acc, fn) => fn(acc), x);
View error.js
/*
http://jsbin.com/rolojuhuya/1/
https://stackoverflow.com/questions/8802845/inheriting-from-the-error-object-where-is-the-message-property
https://stackoverflow.com/questions/783818/how-do-i-create-a-custom-error-in-javascript
*/
function CustomError(message, somethingElse) {
var error = Error.call(this, message);
View config
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile /Users/user/.ssh/id_rsa
View useful.sh
# Commands that are useful once in a while but not always for everyday usage
# Remove all node_modules forlder recursively
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
# List globally installed npm package
npm list -g --depth=0
# Loop over files in the current dir
for f in *; do
View main.go
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View inlineworker.js
function worker() {
setInterval(function() {
postMessage({foo: "bar"});
}, 1000);
}
var code = worker.toString();
code = code.substring(code.indexOf("{")+1, code.lastIndexOf("}"));
var blob = new Blob([code], {type: "application/javascript"});