Skip to content

Instantly share code, notes, and snippets.

View BigBlueHat's full-sized avatar
🎩
building Web things

BigBlueHat BigBlueHat

🎩
building Web things
View GitHub Profile
@BigBlueHat
BigBlueHat / doc.jsonld
Last active October 4, 2023 14:56
Framing to a default language for the entire doc (maybe)
{
"@context": "https://schema.org/",
"name": [{
"@language": "en-US",
"@value": "Benjamin"
},{
"@language": "he-IL",
"@value": "בִּנְיָמִין‎",
"@direction": "rtl"
}
@BigBlueHat
BigBlueHat / index.js
Created October 17, 2022 21:21
Porkbun.com price extractor
// 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())}`);
});
@BigBlueHat
BigBlueHat / Kinesis-Freestyle-Pro.kbd.json
Last active September 16, 2021 22:52
Kinesis Freestyle Pro
[
{
"name": "Kinesis Freestyle Pro",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX3A-L1xx"
},
[
{
"x": 11,
@BigBlueHat
BigBlueHat / PLUM.kbd.json
Last active September 15, 2021 02:16
PLUM
[
{
"name": "PLUM"
},
[
{
"a": 6
},
"Esc",
"F1",
@BigBlueHat
BigBlueHat / attempt.jsonld
Created April 18, 2020 15:06
jsonapi-ld maybe
{
"@context": [{
"type": "@type",
"id": "@id",
"none": "@none",
"language": "@language",
"direction": "@direction",
"json": "@json"
},
{
{
"@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",
@BigBlueHat
BigBlueHat / SimpleHTTPPutServer.py
Last active February 9, 2024 20:35
Python-based PUT server
# 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:
@BigBlueHat
BigBlueHat / example-15-as-a-list.json
Last active November 9, 2017 20:23
List instead of Multi Selector
{
"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)"
}
@BigBlueHat
BigBlueHat / keybase.md
Created May 16, 2017 15:11
keybase.md

Keybase proof

I hereby claim:

  • I am bigbluehat on github.
  • I am bigbluehat (https://keybase.io/bigbluehat) on keybase.
  • I have a public key ASDqfPGTTpv8d7CuYIX55C9aDk5cTdmgvJbkA-WObygQiAo

To claim this, I am signing this object: