Skip to content

Instantly share code, notes, and snippets.

View donpinkus's full-sized avatar

Don Pinkus donpinkus

View GitHub Profile
@donpinkus
donpinkus / SassMeister-input-HTML.html
Created June 21, 2014 19:21
Generated by SassMeister.com.
<div id="susyContainer">
<div id="susyOffset">
</div>
</div>
@donpinkus
donpinkus / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@donpinkus
donpinkus / coin_flip.lua
Created September 22, 2014 18:11
# airscript
-- Sample script to make an HTTP request with query parameters
local response = http.request {
url = 'http://www.random.org/integers/',
params = {
num=1, min=0, max=1, format='plain',
rnd='new', col=1, base=10
}
}
if tonumber(response.content) == 0 then
return 'heads'
var cvpHandlers = {
canvasClickHandler: null,
videoTimeUpdateHandler: null,
videoCanPlayHandler: null,
windowResizeHandler: null
};
var CanvasVideoPlayer = function(options) {
var i;
@donpinkus
donpinkus / .block
Created January 31, 2017 04:33
Force-Directed Graph
license: gpl-3.0
height: 600
@donpinkus
donpinkus / .block
Created February 6, 2017 19:11
Chord Diagram
license: gpl-3.0
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
@donpinkus
donpinkus / sequelize.md
Created November 8, 2019 20:20
Sequelize migration docs

Creating a model from scratch

  1. How do you create a migration for a new model? $ sequelize model:create --name User --attributes "email:string, password:string"

  2. How do you create a migration for a new model with an association? Run step 1, then add it yourself.

Updating a model

  1. How do you create a migration for an existing model? $ sequelize migration:generate --name doSomeThingsHere