Skip to content

Instantly share code, notes, and snippets.

View alanphanth's full-sized avatar

someone who dev ⚡️ alanphanth

  • SUNSEEDER
  • Earth
View GitHub Profile
@alanphanth
alanphanth / Literals and properties
Created April 22, 2020 08:33
An object can be created with figure brackets {…} with an optional list of properties. A property is a “key: value” pair, where key is a string (also called a “property name”), and value can be anything.
let user = { // this is an object
name: "Alan",// by key "name" store value "Alan"
age: "27" // by key "age" store value 30
};
// ACCESS THE VALUES
user.name; //Alan
user.age; //27
@bradtraversy
bradtraversy / mysql_cheat_sheet.md
Last active November 3, 2025 04:54
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@delibytes
delibytes / react-cheatsheet.md
Last active February 19, 2024 18:06
React & JSX Cheatsheet

React & JSX Cheatsheet

Overview
JSX HTML <div>...</div>
JSX Component <Component property={javascript} />
<Component property='string' />
JSX Component with Children <Component>{children}</Component>
reference: props.children
Escaping JavaScript {...}
require statements const React = require('react');
const ReactDOM = require('react-dom');
npm modules react, react-dom
@itsmattsoria
itsmattsoria / gistfil1.textile
Last active September 27, 2025 02:49
Mac Terminal Cheat Sheet

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor