Skip to content

Instantly share code, notes, and snippets.

View adtjha's full-sized avatar
🏠
Working from home

Aditya Jha adtjha

🏠
Working from home
View GitHub Profile
@adtjha
adtjha / HSL_color.json
Last active August 30, 2021 13:25
Combine values to get a soothable hsl code.
{
"hue": [0, 50, 100, 200, 250, 300, 350],
"saturation": [20, 40, 50, 60, 80],
"brightness": [30, 60, 70, 90, 100]
}
@adtjha
adtjha / particles.json
Last active January 23, 2018 09:31
Particles data for particle.js
{
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {

Who am I ?

I am an engineering student, an Indian by birth. In terms of academics, I am an average student and there's a reason behind...

What's the reason ?

I do no find the time to focus on my academics.

So, where do I spend most of time ?
@adtjha
adtjha / filter.js
Last active December 18, 2017 15:16
Created a gist for filtering the most traded stocks according to their price.
//Works only on "http://money.rediff.com/companies/most-traded/nse"
//Used for filtering stocks according to the current price.
var array = document.querySelector('.dataTable').children[1].children.length; //All the stocks displayed on the webpage.
var lowerLimit = 100;
var upperLimit = 200;
for (var i = 0; i < array; i++) {
@adtjha
adtjha / parseToIndianCurrency.js
Created November 13, 2017 04:32
Parse any number into its indian rupees format.
function parse(n) {
var rounded= Math.round(n);
var value = rounded.toString();
console.log(rounded, value, value.length);
var number = [];
var c=1;
var num = '';
for (var i = 0; i < value.length; i++) {
number[i] = value.charAt(i);
if (i==0) {