Skip to content

Instantly share code, notes, and snippets.

View jwalgran's full-sized avatar

Justin Walgran jwalgran

  • Element 84
  • Phoenix, Arizona, USA
View GitHub Profile
@mjumbewu
mjumbewu / 1-hexgrid_illustration.svg
Last active October 27, 2024 07:01
PostGIS function to generate a grid of hexagonal cells in a PostgreSQL database
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajadain
rajadain / unstable-warner.js
Last active November 15, 2017 02:01
GitHub Pull Request Unstable Warner Tampermonkey Script
// ==UserScript==
// @name Unstable Warner
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Warn before merging unstable pull requests on GitHub
// @author Terence Tuhinanshu @rajadain
// @match https://github.com/**/pull/*
// @grant none
// ==/UserScript==
@jwalgran
jwalgran / waffle-io-queue-and-in-progress.js
Last active May 31, 2018 20:45
Format the third and fourth columns of a waffle.io board as tab-separated text
// 1. Browse a waffle.io board where "Queue" and "In Progres" are the 2nd and 3rd columns.
// 2. Run this code in the developer console.
// 3. Copy the tab-separated data and paste into your spreadsheet of choice.
// Thanks to https://github.com/rajadain for the initial implementation
var rows = [];
$('#page > div > div.ng-scope > div > ui-view > div > div.board.js-board > span.ng-scope > div.board-body > div > div:nth-child(3) .card,#page > div > div.ng-scope > div > ui-view > div > div.board.js-board > span.ng-scope > div.board-body > div > div:nth-child(4) .card').each(function() {
var card = $(this),
url = card.attr('data-waffle-url').replace('api.github.com/repos', 'github.com'),