Skip to content

Instantly share code, notes, and snippets.

@33mhz
33mhz / reverse_markdown.md
Created Oct 6, 2017
reverse markdown from pnut entities
View reverse_markdown.md

Setup

This is pseudocode.

post has been retrieved from the API.

Be sure to make substrings and other string operations by "multibyte" divisions.

Operation

View pnut_printer.py
# Author: @33MHz
# 2017-03-04 hackday
# Polls, printing to USB receipt printer
from pnutpy import api
import subprocess
from shlex import quote
api.add_authorization_token('TOKEN HERE')
View Vidcast channel proposal
Channel
{
"type":"vidcast",
"owner":{},
"acl":{
"full":{"user_ids":[]},
"write":{"any_user"}
},
"raw":[
{
@33mhz
33mhz / acl.json
Last active Nov 4, 2016
ACL example
View acl.json
"owner":{},
"acl": {
"full": {
"immutable": true,
"user_ids": [1,2,4],
"you": false
},
"write": {
"immutable": false,
"user_ids": [8,"@user"],