Skip to content

Instantly share code, notes, and snippets.

View melsoriano's full-sized avatar

Mellanie melsoriano

View GitHub Profile
@melsoriano
melsoriano / phaser3-cheatsheet.md
Last active January 21, 2020 00:49
Phaser 3 Cheatsheet

Phaser Cheatsheet

Creating a game config

const config = {
  type: Phaser.AUTO,
  width: 800,
  height: 600,
  scene: {
@melsoriano
melsoriano / change-default-java-version-mac.md
Last active January 16, 2020 00:51
Changing default Java version on Mac OS
  1. Verify the default Java version in terminal by running the command: java -version

  2. Download the appropriate JDK from Oracle website for Mac OS

  3. After installation completes, cd into /usr/libexec from a terminal window

  4. From the libexec directory, verify all installed Java versions by running the command: ./java_home -V

  5. Open your shell config file

  • zsh & vscode users, run: code ~/.zshrc
@melsoriano
melsoriano / System Design.md
Created August 2, 2019 19:34 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
version: "3.3"
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@melsoriano
melsoriano / keybase.md
Last active April 2, 2019 03:05
keybase proof

Keybase proof

I hereby claim:

  • I am melsoriano on github.
  • I am mellanie (https://keybase.io/mellanie) on keybase.
  • I have a public key ASD8b4X7QFQHL2oCfmmXVg2R5TVvdHANSFbczZwIoEiXPwo

To claim this, I am signing this object:

@melsoriano
melsoriano / AWS Deployment.md
Created February 15, 2019 08:41 — forked from lorecrafting/AWS Deployment.md
Nginx Certbot Reverse Proxy Docker-Compose deployment

GETTING ON YOUR SERVER

ssh ubuntu@{ip}
Enter yes to prompt

CREATE USER

sudo adduser {username} and follow prompts

SET SSH KEY FOR NEW USER

@melsoriano
melsoriano / README.md
Created April 7, 2018 03:00 — forked from jaywon/README.md
Memoize Me

##Memoize Me We are going to be building an in-memory cache to improve performance and extend the getElementById() and querySelector() functions of the DOM. Querying the DOM for elements can be an inefficient operation and if we are finding elements in the DOM repeatedly we would like to improve performance but we also don't want to clutter our codebase with many variables to hold references to the various elements we will use and to keep things a bit more dynamic.

##Your Challenge Write a module that anyone can add to their project and call your module's functions instead of the native DOM functions.

  1. Use good naming conventions for the module as well as the methods you're exposing. This is subjective to you but put yourself in someone elses shoes of what would make sense to them.
  2. Use memoization to cache elements if they have not been retrieved before from the DOM and return the element just as the above functions would do normally by calling them directly.
  3. If the element has been
h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
f activate link hints mode to open in current tab
F activate link hints mode to open in new tab
r reload
@melsoriano
melsoriano / devOps-digital-ocean.md
Created March 8, 2018 20:58 — forked from taesup/DO-deployment-for-devleague.md
DevOPS: Setting up a node server (basic)

DevOps

{username} = your username
{ip} = your DO droplet ip address
{repo} = your repo address
{email} = your email

DIGITAL OCEAN