Skip to content

Instantly share code, notes, and snippets.

Michael Currie MichaelCurrie

Block or report user

Report or block MichaelCurrie

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
MichaelCurrie /
Last active Mar 14, 2018
Set up Git LFS for a new repo
# Instructions for Windows developers working on the Fling Unity Visualization Tool
# 1. Install the latest version of Unity
# 2. (NOT NEEDED) Install "SmartMerge" for Unity by following
# 3. Install GitHub Desktop
# 4. Install git-lfs
# 5. Get a GitHub developer account
# 6. Get invitated and accept the invitation to the fling-asia GitHub organization
# 7. Clone the fling-unity repository to your computer via the GitHub desktop app
# 8. Open the program in Unity
MichaelCurrie /
Created Mar 13, 2018
Use git-lfs on existing repository
# Install git-lfs
# (From
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
curl -s | sudo bash
sudo apt-get install git-lfs
git lfs install
# Add git-lfs to an existing repo
MichaelCurrie / wconviewer_standalone
Last active Feb 2, 2018
Run wconviewer standalone
View wconviewer_standalone
You can view WCON files at:
But until the HTML5 fix is in, you have to upload and then download the file, which is awkward. Instead:
1. Clone movement validation
2. Start -> Run -> cmd -> navigate to C:\Users\Fling\Documents\GitHub\movement_cloud\webworm
MichaelCurrie /
Created Jun 12, 2017 — forked from ThomasThoren/
Map distance scales

Example of how to create dynamic map distance scales.

MichaelCurrie / Dropzone with Python 3
Last active Dec 2, 2019
Drag-and-drop upload files, via JavaScript, to a simple Python 3 HTTP server
View Dropzone with Python 3
#Drag-and-drop upload files, via JavaScript, to a simple Python 3 HTTP server
MichaelCurrie / month_normalized_year_fraction.sql
Last active Feb 4, 2017
Years between dates, with "sticky" months
View month_normalized_year_fraction.sql
CREATE FUNCTION sandbox.MonthNormalizedYearDiff(@StartDate DATE, @EndDate DATE)
How many years are between 31 December 2015 and 31 January 2016, say? You could say
31 days in January / 366 days in the year 2016. But notice how if I then try to
"de-annualize" the resulting fraction, I can't multiply by 12, since 31/366 != 1/12.
View DonaldTrumpNetWorth2016.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
Asset,Type,Asset Value,Debt,Net Value,Change vs 2015,Change,Stake,Latitude,Longitude,Notes
Trump Tower (New York City),Office and retail,471,100,371,-159,Down,1,40.768277,-73.981455,Opened 1983
1290 Avenue of the Americas (New York City),Office and retail,2310,950,408,-62,Down,0.3,40.768277,-73.981455,
Niketown (New York City),Office and retail,400,10,390,-52,Down,1,40.768277,-73.981455,Ground lease through 2079
40 Wall Street (New York City),Office and retail,501,156,345,-28,Down,1,40.768277,-73.981455,
Trump Park Avenue (New York City),Residential and retail,191,14.3,176.7,-27,Down,1,40.768277,-73.981455,"49,564 sq. ft. of condos; 27,467 sq. ft. of retail"
Trump Parc/Trump Parc East (New York City),Residential and retail,88,0,88,17,Up,1,40.768277,-73.981455,"11,750 sq. ft. of condos; 14,963 sq. feet of retail; 13,108 sq. ft. of garage"
"Trump International Hotel and Tower, Central Park West (New York City)","Hotel, condos and retail",38,0,38,21,Up,1,40.768277,-73.981455,
"Trump World Tower, 845 United Natio
MichaelCurrie / split_bubbles_d3.html
Created Nov 4, 2016
Splitting bubbles using d3.js v4
View split_bubbles_d3.html
<!DOCTYPE html>
<meta charset="utf-8">
.button {
min-width: 130px;
padding: 4px 5px;
cursor: pointer;
text-align: center;
font-size: 13px;
border: 1px solid #e0e0e0;
MichaelCurrie /
Last active Nov 27, 2019
Connecting your local machine to an S3 bucket

Connecting your local machine to an S3 bucket

Steps to get a file on your local machine uploaded to an AWS S3 bucket, and then downloaded and used in an AWS EC2 Ubuntu Instance. (In this case we do the reverse, but the process is similar)


Get security credentials to be able to use the AWS command line utility:

MichaelCurrie /
Created Aug 7, 2016
Access GUI on Amazon Ubuntu instance
# Access GUI of machine
# 1. Install the Ubuntu Desktop we'll be connecting to
sudo apt-get update
sudo apt-get install -y ubuntu-desktop
# 2. Install a server that will allow remote machines to connect
sudo apt-get install -y x11vnc
# Configure the password for the server (alabaster)
You can’t perform that action at this time.