Skip to content

Instantly share code, notes, and snippets.

/* Ok, here are my summary notes for the different ways to create multiple instances of an Object.
1. class.create
2. constructor function with 'new'
3. Object.create
4. factory function
*/
// 1. ServiceNow class.create . *** object written using Pascal notation (first letter uppercase)

Class.create() ServiceNow based off of prototype.js

var Person = Class.create();
Person.prototype = {
    initialize: function(first, last) {
        this.first = first || 'Default';
        this.last = last || 'Default';
    },
@emyrold
emyrold / cloudSettings
Last active September 30, 2019 12:51
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-30T12:51:27.632Z","extensionVersion":"v3.4.3"}
version: '3.2'
services:
db:
# Specify the version of DB you want to run
image: mysql:5.7
volumes:
# TODO: create a directory "db_data" in the root folder of your installation
- db_data:/var/lib/mysql
restart: always
environment:
@emyrold
emyrold / Using Git to Manage a Live Web Site.md
Created December 22, 2018 00:22 — forked from Nilpo/Using Git to Manage a Live Web Site.md
Using Git to Manage a Live Web Site

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents