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 4.1.2.4 https://www.postgresql.org/docs/9.0/static/sql-syntax-lexical.html
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)
}
test()
x = 'bar';
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<title>FazMaraneyRGB_transparent_mosaic_group1</title>
<!-- 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>
<html>
<head>
<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='https://api.tiles.mapbox.com/mapbox-gl-js/v0.41.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.41.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@calvinmetcalf
calvinmetcalf / .block
Created Mar 3, 2017 — forked from mbostock/.block
U.S. Population Density
View .block
license:gpl-3.0
height:680
border:no
@calvinmetcalf
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>
<html>
<head>
<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="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
View disclaimer.md

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).

View keybase.md

Keybase proof

I hereby claim:

  • I am calvinmetcalf on github.
  • I am calvinmetcalf (https://keybase.io/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
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 = fix.valid.ec.filter(item=>item.scheme === 'ecdsa-with-SHA1');
var fs = require('fs');
var crypto = require('./browser');
function forAlg(alg) {
return filtered.map(f=>{
var message = new Buffer(`${alg}: ${f.message.replace('sha1', alg)}`);
var priv
if (f.passphrase) {
You can’t perform that action at this time.