Skip to content

Instantly share code, notes, and snippets.


pjstein pjstein

View GitHub Profile
pjstein /
Last active Apr 29, 2020 — forked from anniejw6/
MFA for the AWS cli
#!/usr/bin/env bash
echo "We've set your credentials in this shell"
echo "Generated at: '${EPHEMERAL_TOKEN_GENERATED_AT}'"
echo "These credentials are valid for *12 hours*"
pjstein /
Created Oct 30, 2018 — forked from rxwei/
First-Class Automatic Differentiation in Swift: A Manifesto

First-Class Automatic Differentiation in Swift: A Manifesto

This document is written for both the machine learning community and the Swift programming language design community, with a strong focus on language design.

Table of Contents

pjstein /
Created Aug 22, 2018 — forked from johnhw/
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
import random
pjstein / easing.js
Created Feb 21, 2018 — forked from gre/easing.js
Simple Easing Functions in Javascript - see
View easing.js
* Easing Functions - inspired from
* only considering the t value for the range [0, 1] => [0, 1]
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity