Skip to content

Instantly share code, notes, and snippets.

View cskiwi's full-sized avatar
🏠
Working from home

Glenn Latomme cskiwi

🏠
Working from home
View GitHub Profile
@belgattitude
belgattitude / ci-yarn-install.md
Last active May 1, 2024 09:31
Composite github action to improve CI time with yarn 3+ / node-modules linker.
@glennposadas
glennposadas / auto-migrate-sequelize-from-models.md
Created May 22, 2020 11:15
How to auto generate migrations with Sequelize CLI from Sequelize models?

Reference: https://stackoverflow.com/a/59021807/3231194

It's 2020 and many of these answers no longer apply to the Sequelize v4/v5 ecosystem.

The one good answer says to use sequelize-auto-migrations, but probably is not prescriptive enough to use in your project. So here's a bit more color...

Setup

My team uses a [fork of sequelize-auto-migrations][1] because the original repo is has not been merged a few critical PRs. [#56][2] [#57][3] [#58][4] [#59][5]

@servel333
servel333 / handlebars-operators.md
Created February 15, 2018 15:39
Handlebars {{#if (op ... )}} operators
@dhavaln
dhavaln / filesystem.js
Created June 8, 2012 08:51
PhoneGap Filesystem Example
/**
* Prepare the App Folder
*/
(function(){
window.appRootDirName = ".myapp";
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
console.log("device is ready");
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;