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');

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)
-- Creating Schema
CREATE SCHEMA vcs;
SET SEARCH_PATH to vcs;
CREATE TABLE "user" (
uid INT NOT NULL UNIQUE,
login VARCHAR(20) NOT NULL,
type VARCHAR(20),
company VARCHAR(20),
name VARCHAR(50),
@aashutoshrathi
aashutoshrathi / foldermaker.py
Created May 10, 2018 09:41
Nothing needed Forever fixed.
import os
import time
folder = time.strftime("%Y") + " BHASKAR"
newpath = os.path.join('D:', folder, time.strftime("%B"), time.strftime("%d-%m-%Y"))
print(newpath)
if not os.path.exists(newpath):
os.makedirs(newpath)