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 / mkdocs.md
Last active February 22, 2019 21:30

pip install mkdocs
mkdocs new my-project
mkdocs serve
mkdocs build
mkdocs gh-deploy

To use Material

pip install mkdocs-material

Add this in mkdocs.yml

Inline Link

[Search for it.](www.google.com)    ->    Search for it.

Divider

---

Blockquote

> "Her eyes had called him and his soul had leaped at the call. To live, to err, to fall, to triumph, to recreate life out of life!"

"Her eyes had called him and his soul had leaped at the call. To live, to err, to fall, to triumph, to recreate life out of life!"

// Named import
// ex. importing a single named export
import { MyComponent } from "./MyComponent";
// ex. importing multiple named exports
import { MyComponent, MyComponent2 } from "./MyComponent";
// ex. giving a named import a different name by using "as":
import { MyComponent2 as MyNewComponent } from "./MyComponent";
// exports from ./MyComponent.js file
export const MyComponent = () => {}
// For example (functions.js):
module.exports = {
func1,
func2
}
// is included in your file:
const { func1, func2 } = require('./functions')
// Now you can call them individually,
cd C:\Program Files\PostgreSQL\11\bin
createuser -U postgres -s YOURUSERNAME
createdb YOURUSERNAME
query TestQuery {
graphQLHub
github {
user(username:"vinkrish") {
id
company
avatar_url
repos {
name
}
# Comment
{
graphQLHub
github {
// Object Field
user(username: "clayallsopp") { // username is Field arguments
login // Scalar Field
id
avatar_url
}
#
# 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
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
PascalCase
camelCase.
snake_case.
lisp-case (or) spinal-case (or) train-case (or) kebab case: some-name.