Skip to content

Instantly share code, notes, and snippets.

@edwardsmarkf
edwardsmarkf / trails-sequelize-express-SQL
Last active November 1, 2017 22:08
trails-sequelize-express-SQL
Instructions For Creating a Working Trails-Sequelize-Express-Mariadb Environment
These instructions are written for the complete beginner who has never used trails before. I am starting out
with absolutely nothing, except a ten cent ($0.10) charge for a google-cloud virtual server.
With the exception of the "yo trails" command, this script could be ran as a complete script. My suggestion is to copy/paste
the top half, run "yo trails" manually, and run the bottom half as copy/paste.
Optionally, it may be more educational to run each command individually. YMMV.
@edwardsmarkf
edwardsmarkf / trails-sequelize-express-sqlLite.txt
Last active October 26, 2017 16:14
trails-sequelize-express-sqlLite
Instructions For Creating a Working Trails-Sequelize-Express-SqlList Environment
These instructions are written for the complete beginner who has never used trailsJS before. I am starting out
with absolutely nothing, except a ten cent ($0.10) charge for a google-cloud virtual server.
With the exception of the "yo" command, this script could be ran as a complete script. My suggestion is to copy/paste
the top half, run "yo" manually, and run the bottom half as copy/paste.
Optionally, it may be more educational to run each command individually. YMMV.
@edwardsmarkf
edwardsmarkf / deep-object-diff
Last active January 30, 2017 17:34
demonstration of deep-object-diff by matt phillipp
'use strict'
const diff = require('deep-object-diff').detailedDiff ; // thank you matt phillip.
const util = require('util') ;
var rhs = {}
var lhs =
[ { sequelizeName : 'Lori Edwards'
, sequelizeAddr : '948 South 3rd street'
, id : 123
'use strict'
const defaults = require('../defaults.js');
const dyncol = require('dyncol'); // added 2016-12-17
const events = require('events');
const pckg = require('../package.json');
const sequelize = require('sequelize'); // added 2016-12-17
const util = require('util');
const sql = require('mariasql');
<?php
require_once('vendor/autoload.php');
$stripe = array(
"secret_key" => "sk_test_jgji8VZWf90mcw4BBaO1YiMp",
"publishable_key" => "pk_test_Dmx9iBVuUizlpXIS1DsUtYNn"
);