Skip to content

Instantly share code, notes, and snippets.

View gobengo's full-sized avatar

Benjamin Goering gobengo

View GitHub Profile
openapi: 3.0.3
info:
title: Account Payment API
version: "0"
servers:
- url: https://staging.web3.storage/api
tags:
- name: payment
description: Pay for things
paths:
erDiagram
    Web3StorageUser {
    }
    StripeSubscription {
        string stripeSubscriptionId
    }
    DataStore {
    }
 Web3StorageUser ||--o| StripeSubscription: hasPaymentPolicy
did:3:kjzl6cwe1jw147h45rino9lc48jaw0ylyczicoj7578cpg9j9lc5yhizuswkit9
import * as pulumi from "@pulumi/pulumi";
import * as k8s from "@pulumi/kubernetes";
let config = new pulumi.Config();
const k8sNamespacePrefix = config.require('k8sNamespacePrefix')
// https://github.com/pulumi/pulumi-kubernetes/issues/217#issuecomment-459105809
const addNamespaceTransformation = (namespaceName: string) => (o: any) => {
if (o !== undefined) {
if (o.metadata !== undefined) {
{
"@context": "http://www.w3.org/ns/activitystreams#",
"id": "https://rhiaro.co.uk/2016/12/georgetown-wandering",
"type": "http://www.w3.org/ns/activitystreams#Article",
"content": "<p>Yesterday evening (21st) I went for a 'quick walk' into town. My apartment is about a 20 minute walk from the edge of George Town heritage area and 40 minutes from the jetty and core tourist zone. Between home and the edge of the 'nice' part of town is not particularly nice: apartment blocks, malls and big roads with... intermittent... footpaths. There are still lots of interesting places to stop of course; markets, stalls, local restaurants, general streetside chaos. Walking around here takes a lot of concentration, between trying to take in the surroundings, not being hit by scooters and cars, avoiding enormous open holes into the sewer, and not accidentally buying a kilo of tropical fruit every five minutes.</p>\r\n\r\n<p>The sky was blue. My goal was to procure coconut oil for cooking. I thought it would be easy to
### Keybase proof
I hereby claim:
* I am gobengo on github.
* I am bengo (https://keybase.io/bengo) on keybase.
* I have a public key whose fingerprint is 3EFE C28D FEA1 955D CBFB 3B91 FAFE 5464 7D99 6E04
To claim this, I am signing this object:

URN Resolver API

Many Livefyre APIs use Livefyre URNs as ids of the resources they describe.

The URN Resolver API allows a client to resolve a Livefyre URN to a related URL that describes or manages the resource indicated by the URN.

Use Cases

  • Given knowledge of a Livefyre Collection's Network, Site ID, and Article ID, I can create a link to manage that Collection in Livefyre Studio's web UI.
@gobengo
gobengo / xsdDateTime.js
Created June 8, 2015 23:08
JavaScript xsd:dateTime Parser
// built from definition: http://books.xmlschemata.org/relaxng/ch19-77049.html
var xsdDateTimePattern = new RegExp([
'(\\d{4})', //year
'-',
'(\\d{2})', // month
'-',
'(\\d{2})', // day
'T',
'(\\d{2})', // hour
':',
@gobengo
gobengo / content.json
Created January 14, 2013 05:44
StreamHub-Backbone Content Properties
{
"id": "1fe8d2f7-4266-4830-af03-a389ca86f31b",
"event": 1.3575080009429e+15,
"bodyHtml": "Bonne rentr\u00e9e , rien qu'a dire ces 2mots j'ai envie de chialer.\n#va#retrouver#ces#deux#amour#Marie#laurette. ",
"ancestorId": "1fe8d2f7-4266-4830-af03-a389ca86f31b",
"annotations": {
},
"authorId": "0fb0638b4b1ef064d1086f6522d5743f@instagram.com",
"createdAt": 1357508000,
@gobengo
gobengo / gist:2731289
Created May 19, 2012 15:48 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code