Skip to content

Instantly share code, notes, and snippets.

Gavin Sharp gavinsharp

Block or report user

Report or block gavinsharp

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 gist:d33c79b660c3edc23bcf8385a2665789
var ImageTextRow = function ImageTextRow(_ref) {
...
var p = _react.default.createElement("p", null, "foo");
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_style.default, {
id: _ImageTextRow.default.__hash
}, _ImageTextRow.default), _react.default.createElement("div", {
className: "jsx-".concat(_ImageTextRow.default.__hash) + " " + "pageRow group ".concat(alignClass)
}, align === 'left' ? _react.default.createElement(_react.default.Fragment, null, _react.default.createElement("div", {
className: "jsx-".concat(_ImageTextRow.default.__hash) + " " + "text"
View static.goproperly.com-20190118T111334.json
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","benchmarkIndex":930},"lighthouseVersion":"3.2.0","fetchTime":"2019-01-18T16:13:34.606Z","requestedUrl":"https://static.goproperly.com/","finalUrl":"https://static.goproperly.com/","runWarnings":[],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and man
View www.goproperly.com-20190118T113114.json
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","benchmarkIndex":1098},"lighthouseVersion":"3.2.0","fetchTime":"2019-01-18T16:31:14.904Z","requestedUrl":"https://www.goproperly.com/request-offer","finalUrl":"https://www.goproperly.com/request-offer","runWarnings":[],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisi
View gist:b05fafddd1c2ad4e65424c5767bdafae
Verifying my Blockstack ID is secured with the address 1FSvww4Fa7WBjsb7gC7wjWpn8m11dhhAhx https://explorer.blockstack.org/address/1FSvww4Fa7WBjsb7gC7wjWpn8m11dhhAhx
View task.js
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80 filetype=javascript: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/**
* This module implements a subset of "Task.js" <http://taskjs.org/>.
View keybase.md

Keybase proof

I hereby claim:

  • I am gavinsharp on github.
  • I am gavinsharp (https://keybase.io/gavinsharp) on keybase.
  • I have a public key whose fingerprint is EC83 3EED 7B4C EB9A 3636 1F44 BFA6 7EC5 D098 0797

To claim this, I am signing this object:

@gavinsharp
gavinsharp / gist:1083174
Created Jul 14, 2011 — forked from abhinavsharma/gist:1083149
automatically add search engine with jetpack
View gist:1083174
tabs.on('ready', function(tab) {
reportError("tab activated");
let gBrowser = Svc.Services.wm.getMostRecentWindow("navigator:browser").gBrowser;
let doc = gBrowser.contentDocument;
let browser = gBrowser.getBrowserForDocument(doc);
if (browser.engines) {
reportError(Object.keys(browser.engines[0]));
browser.engines.forEach(function({uri, title, icon}) {
let type = (/xml$/).test(uri) ? Ci.nsISearchEngine.DATA_XML : Ci.nsISearchEngine.DATA_TEXT;
let e = Svc.Services.search.currentEngine;
View dominant-color.js
function getDominantColor(aImg) {
let canvas = document.createElement("canvas");
canvas.height = aImg.height;
canvas.width = aImg.width;
let context = canvas.getContext("2d");
context.drawImage(aImg, 0, 0);
// keep track of how many times a color appears in the image
let colorCount = {};
You can’t perform that action at this time.