View LICENSE.txt
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
View Ingress Intel Map Permalink
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
(function ($) { | |
function getURL(center, zoom) { | |
var lt = Math.round(center.lat() * 1e6), | |
ln = Math.round(center.lng() * 1e6); | |
return '?latE6=' + lt + '&lngE6=' + ln + '&z=' + zoom; | |
} | |
var m = Z.d().h, | |
url = getURL(m.getCenter(), m.getZoom()), |
View gist:4429450
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
Wy1dPlstXTwNCj4rKysrKysrK1s8KysrKysrKys+LV08KysrLg0KPisrKytbPCsrKys+LV08KysuDQo+KysrK1s8LS0tLT4tXTwrKy4NCj4rK1s8LS0+LV08LS4NCisrKy4NCj4rKysrWzwtLS0tPi1dPCsrKy4NCj4rK1s8LS0+LV08LS0uDQo+KysrKytbPCsrKysrPi1dPCsrLg0K |
View locations.ini
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
[locations] | |
1=Public_Dulles | |
default=Public_Dulles | |
[Public_Dulles] | |
1=WPT_Dulles_Chrome | |
label=”Dulles, VA” | |
group=Public | |
[WPT_Dulles_Chrome] |
View gist:ab7f3e4caa475a524a74306ebee5062a
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
{ | |
"data": { | |
"repository": { | |
"owner": { | |
"login": "rviscomi", | |
"avatarURL": "https://avatars3.githubusercontent.com/u/1120896?v=3" | |
}, | |
"name": "red-dwarf", | |
"description": "Google Maps heatmap of GitHub repository stargazers", | |
"stargazers": { |
View timedChunk.js
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
/*! Copyright 2009 Nicholas C. Zakas. All rights reserved. MIT Licensed */ | |
/** | |
* Processes each item in "items" at most 50ms at a time with a sleep of 25ms. | |
* By limiting the amount of time spent in a loop, there is no lock on the UI thread. | |
* | |
* Calls "process" in "context" for each item in "items". | |
* After each item has been processed, "callback" is called with the original array. | |
* | |
* Some modifications to Zakas's code: | |
* * added delay parameter to control how long to sleep |
View gist:700f8cc86490f364843f3feaaecbff89
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
[lib-version] | |
return '2.8.2'; | |
[3pl] | |
var thirdParties = []; | |
function addThirdParty(name, version) { | |
if (!name) { | |
return; | |
} |
View WPT CMS custom metric
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
[cms] | |
/** | |
* IMPORTANT: Do not modify this file directly! It is generated by | |
* bin/cms-detector.js | |
* | |
* Detects the presence of Content Management Systems. | |
* | |
* | |
* Built on https://github.com/AliasIO/Wappalyzer. | |
* See https://github.com/AliasIO/Wappalyzer/blob/master/LICENSE. |
View wikipedia-jquery-date-extract.js
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
parseReleaseHistory = (table) => { | |
const rows = Array.from(table.querySelectorAll('tbody tr')); | |
return rows.reduce((dates, row) => { | |
let version = getVersion(row.querySelector('td:nth-child(1)').innerText); | |
let date = getDate(row.querySelector('td:nth-child(2)').innerText); | |
dates.push({version, date}); | |
const patch = row.querySelector('td:nth-child(3)').innerText; | |
if (patch) { | |
let _; |
View changelog.js
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
class HAChangelog { | |
constructor(changelog=[]) { | |
this.changelog = changelog; | |
} | |
add(datestr, title, desc) { | |
this.changelog.push({ | |
date: (new Date(datestr)).getTime(), | |
title, | |
desc |
OlderNewer