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 / 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:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://wzrd.in/standalone/n3"></script>
<link rel="stylesheet" href="https://semantic-ui.com/dist/semantic.min.css" />
</head>
<body>
@BigBlueHat
BigBlueHat / index.html
Created November 29, 2016 21:36
Apache Annotator (incubating) home page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>Apache Annotator (incubating)</title>
<link rel="stylesheet" href="http://semantic-ui.com/dist/semantic.min.css" />
</head>
@BigBlueHat
BigBlueHat / hypothesis.md
Created September 9, 2016 20:35
Hypothes.is API Blueprint [DRAFT]
@BigBlueHat
BigBlueHat / README.md
Created July 15, 2016 18:15
Test Multiple Inbound Header Handling in wptserve (for Python)

Test Multiple Inbound Header Handling in wptserve (for Python)

Wirking on exploring this issue: w3c/wptserve#84

Usage

$ pip install wptserve
$ python test.py