Skip to content

Instantly share code, notes, and snippets.

View vijaydeepak-tt's full-sized avatar
💭
I may be slow to respond.

Vijay Deepak vijaydeepak-tt

💭
I may be slow to respond.
View GitHub Profile
String methods:
concat()
endsWith()
includes()
indexOf()
lastIndexOf()
repeat()
replace()
search()
@vijaydeepak-tt
vijaydeepak-tt / JavaScript libraries
Created February 12, 2020 16:14
A list of JavaScript libraries
Anime.js - https://animejs.com/
Howler.js - https://howlerjs.com/
Chart.js - https://www.chartjs.org/
Reveal.js - https://revealjs.com
Three.js - https://threejs.org/
Pixi.js - https://www.pixijs.com/
Video.js - https://videojs.com/
Step1: Push all codes to the git hub
Step2: Add "hompage": "https://username.github.io/repository-name" after the scripts object in the packet.json
Step3: Add basename="/repository-name" to the mainRouter element
Step4: In cmd run the command "npm run build" that it will create the production built file inside the project folder.
Step5: Again run the command "npm install --save-dev gh-pages" that is used to publish the project.
@vijaydeepak-tt
vijaydeepak-tt / Angular github publish
Created November 25, 2019 16:35
Angular github publish
Publishing Procedure:
Step1: Run "npm build --prod".
Step2: install ghpage for angular cli by running "npm i -g angular-cli-ghpages" in cmd.
Step3: push the complete code to the github repository.
Step4: run ng build --prod --base-href "https://USERNAME.github.io/REPOSITORY/" command.
@vijaydeepak-tt
vijaydeepak-tt / docker-help.md
Created October 5, 2019 11:13 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@vijaydeepak-tt
vijaydeepak-tt / django_crash_course.MD
Created October 1, 2019 16:01 — forked from bradtraversy/django_crash_course.MD
Commands for Django 2.x Crash Course

Django Crash Course Commands

# Install pipenv
pip install pipenv
# Create Venv
pipenv shell
sortArrObjects(
key: string,
order: string = 'asc',
isDate: boolean = false
) {
return (a, b) => {
if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
// if property doesn't exist on either object
return 0;
}
@vijaydeepak-tt
vijaydeepak-tt / node_nginx_ssl.md
Created September 23, 2019 14:16 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to Digital Ocean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

100+ Python challenging programming exercises
1. Level description
Level Description
Level 1 Beginner means someone who has just gone through an introductory Python course. He can solve some problems with 1 or 2 Python classes or functions. Normally, the answers could directly be found in the textbooks.
Level 2 Intermediate means someone who has just learned Python, but already has a relatively strong programming background from before. He should be able to solve problems which may involve 3 or 3 Python classes or functions. The answers cannot be directly be found in the textbooks.
Level 3 Advanced. He should use Python to solve more complex problem using more rich libraries functions and data structures and algorithms. He is supposed to solve the problem using several Python standard packages and advanced techniques.
2. Problem template
@vijaydeepak-tt
vijaydeepak-tt / AOT vs JIT Compiler
Created May 7, 2019 05:33
What Is the difference between JIT compiler and AOT compiler?
JIT (Just-in-Time) -
1. JIT compiles our app in the browser at run-time.
2. Compiles before running
3. Each file compiled separately
4. No need to build after changing our app code and it automatically reflects the changes in your browser page
5. Highly secure
6. Very suitable for local development
AOT (Ahead-of-Time) -
1. AOT compiles our app code at build time.