Skip to content

Instantly share code, notes, and snippets.

Calvin Metcalf calvinmetcalf

Block or report user

Report or block calvinmetcalf

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 quote.js
// Dollar-Quoted String Constants: see
function tagRegex(tag) {
return new RegExp('\\$' + tag + '\\$');
function getBase(input) {
var tagBase = 'cartodb';
if (!input.toString().match(tagRegex(tagBase))) {
return tagBase;
var i = 0;
View spoiler.js
let x = 'foo'
async function test() {
console.log('top of func', x);
x+= await 'baz'
console.log('bottom of func', x)
x = 'bar';
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<!-- Leaflet -->
<link rel="stylesheet" href=/home/gabrielschubert/Documents/hawkit_app/guis/pyqt_gui/leaflet/leaflet.css />
<script src=/home/gabrielschubert/Documents/hawkit_app/guis/pyqt_gui/leaflet/leaflet.js ></script>
View index.html
<!DOCTYPE html>
<meta charset='utf-8' />
<title>Display buildings in 3D</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src=''></script>
<link href='' rel='stylesheet' />
body { margin:0; padding:0; }
calvinmetcalf / .block
Created Mar 3, 2017 — forked from mbostock/.block
U.S. Population Density
View .block
calvinmetcalf / index.html
Last active Aug 9, 2016 — forked from ramiroaznar/index.html
How to remove a CARTO layer interactivity + GMs
View index.html
<!DOCTYPE html>
<title>GMs and CARTO.js | Remove interactivity</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="" />
html, body, #map {
height: 100%;

Cross off when term is used in talk, if you get 5 in a row (horizontal, vertical, or diagonal) find Calvin Metcalf (@cwmma), there are prizes for the first 3 to finish (at least). Yelling "Bingo!" in the middle of somebody's talk will disqualify you (unless said speaker indicates that they are ok with that). Not affiliated with foss4g (this year's at least).


Keybase proof

I hereby claim:

  • I am calvinmetcalf on github.
  • I am calvinmetcalf ( on keybase.
  • I have a public key whose fingerprint is F3EF 5F62 A87F C27A 22E6 43F7 14CE 4FF5 015A A242

To claim this, I am signing this object:

calvinmetcalf / .block
Last active May 13, 2016 — forked from mbostock/.block
N-Body Problem
View .block
license: gpl-3.0
View generate.js
'use strict';
var fix = require('./test/fixtures.json');
var filtered =>item.scheme === 'ecdsa-with-SHA1');
var fs = require('fs');
var crypto = require('./browser');
function forAlg(alg) {
var message = new Buffer(`${alg}: ${f.message.replace('sha1', alg)}`);
var priv
if (f.passphrase) {
You can’t perform that action at this time.