Skip to content

Instantly share code, notes, and snippets.

View maikelmclauflin's full-sized avatar
🐢
buidl in progress

Michael McLaughlin maikelmclauflin

🐢
buidl in progress
View GitHub Profile

Keybase proof

I hereby claim:

  • I am maikelmclauflin on github.
  • I am mmclaughlin (https://keybase.io/mmclaughlin) on keybase.
  • I have a public key ASARhMB7dVuZgddMzzIBxgfuiIXVX7GoheZcbxTG5TKutQo

To claim this, I am signing this object:

@maikelmclauflin
maikelmclauflin / example.js
Last active October 15, 2018 20:42
pseudocode to show how sequelize might be used
// usage
// shared
const sequelize = new Sequelize(process.env.BAT_POSTGRES_URL, {
pool: {
max: 10,
min: 0,
acquire: 30000,
idle: 10000
}
})
@maikelmclauflin
maikelmclauflin / gist:187a9ebb31e959ba2e7a
Last active August 29, 2015 14:20
better requestAnimationFrame management
var now = Date.now || function () {
return new Date().getTime();
},
uniqueId = (function () {
var cache = {};
return function (prefix, isInt) {
var val;
if (!prefix) {
prefix = '';
}
body {
font-size:100%;
}
div div {
width:30em;
border:2px solid black;
}
img {