Skip to content

Instantly share code, notes, and snippets.

View vinkrish's full-sized avatar
🎯
Focusing

Vinay Krishna vinkrish

🎯
Focusing
View GitHub Profile
@vinkrish
vinkrish / System Design.md
Created May 14, 2018 05:35 — 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?
>git help
usage: git [--version] [--help] [-C <path>] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
These are common Git commands used in various situations:
start a working area (see also: git help tutorial)
Android Studio:
Ctrl + Alt + L
Ctrl + Alt + I
Eclipse:
Ctrl + I
Ctrl + Shift + F
Sublime:
HTML / CSS / JS : Ctrl + Shift + H
PascalCase
camelCase.
snake_case.
lisp-case (or) spinal-case (or) train-case (or) kebab case: some-name.
npm update -g typescript
tsc -v
To check app version:
ng -v
npm install -g @angular/cli
ng new first-app
cd first-app
ng serve --open
#
# Contents
#
# 1. JSON Documents
# 2. CRUD - Create / Read / Update / Delete
# a. Create
# - Different ways to insert/create an index
# - Bulk indexing documents
# b. Read
# - Basic searches
# Comment
{
graphQLHub
github {
// Object Field
user(username: "clayallsopp") { // username is Field arguments
login // Scalar Field
id
avatar_url
}
query TestQuery {
graphQLHub
github {
user(username:"vinkrish") {
id
company
avatar_url
repos {
name
}
cd C:\Program Files\PostgreSQL\11\bin
createuser -U postgres -s YOURUSERNAME
createdb YOURUSERNAME
// For example (functions.js):
module.exports = {
func1,
func2
}
// is included in your file:
const { func1, func2 } = require('./functions')
// Now you can call them individually,