Skip to content

Instantly share code, notes, and snippets.

View aashutoshrathi's full-sized avatar
👨‍💻
Baking Code

Aashutosh Rathi aashutoshrathi

👨‍💻
Baking Code
View GitHub Profile
### Keybase proof
I hereby claim:
* I am aashutoshrathi on github.
* I am aashutoshrathi (https://keybase.io/aashutoshrathi) on keybase.
* I have a public key ASDGWvq1tKFb8sfxSc9LoPVvPkFLAspKRvF_CnPMUgMWeAo
To claim this, I am signing this object:
@aashutoshrathi
aashutoshrathi / gist:8f4bfee861a7123f5d32e142ac634111
Created November 20, 2017 14:52
coafile output iiitv/algos
[WARNING][20:20:46] Implicit 'Default' section inheritance is deprecated. It will be removed soon. To silence this warning remove settings in the 'Default' section from your coafile. You can use dots to specify inheritance: the section 'all.python' will inherit all settings from 'all'.
Executing section Python Spacing...
Executing section Golint...
[ERROR][20:20:59] The bear GoLintBear does not fulfill all requirements. 'golint' is not installed.
Executing section Gofmt...
Executing section pep8...
Executing section haskell...
[WARNING][20:21:14] No files matching 'C:\Users\Aashutosh Rathi\Documents\Github\algos\**\*.hs' were found.
[ERROR][20:21:14] The bear HaskellLintBear does not fulfill all requirements. 'hlint' is not installed.
Executing section hlint...
$ coala --ci
[WARNING][11:20:25] Implicit 'Default' section inheritance is deprecated. It will be removed soon. To silence this warning remove settings in the 'Default' section from your coafile. You can use dots to specify inheritance: the section 'all.python' will inherit all settings from 'all'.
Executing section Python Spacing...
Executing section Golint...
Executing section Gofmt...
Executing section pep8...
Executing section haskell...
[WARNING][11:20:28] No files matching '/home/travis/build/iiitv/algos/**/*.hs' were found.
Executing section hlint...
[WARNING][11:20:29] No files matching '/home/travis/build/iiitv/algos/**/*.hs' were found.
@aashutoshrathi
aashutoshrathi / didYouMean.js
Last active December 26, 2017 11:50
Get the Google's Did you mean text using console.
// one way searching through italics tag
x = document.getElementsByTagName('i');
x[0].innerText // ==> it will give you correct output
// searching through class
x = document.getElementsByClassName('spell');
x[1].children[0].textContent // ==> it will give same result too.
// This works for links like https://www.google.co.in/search?q=summr
// Gives an output summer
@aashutoshrathi
aashutoshrathi / today-contri.js
Created December 31, 2017 17:38
Get today's contribution through console.
var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
x = document.getElementsByTagName('rect');
for(let i = 0; i<x.length; i++) {
if(x[i].getAttribute('data-date') === date) {
console.log(x[i].getAttribute('data-count'));
}
}
@aashutoshrathi
aashutoshrathi / hackTypeRacer.js
Created January 1, 2018 15:07
Hack Typeracer without it even detecting it.
function wait(ms) {
var d = new Date();
var d2 = null;
do { d2 = new Date(); }
while(d2-d < ms);
}
function hackIt() {
speed = 100; // in wpm
inp = document.getElementsByTagName('input');
@aashutoshrathi
aashutoshrathi / Sublime Text 3.x (after Build 3155) Keys.txt
Created January 16, 2018 19:13
Sublime Text 3.x (after Build 3155) Keys
Sublime Text 3.x (after Build 3155)
—– BEGIN LICENSE —–
eldon
Single User License
EA7E-1122628
C0360740 20724B8A 30420C09 6D7E046F
3F5D5FBB 17EF95DA 2BA7BB27 CCB14947
27A316BE 8BCF4BC0 252FB8FF FD97DF71
B11A1DA9 F7119CA0 31984BB9 7D71700C
2C728BF8 B952E5F5 B941FF64 6D7979DA

CodeHeat

CODEHEAT 2017 Work - Aashutosh Rathi

Projects

@aashutoshrathi
aashutoshrathi / theme
Created February 4, 2018 10:25 — forked from Himanshu-Mishr/theme
126 Themes for Terminal (Elementary OS)
#!/bin/bash
# Download it.
# Name it as 'theme'
# Place it in /usr/bin/
# shell_prompt$ theme
echo '
3024 Day ( 1) 3024 Night ( 2) AdventureTime ( 3)
Afterglow ( 4) AlienBlood ( 5) Argonaut ( 6)
Arthur ( 7) Atom ( 8) Belafonte Day ( 9)
Belafonte Night ( 10) BirdsOfParadise ( 11) Blazer ( 12)
@aashutoshrathi
aashutoshrathi / masteranime.js
Last active December 28, 2020 11:21
Download videos from Masterani.me
// [UPDATE] New link https://masteranime.es/masterani.me protects with two layers.
// 1. Go to the video page and then paste the following script on console
document.querySelector('iframe').src
// click on the output link
// 2. The new window will open, open dev tools here and paste this in devtools
document.querySelector("video").src
// 3. Now go to link and press Ctrl + S