Skip to content

Instantly share code, notes, and snippets.

@ritwickdey
ritwickdey / Sorts.c
Last active November 29, 2017 07:02
Few Sorts in one place : Bubble Sort, Selection Sort, Insertion Sort, Marge Sort, Quick Sort, Heap Sort
/*
---------------------
Bubble Sort,
Selection Sort,
Insertion Sort,
Marge Sort,
Quick Sort,
Heap Sort
----------------------
*/
@ritwickdey
ritwickdey / AppletDemo.java
Last active November 25, 2017 03:41
Everything in one place - Applet Life Cycle, Parameter Passing ,Drawing, ButtonEvent, MouseEvent & DialogBox
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/*
<applet code="AppletDemo" width="320" height="320">
<param name="myName" value="ritwick dey"/>
</applet>
*/
function fun1() {
setTimeout(function () { //normal
console.log("normal (setTimeOut)", this);
}, 0);
}
function fun2() {
setTimeout(() => { //arrow
console.log("arrow (setTimeOut)", this);
}, 0);