Moved to https://github.com/digitalbazaar/did-core-json-schema
This file contains 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
import fs from 'node:fs'; | |
// generate this file using... | |
// `gcloud projects list --format=json > gcp-projects-list.json` | |
const data = fs.readFileSync('gcp-projects-list.json', 'utf8'); | |
const jsonData = JSON.parse(data); | |
let output = `connection "gcp" { | |
plugin = "gcp" | |
type = "aggregator" |
This file contains 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
{ | |
"@context": "https://schema.org/", | |
"name": [{ | |
"@language": "en-US", | |
"@value": "Benjamin" | |
},{ | |
"@language": "he-IL", | |
"@value": "בִּנְיָמִין", | |
"@direction": "rtl" | |
} |
This file contains 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
// https://porkbun.com/products/domains | |
function cleanCurrencey(n) { | |
return n.replace('$', '').replace(',', ''); | |
} | |
domains = [`TLD, Registration, Renewal, Transfer`]; | |
$('.domainsPricingAllExtensionsItem').each((i, el) => { | |
let $el = $(el); | |
domains.push(`${$el.find('a').text().trim()}, ${cleanCurrencey($el.find('.registration .sortValue').text().trim())}, ${cleanCurrencey($el.find('.renewal .sortValue').text().trim())}, ${cleanCurrencey($el.find('.transfer .sortValue').text().trim())}`); | |
}); |
This file contains 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
[ | |
{ | |
"name": "Kinesis Freestyle Pro", | |
"switchMount": "cherry", | |
"switchBrand": "cherry", | |
"switchType": "MX3A-L1xx" | |
}, | |
[ | |
{ | |
"x": 11, |
This file contains 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
[ | |
{ | |
"name": "PLUM" | |
}, | |
[ | |
{ | |
"a": 6 | |
}, | |
"Esc", | |
"F1", |
This file contains 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
{ | |
"@context": [{ | |
"type": "@type", | |
"id": "@id", | |
"none": "@none", | |
"language": "@language", | |
"direction": "@direction", | |
"json": "@json" | |
}, | |
{ |
This file contains 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
{ | |
"@context": { | |
"@vocab": "https://www.iana.org/assignments/link-relations/", | |
"anchor": "@id", | |
"href": "@id", | |
"dct": "http://purl.org/dc/terms/", | |
"link": "https://www.iana.org/assignments/link-relations#", | |
"title": "http://purl.org/dc/terms/title" | |
"title*": "http://purl.org/dc/terms/title" | |
"type": "dct:format", |
This file contains 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
# python -m SimpleHTTPPutServer 8080 | |
import SimpleHTTPServer | |
import BaseHTTPServer | |
class SputHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def do_PUT(self): | |
print(self.headers) | |
length = int(self.headers["Content-Length"]) | |
path = self.translate_path(self.path) | |
with open(path, "wb") as dst: |
This file contains 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
{ | |
"scope": "https://textbook.example.org/", | |
"type": "List", | |
"items": [ | |
{ | |
"source": "https://textbook.example.org/section2.html", | |
"selector": { | |
"type": "CssSelector", | |
"value": "body>section:nth-of-type(3)" | |
} |
NewerOlder