Skip to content

Instantly share code, notes, and snippets.

Rick Viscomi rviscomi

Block or report user

Report or block rviscomi

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
@rviscomi
rviscomi / LICENSE.txt
Created Feb 21, 2012 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
View LICENSE.txt
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 Dec 10, 2015
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.
View Ingress Intel Map Permalink
View gist:4429450
Wy1dPlstXTwNCj4rKysrKysrK1s8KysrKysrKys+LV08KysrLg0KPisrKytbPCsrKys+LV08KysuDQo+KysrK1s8LS0tLT4tXTwrKy4NCj4rK1s8LS0+LV08LS4NCisrKy4NCj4rKysrWzwtLS0tPi1dPCsrKy4NCj4rK1s8LS0+LV08LS0uDQo+KysrKytbPCsrKysrPi1dPCsrLg0K
View locations.ini
[locations]
1=Public_Dulles
default=Public_Dulles
[Public_Dulles]
1=WPT_Dulles_Chrome
label=”Dulles, VA”
group=Public
[WPT_Dulles_Chrome]
View gist:ab7f3e4caa475a524a74306ebee5062a
{
"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
/*! 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
@rviscomi
rviscomi / gist:700f8cc86490f364843f3feaaecbff89
Last active Apr 3, 2017
WPT custom metrics script for third party libs
View gist:700f8cc86490f364843f3feaaecbff89
[lib-version]
return '2.8.2';
[3pl]
var thirdParties = [];
function addThirdParty(name, version) {
if (!name) {
return;
}
View WPT CMS custom metric
[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
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
Helper script for adding events to the HTTP Archive changelog.json file
View changelog.js
class HAChangelog {
constructor(changelog=[]) {
this.changelog = changelog;
}
add(datestr, title, desc) {
this.changelog.push({
date: (new Date(datestr)).getTime(),
title,
desc
You can’t perform that action at this time.