The only cross-platform browser that fits in a Gist!
One line install. Works on Linux, MacOSX and Windows.
$> npm install http://gist.github.com/morganrallen/f07f59802884bcdcad4a/download
# This docker-compose.yml will run the Hypothes.is annotation server. | |
# (adapted from instructions here https://h.readthedocs.org/en/latest/INSTALL.html) | |
# | |
# Place this file in the working directory (clone of https://github.com/hypothesis/h) | |
# run with docker-compose up -d | |
# | |
# Now browse to Hypothes.is at http://192.168.59.103:8000/ and create an account | |
# You'll see the invitation email in Mailcatcher at http://192.168.59.103:1080/ | |
# Click that invitation link and log in on your local Hypothes.is | |
# And you are ready to annotate! |
import json, traceback, requests, types | |
from collections import defaultdict | |
try: | |
from urllib.parse import urlencode | |
except ImportError: | |
from urllib import urlencode | |
class HypothesisUtils: |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
Join the channel you want to register. Make sure you're an op (either the first to join, or someone who is an op there sets you to +o). | |
/join #newchannel | |
/msg chanserv register #newchannel | |
/msg chanserv set #newchannel mlock +cnt-s | |
/msg chanserv set #newchannel guard on | |
/msg chanserv set #newchannel secure on | |
/msg chanserv set #newchannel topiclock on | |
/msg chanserv set #newchannel keeptopic on | |
/msg chanserv set #newchannel url http://example.org/ |
const { ToggleButton } = require('sdk/ui/button/toggle'); | |
let globalToggle = ToggleButton({ | |
id: 'my-global-toggle', | |
label: 'global function', | |
icon: './foo.png', | |
onChange: function() { | |
// delete the window state for the current window, | |
// automatically set when the user click on the button | |
this.state('window', null); |
{ | |
"@context": { | |
"@vocab": "http://www.w3.org/2004/02/skos/core#", | |
"broadMatch": { "@type": "@id" }, | |
"broader": { "@type": "@id" }, | |
"broaderTransitive": { "@type": "@id" }, | |
"closeMatch": { "@type": "@id" }, | |
"exactMatch": { "@type": "@id" }, | |
"hasTopConcept": { "@type": "@id" }, | |
"inScheme": { "@type": "@id" }, |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
(function(exports) { | |
'use strict'; | |
implementRequestBookmark(); | |
/** | |
* Expose requestBookmark() on navigator | |
* @return {void} | |
*/ | |
function implementRequestBookmark(){ |
#!/usr/bin/env python | |
# source: https://gist.github.com/mnot/210535 | |
""" | |
HTTP Link Header Parsing | |
Simple routines to parse and manipulate Link headers. | |
""" |