Skip to content

Instantly share code, notes, and snippets.

🎩
building Web things

BigBlueHat BigBlueHat

🎩
building Web things
Block or report user

Report or block BigBlueHat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View linkset.jsonld
{
"@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 Sep 24, 2018
Python-based PUT server
View SimpleHTTPPutServer.py
# 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 Nov 9, 2017
List instead of Multi Selector
View example-15-as-a-list.json
{
"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)"
}
View 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:

View index.html
<!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 Nov 29, 2016
Apache Annotator (incubating) home page
View index.html
<!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 Sep 9, 2016
Hypothes.is API Blueprint [DRAFT]
View hypothesis.md
@BigBlueHat
BigBlueHat / README.md
Created Jul 15, 2016
Test Multiple Inbound Header Handling in wptserve (for Python)
View README.md
@BigBlueHat
BigBlueHat / resulting-nquads-of-all-three.ttl
Created Apr 18, 2016
Web Annotation First Example Comparison - these are all the same
View resulting-nquads-of-all-three.ttl
<http://example.org/anno1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/oa#Annotation> .
<http://example.org/anno1> <http://www.w3.org/ns/oa#hasBody> <http://example.org/post1> .
<http://example.org/anno1> <http://www.w3.org/ns/oa#hasTarget> <http://example.com/page1> .
@BigBlueHat
BigBlueHat / index.js
Created Dec 1, 2015
requirebin sketch
View index.js
var seek = require('dom-seek');
var text = 'ipsum';
// Find the text.
var offset = document.body.textContent.indexOf(text);
var length = text.length
// Create a NodeIterator.
var iter = document.createNodeIterator(document.body, NodeFilter.SHOW_TEXT);
You can’t perform that action at this time.