Skip to content

Instantly share code, notes, and snippets.

View willbreitkreutz's full-sized avatar
🏠
Working from home

Will Breitkreutz willbreitkreutz

🏠
Working from home
  • U.S. Army Corps of Engineers
  • Kansas City, MO
View GitHub Profile
@willbreitkreutz
willbreitkreutz / nsi_structures.geojson
Created February 25, 2014 16:57 — forked from anonymous/nsi_structures.geojson
Layer exported from QGIS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willbreitkreutz
willbreitkreutz / station-convert.js
Last active August 29, 2015 13:57
Convert between linear referenced M values and Station Values given conversion locations as an array.
var toStation = function(m,calib,fmt){
var retValue;
var r = null;
if(m < calib[0][0] || m > calib[calib.length-1][0]){
return 'm is out of bounds, valid range is ' + calib[0][0] + ' to ' + calib[calib.length-1][0];
}
for(var i = 0; i < calib.length; i++){
if(m >= calib[i][0] && m < calib[i+1][0]){
r = ((m - calib[i][0]) / (calib[i+1][0] - calib[i][0]) * (calib[i+1][1] - calib[i][1])) + calib[i][1];
break;
@willbreitkreutz
willbreitkreutz / sortCCW
Created April 30, 2014 12:52
Given an array of [x,y], sort the array in counter clockwise order, or specify ccw=false to sort in clockwise order.
var sortCCW = function(points,ccw){
//find the centroid or average of the points
var avg = [];
var x = 0;
var y = 0;
for (var i = 0; i < points.length; i++){
x = x + Number(points[i][0]);
y = y + Number(points[i][1]);
}
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management

Text-Based Clock

A simple text-based clock that can be used as a Mac OSX Dashboard Widget

How to make the widget

  1. Clone this gist or click "Download Gist" on the right and extract the archive
  2. Copy the folder and its contents to somewhere 'safe' (i.e., where you won't delete it)
  3. Double click index.html to open the webpage in Safari
  4. Click the 'File' menu, then click 'Open in Dashboard...'
  5. Your screen will dim, and you can select the area you want to display in the widget
@willbreitkreutz
willbreitkreutz / keybase.md
Created September 23, 2014 21:50
keybase proof

Keybase proof

I hereby claim:

  • I am willbreitkreutz on github.
  • I am willbreitkreutz (https://keybase.io/willbreitkreutz) on keybase.
  • I have a public key whose fingerprint is C09F 64B9 83A9 E6F2 B0F8 6885 3C14 DDF4 9436 FCB0

To claim this, I am signing this object:

@willbreitkreutz
willbreitkreutz / imports.json
Last active August 29, 2015 14:25 — forked from mbostock/.block
Hierarchical Edge Bundling
[{"name":"RADS II","size":1000,"imports":["Risk Tools","MMC ProjectWise","DSMMCX ProjectWise","Comment Database","EPPs","State of Levees Report"]},
{"name":"PM Tools","size":1000,"imports":["NLD","Bridge Tools","Schedule Database","DSPMT","Funding Request","Schedule Database"]},
{"name":"Bridge Tools","size":1000,"imports":["Risk Tools","NLD"]},
{"name":"Risk Tools","size":1000,"imports":["Bridge Tools","NLD"]},
{"name":"Dashboard","size":1000,"imports":["PM Tools","Bridge Tools","Risk Tools","LIS","Event Registration","MCRAM","Status Map","Funding Request","LSIP","Comment Database","MMC Data Viewer","SimDams"]},
{"name":"LIS","size":1000,"imports":["NLD","Levee Performance Data","Freeboard"]},
{"name":"NLD","size":1000,"imports":["LIS","LST","NSI","Levee Performance Data","Freeboard","Event Management Tools"]},
{"name":"LST","size":1000,"imports":["Risk Tools","LIS","NLD","NSI","Levee Performance Data","Freeboard"]},
{"name":"MCRAM","size":1000,"imports":["NSI"]},
{"name":"Event Registration","size":2000,"im
@willbreitkreutz
willbreitkreutz / map.geojson
Last active May 2, 2016 18:50 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

To get Node.js and NPM running on Windows without admin rights.

These are the steps that worked for me, no guarantees for anyone else... That said, this should work for most cases.

Node.js - We want version v10.15.3 (as of 3/15/2019)

  1. Go to the Node.js downloads page
  2. Click on Other Downloads, DO NOT DOWNLOAD THE INSTALLER. Download the binary zip for your operating system, for Windows grab the Windows Binary matching your 32 or 64 bit system.
  3. Extract the zip file to an easy place to remember on your system, I use C:\Node
  4. Open the "Edit Environment Variables for Your Account" tool by searching for the term "env" in the search bar next to your start button.