Skip to content

Instantly share code, notes, and snippets.

@amreshk005
amreshk005 / singlyLinkedList.js
Created March 29, 2021 03:29 — forked from Giagnus64/singlyLinkedList.js
Singly Linked List implementation
class Node {
constructor(value) {
this.value = value;
this.next = null;
}
}
// linkedlist class
class SinglyLinkedList {
constructor() {
@amreshk005
amreshk005 / node_nginx_ssl.md
Created February 8, 2020 16:21 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean 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

@amreshk005
amreshk005 / index.html
Created August 20, 2019 17:51
javascript-css-clock
<div class="clock">
<div class="hourHand"></div>
<div class="minuteHand"></div>
<div class="secondHand"></div>
<div class="center"></div>
<div class="time"></div>
<ul>
<li><span>1</span></li>
<li><span>2</span></li>
<li><span>3</span></li>