Skip to content

Instantly share code, notes, and snippets.

View rviscomi's full-sized avatar

Rick Viscomi rviscomi

View GitHub Profile
@rviscomi
rviscomi / LICENSE.txt
Created February 21, 2012 02:58 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
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
@rviscomi
rviscomi / Ingress Intel Map Permalink
Last active December 10, 2015 03:29
Produces a permalink in the Ingress Intel Map comm chat so that others can go directly to a map centered on your current coordinates and zoom level.
@rviscomi
rviscomi / gist:4429450
Created January 1, 2013 19:18
Ingress Day #3
Wy1dPlstXTwNCj4rKysrKysrK1s8KysrKysrKys+LV08KysrLg0KPisrKytbPCsrKys+LV08KysuDQo+KysrK1s8LS0tLT4tXTwrKy4NCj4rK1s8LS0+LV08LS4NCisrKy4NCj4rKysrWzwtLS0tPi1dPCsrKy4NCj4rK1s8LS0+LV08LS0uDQo+KysrKytbPCsrKysrPi1dPCsrLg0K
[locations]
1=Public_Dulles
default=Public_Dulles
[Public_Dulles]
1=WPT_Dulles_Chrome
label=”Dulles, VA”
group=Public
[WPT_Dulles_Chrome]
{
"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": {
@rviscomi
rviscomi / gist:700f8cc86490f364843f3feaaecbff89
Last active April 3, 2017 20:55
WPT custom metrics script for third party libs
[lib-version]
return '2.8.2';
[3pl]
var thirdParties = [];
function addThirdParty(name, version) {
if (!name) {
return;
}
[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.
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 _;
@rviscomi
rviscomi / changelog.js
Created May 10, 2017 18:28
Helper script for adding events to the HTTP Archive changelog.json file
class HAChangelog {
constructor(changelog=[]) {
this.changelog = changelog;
}
add(datestr, title, desc) {
this.changelog.push({
date: (new Date(datestr)).getTime(),
title,
desc
SELECT pages.rank AS rank, libs.url AS url FROM
(SELECT url FROM httparchive:scratchspace.2017_04_15_js_libs WHERE lib.name = 'SPF') AS libs JOIN
(SELECT url, rank FROM httparchive:runs.latest_pages) AS pages ON pages.url = libs.url
ORDER BY
rank ASC