Skip to content

Instantly share code, notes, and snippets.

@bleonard252
bleonard252 / december.html
Last active November 17, 2018 16:48
December: for config.jsons
<script>
var ianuam = {}
</script>
<div id="croissant_december">
<form id="chocolate_december">
<p><input type=checkbox january="Gateway.Writeable" id="writeable" /><label for="writeable">Writeable Gateway</label></p>
<p><input type=checkbox january="experiments.pubsub" id="pubsub" /><label for="pubsub">Publish/Subscribe (Pub/Sub)</label></p>
<input type=button value="Save" onclick="fsubmit_december('chocolate_december',ianuam)" />
</form>
</div>
@bleonard252
bleonard252 / ippd-whitepaper.md
Last active November 17, 2018 16:55
Inter-Planetary Processing Definition

InterPlanetary Processing Definition

The InterPlanetary Processing Definition is a file that determines how to process or handle other files on the network. It fulfills the purpose of a backend without the need for an actual backend.

Use Cases

  1. Say, for example, you want to have a Python script handle posting to a blog. You might use such a file as this:
#!ippd
type: py #python works too
apply-to: .post.py
@bleonard252
bleonard252 / cmsilver.md
Created September 23, 2018 23:54
Commonmark Silver - CommonMark extension
Error in user YAML: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
---
author: bleonard252
title: Commonmark Silver
see-also: [Commonmark](commonmark.md)
---

CommonMark Silver

CommonMark Silver is an extension to the Commonmark syntax and functionality. It provides the means to run full websites with dynamic content and custom styling. This document shows changes between CommonMark and CommonMark Silver.

No HTML

@bleonard252
bleonard252 / README.md
Created September 21, 2018 23:29
SJCL Multipage Encrypt (Doubtmode)

Doubtmode

"Doubtmode" is my name for a method of page encryption based on the Stanford Javascript Crypto Library, also known as SJCL. You can configure it however you want, but it must have a password to decrypt it.

How to use (Single page)

To start, just slip the following into the <head> anywhere (it doesn't matter):

<script src='https://bitwiseshiftleft.github.io/sjcl/sjcl.js'></script>