Skip to content

Instantly share code, notes, and snippets.

coding lotsa code

Matt Gardner allthesignals

coding lotsa code
Block or report user

Report or block allthesignals

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
allthesignals / cloudSettings
Created Oct 18, 2018 — forked from buschtoens/cloudSettings
Visual Studio Code Settings Sync Gist
View cloudSettings
allthesignals / gist:fe1892bcaaa2d01015efe24d9cc21192
Last active Jun 23, 2018 — forked from chriswhong/gist:762ceac7fb8a1420e7e7adceb770b707
Using ST_AsMVT() and ST_AsMVTGeom() in express to build a vector tile endpoint
View gist:fe1892bcaaa2d01015efe24d9cc21192
/* GET /tiles/:z/:x/:y.mvt */
/* Retreive a vector tile by tileid */
router.get('/tiles/:z/:x/:y.mvt', async (req, res) => {
const { z, x, y } = req.params;
// calculate the bounding polygon for this tile
const bbox = mercator.bbox(x, y, z, false);
// Query the database, using ST_AsMVTGeom() to clip the geometries
// Wrap the whole query with ST_AsMVT(), which will create a protocol buffer
View type.js
function getType (value) {
let type = typeof value;
if (type === 'object') {
return value ?, -1) : 'null';
return type;
[NaN, 0, 1, Infinity, // numbers
null, undefined, false, 'str', // other primitives
allthesignals / .block
Last active Oct 31, 2017 — forked from shancarter/.block
Mister Nester
View .block
license: mit
height: 700
allthesignals /
Last active Oct 20, 2017 — forked from williamhaley/
Ember Twiddle Demo: Mirage with Ember Twiddle

Ember Twiddle Demo: Mirage with Ember Twiddle


This is a very trivial example of using mirage with Ember Twiddle.

View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
status: 'active'
View controllers.application.js
import Ember from 'ember';
import QueryParams from 'ember-parachute';
export const myQueryParams = new QueryParams({
'qps.housingType': {
as: 'type',
defaultValue: 'single',
'qps.housing.developmentType': {
as: 'housing.developmentType',
allthesignals /
Last active May 26, 2017 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here



Getting Started

allthesignals / Open iterm tab here
Last active Apr 7, 2016 — forked from eric-hu/Open iterm tab here
Apple script to right click a CSV file to open it in an interactive python shell and load into a Pandas dataframe. To use:(1) Open Automator(2) Create a new service(3) Change "Service receives selected" drop downs to "Files or folders" in "Finder"(4) Select "Run applescript" from the sidebar, then paste this script in and save
View Open iterm tab here
-- Adapted from these sources:
-- Modified to work with files as well, cd-ing to their container folder
on run {input, parameters}
tell application "Finder"
set my_file to first item of input
set filetype to (kind of (info for my_file))
-- Treats OS X applications as files. To treat them as folders, integrate this SO answer:
allthesignals / group-by.js
Created Mar 26, 2016 — forked from arenoir/group-by.js
Ember group by computed macro
View group-by.js
import Ember from 'ember';
var get = Ember.get,
arrayComputed = Ember.arrayComputed;
export default function (dependentKey, property) {
var options = {
You can’t perform that action at this time.