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
#!/usr/bin/env python | |
import argparse | |
import base64 | |
import binascii | |
import sys | |
import uuid | |
ES_FLAKE_MAGIC_BYTE = ['e', '5'] |
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
(h) ~/h/r/h > curl -I 'https://h.readthedocs.io/en/latest/api/' | |
HTTP/1.1 200 OK | |
Server: nginx/1.10.0 (Ubuntu) | |
Date: Tue, 13 Jun 2017 13:20:52 GMT | |
Content-Type: text/html | |
Content-Length: 326 | |
Last-Modified: Mon, 05 Jun 2017 09:11:35 GMT | |
Connection: keep-alive | |
Vary: Accept-Encoding | |
ETag: "59352047-146" |
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 { options, render } from 'preact'; | |
import { ATTR_KEY } from 'preact/src/constants'; | |
/** | |
* Returns the input properties that were passed to an element when it was | |
* rendered. | |
* | |
* See `shallowRender` documentation for usage example. | |
*/ |
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
'use strict'; | |
/* global Proxy */ | |
// Set of expressions for which warnings have been emitted | |
var warnedExpressions = {}; | |
/** | |
* Return a proxy which warns on accesses to undefined properties in | |
* expressions. |
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
diff --git a/src/sidebar/frame-sync.js b/src/sidebar/frame-sync.js | |
index 8a80563..6a505d7 100644 | |
--- a/src/sidebar/frame-sync.js | |
+++ b/src/sidebar/frame-sync.js | |
@@ -2,6 +2,7 @@ | |
var events = require('./events'); | |
var bridgeEvents = require('../shared/bridge-events'); | |
+var memoize = require('./util/memoize'); | |
var metadata = require('./annotation-metadata'); |
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
type MyType = { | |
foo: string; | |
bar?: string; | |
} | |
function doStuffWithMyType(_: MyType) {} | |
function typoExample() { | |
doStuffWithMyType({ | |
foo: 'herp', |
This file has been truncated, but you can view the full file.
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://hypothes.is/groups/j3eoYn2b/curation-strategies | |
http://www.thetimes.co.uk/tto/public/cyclesafety/article3812452.ece | |
http://www.hhbr.co.uk/projects/regeneration/006.htm | |
http://bit.ly/2fZCClq | |
http://bit.ly/2fNO1Gq | |
http://www.wordreference.com/fren/ravissant | |
http://foreignpolicy.com/2016/11/23/ten-ways-to-tell-if-your-president-is-a-dictator/ | |
https://www.youtube.com/watch?v=xwtdhWltSIg | |
http://www.mandolincafe.com/forum/attachment.php?attachmentid=120567&d=1402874523 | |
http://www.songfacts.com/detail.php?id=1256 |
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
<html> | |
<head><meta charset="UTF-8"></head> | |
<body> | |
<form> | |
<button type="submit"> | |
Clicking this button should submit the form and reload the page | |
</button> | |
</form> | |
<script> | |
const form = document.querySelector('form'); |
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
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<script> | |
function createNote(uri, text) { | |
return fetch('http://localhost:5000/api/annotations', { | |
method: 'POST', | |
headers: { |