Skip to content

Instantly share code, notes, and snippets.

View vinkrish's full-sized avatar
🎯
Focusing

Vinay Krishna vinkrish

🎯
Focusing
View GitHub Profile
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,
// 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 = () => {}

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!"

@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

"""
Creates readable text file from SRT file.
"""
import re, sys
import os
def clean_up(lines):
"""
Get rid of all non-text lines and
try to combine text broken into multiple lines

conda upgrade conda conda upgrade --all

conda install jupyter notebook

conda create -n env_name python=3.6
source activate env_name
@vinkrish
vinkrish / kafka.md
Last active November 1, 2019 07:02

How to download Kafka ?

curl "http://mirror.metrocast.net/apache/kafka/0.10.2.0/kafka_2.12-0.10.2.0.tgz" | tar xz

How to start a zookeeper ?

Windows:

airflow needs a home, ~/airflow is the default

export AIRFLOW_HOME=~/airflow

install from pypi using pip

pip install apache-airflow