Skip to content

Instantly share code, notes, and snippets.

@abhi9bakshi
abhi9bakshi / kite.js
Created October 1, 2019 11:13
Generate Kite
__SIZE__ = 125;
function getKite(size) {
for(let i=0; i<size; i++){
let width = 0;
let str = '';
let symbol = '';
let space = 0;
@abhi9bakshi
abhi9bakshi / react_redux.md
Last active March 15, 2019 07:48
React Redux

To use redux, we must first import it

const redux = require('redux');

In redux we have a central store to store data

const data = {
  counter: 0
}
@abhi9bakshi
abhi9bakshi / Docker_Crash_Course.md
Last active February 27, 2019 07:22
Learn how to develop and deploy web applications with Docker technologies. Take your DevOps skills to the next level.

Run a container

docker run <container-name>

List all containers

docker ps -a
@abhi9bakshi
abhi9bakshi / javascript_timer_web_worker_async_function.js
Created July 20, 2018 05:14
Javascript Timer using Web Worker (Async Function)
// index.html
<p id="timer">
00:00:00
</p>
<button onClick="hangTheBrowser()">
Hang the browser
</button>
<p id="message">Your message here</p>
@abhi9bakshi
abhi9bakshi / javascript_timer_web_worker_async_timer.js
Last active July 19, 2018 20:31
Javascript Timer using Web Worker (Async Timer)
// index.html
<p id="timer">
00:00:00
</p>
<button onClick="hangTheBrowser()">
Hang the browser
</button>
/* ---- */
@abhi9bakshi
abhi9bakshi / javascript_timer_request_animation_frame.js
Last active July 20, 2018 05:31
Javascript Timer using Request Animation Frame
// index.html
<p id="timer">
00:00:00
</p>
<button onClick="hangTheBrowser()">
Hang the browser
</button>
// script.js
@abhi9bakshi
abhi9bakshi / javascript_timer_date.js
Last active July 20, 2018 05:30
Javascript Timer using Date method
// index.html
<p id="timer">
00:00:00
</p>
<button onClick="hangTheBrowser()">
Hang the browser
</button>
// script.js
@abhi9bakshi
abhi9bakshi / javascript_timer_hang.js
Last active July 20, 2018 05:29
Simple Javascript Timer with Browser Hang Feature
// index.html
<p id="timer">
00:00:00
</p>
<button onClick="hangTheBrowser()">
Hang the browser
</button>
// script.js
@abhi9bakshi
abhi9bakshi / javascript_timer.js
Last active July 20, 2018 05:30
Simple Javascript countdown timer
// index.html
<p id="timer">
00:00:00
</p>
// script.js
let count = 0;
let intervalRef = null;
intervalRef = setInterval(_ => {

Introduction

========================