Skip to content

Instantly share code, notes, and snippets.

View TheWebDevel's full-sized avatar
☁️
AWS & Chill

Sathish Kumar S TheWebDevel

☁️
AWS & Chill
View GitHub Profile
@TheWebDevel
TheWebDevel / Tree.js
Created October 31, 2020 14:21
A Tree implementation in Node JS.
class Node {
constructor(data, children = []) {
this.data = data;
this.children = children;
}
add(data) {
let node = new Node(data);
this.children.push(node);
}
@TheWebDevel
TheWebDevel / LinkedList.js
Created October 31, 2020 11:38
Implementation of linked list in Node JS
class Node {
constructor(data, next = null) {
this.data = data;
this.next = next;
}
}
class LinkedList {
constructor() {
this.head = null;
@TheWebDevel
TheWebDevel / settings.json
Created May 27, 2019 12:15
VS Code Setting
{
"workbench.colorTheme": "Material Theme",
"editor.lineHeight": 25,
"editor.letterSpacing": 0.5,
"workbench.startupEditor": "newUntitledFile",
"editor.rulers": [80],
"workbench.colorCustomizations": {
"editorRuler.foreground": "#ff4081"
},
"editor.tabSize": 2,
@TheWebDevel
TheWebDevel / .zshrc
Created April 20, 2019 03:48
My zshrc
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# Load Nerd Fonts with Powerlevel9k theme for Zsh
POWERLEVEL9K_MODE='nerdfont-complete'
source ~/powerlevel9k/powerlevel9k.zsh-theme
# Customise the Powerlevel9k prompts
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(ssh dir vcs newline status)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
@TheWebDevel
TheWebDevel / vscode-updater.sh
Last active January 11, 2021 16:07
A shell script to update VS Code on Ubuntu
# Download the latest stable version of VS Code and store it in a temporary location
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb
# Now, install the newly downloaded VS Code
sudo dpkg -i /tmp/code_latest_amd64.deb