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
// MSPT tokens (Microsponsors Time Slot) | |
// Metadata Sketch for tokenURI() | |
// OpenSea Docs: | |
// docs.opensea.io/docs/2-adding-metadata | |
// docs.opensea.io/docs/metadata-standards | |
// Example: | |
// https://opensea-creatures-api.herokuapp.com/api/creature/3 | |
{ | |
"name": "MSPT #220: <propertyName>", // MSPT on-chain data |
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
upstream meshws { | |
server mesh:60559; | |
} | |
server { | |
listen 443 ssl; | |
server_name ${SERVERNAME}; | |
ssl_certificate /etc/letsencrypt/live/${SERVERNAME}/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/${SERVERNAME}/privkey.pem; |
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
/* Polyfill indexOf. */ | |
var indexOf; | |
if (typeof Array.prototype.indexOf === 'function') { | |
indexOf = function (haystack, needle) { | |
return haystack.indexOf(needle); | |
}; | |
} else { | |
indexOf = function (haystack, needle) { | |
var i = 0, length = haystack.length, idx = -1, found = false; |
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 choo = require('choo') | |
const app = choo() | |
function view (params, state, send) { | |
return choo.view` | |
<main> |
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 choo = require('choo') | |
const dragdrop = require('drag-drop') | |
const app = choo() | |
function view (params, state, send) { | |
return choo.view` | |
<main> |
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
var hyperdrive = require('hyperdrive') | |
var concat = require('concat-stream') | |
var memdb = require('memdb') | |
var drop = require('drag-drop') | |
var fileReader = require('filereader-stream') | |
var choppa = require('choppa') | |
var swarm = require('hyperdrive-archive-swarm') | |
var db = memdb('./hyperdrive620') | |
var drive = hyperdrive(db) | |
var explorer = require('./') |
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
- app | |
- lib | |
(our OOP nouns all live here whether they are services, factories or providers: | |
basically, anything that affects the state of a given noun - i.e. User - across components) | |
- api-client-service | |
- payment-service | |
- search-service | |
- search-filter-factory | |
- swagger-service | |
- user-service |
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
# the not not operator | |
# equivalent in js: | |
# if (!!farts) { alert("many " + farts); } | |
alert "many " + farts unless not farts | |
# Self invoking anonymous function | |
do -> |