Skip to content

Instantly share code, notes, and snippets.

View mattborn's full-sized avatar
🥃
Slow and steady…

Matt Born mattborn

🥃
Slow and steady…
View GitHub Profile
@mattborn
mattborn / README.md
Last active September 26, 2022 22:44
simplemaps-worldcities.csv

Following in the footsteps of curran and mchoi2000 to keep an up-to-date version available.

This contains a few extra cities we needed for our project including:

  • Đà Nẵng, Vietnam
  • Hilo, Hawaii, USA
  • Krabi, Thailand
  • Whistler, British Columbia, Canada
  • Aspen, Colorado, USA
  • Zermatt, Switzerland
@mattborn
mattborn / index.html
Last active June 26, 2020 23:12
Pivot Prototype
<!doctype html>
<html>
<head>
<title>Pivot Prototype</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js"></script>
<script src="https://unpkg.com/moment"></script>
<script src="https://unpkg.com/@ag-grid-enterprise/all-modules/dist/ag-grid-enterprise.min.noStyle.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@ag-grid-community/all-modules/dist/styles/ag-grid.css">
<link rel="stylesheet" href="https://unpkg.com/@ag-grid-community/all-modules/dist/styles/ag-theme-alpine.css">
@mattborn
mattborn / index.html
Created February 3, 2020 23:04
Cycle through objects with keyboard trigger
<!doctype html>
<html>
<head>
<title>Rota</title>
</head>
<body>
<script src="Rota.js"></script>
</body>
</html>
@mattborn
mattborn / scrape.js
Created September 5, 2019 18:33
Scrape sportstats
// npm init -y && npm install node-fetch --save
const fetch = require('node-fetch')
const fs = require('fs')
for (let i = 0; i < 5; i++) {
fetch('https://www.sportstats.us/display-results.xhtml?raceid=105569', {
"credentials": "include",
"headers": {
"accept": "application/xml, text/xml, */*; q=0.01",
"accept-language": "en-US,en;q=0.9",
if (location.hostname.split('.')[1] !== 'artemishealth') {
alert('This bookmarklet only works on *.artemishealth.com')
} else {
console.log('Bookmarketlet ran', Date.now())
}
(() => {
const benchmarkColor = '#f68'
const menu = document.querySelector('.lib-metric-chooser-categories .component__group').cloneNode(true)
document.querySelector('.lib-metric-chooser-categories').insertBefore(menu, document.querySelector('.lib-metric-chooser-categories .component__group'))
@mattborn
mattborn / .gitignore
Last active January 22, 2019 22:38
grid.js
.DS_Store
@mattborn
mattborn / .gitignore
Created January 10, 2019 23:09
365 Day Array
.DS_Store
node_modules
@mattborn
mattborn / index.html
Last active February 5, 2019 23:37
Keen Pricing Tuner
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Keen Pricing Tuner</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<script src="https://unpkg.com/scrollreveal"></script>
</head>
<h1>Pricing Tuner</h1>
@mattborn
mattborn / gist:4581343bc8ff115d4f3a6664fc6f4358
Created November 18, 2018 21:53
After Effects Visual Beat — Adobe ExtendScript / Javascript
/* colors = ['#00ddcc','#66cc99','#ffcc00','#ff6666']; */
/* colors_rgb = [[0,221,204],[102,204,153],[255,204,0],[255,102,102]]; */
colors_rgba = [[0,0.866666666666667,0.8,1],[0.4,0.8,0.6,1],[1,0.8,0,1],[1,0.4,0.4,1]];
beats_per_minute = 150;
first_beat = 0;
frames_per_second = 1 / thisComp.frameDuration;
current_frame = (time * frames_per_second) - first_beat;
frames_per_beat = 60 * frames_per_second / beats_per_minute;
@mattborn
mattborn / .gistup
Created December 27, 2017 05:23
Sim w/ react-sketchapp
gistup