Skip to content

Instantly share code, notes, and snippets.

View snapfast's full-sized avatar
🔥
Burning

Rahul Bali snapfast

🔥
Burning
View GitHub Profile
@snapfast
snapfast / main.js
Last active March 31, 2024 10:40
Select all comments to delete on instagram, then click delete button after running this
// allow pasting
// script is made for https://www.instagram.com/your_activity/interactions/comments page only
// var dd = document.getElementsByTagName('div');
// var ok1 = document.querySelectorAll('div[role=\'button\']');
// var ok = document.querySelectorAll('div[tabindex=\'0\']');
// console.log(ok.length);
@snapfast
snapfast / realme 9 pro plus - bloatware list
Last active August 12, 2022 08:23
realme 9 pro plus - bloatware list
# Follow process on this video: https://youtu.be/uz-GrWpIztg
# this is what I removed from my device as I don't use these services.
# Remove
com.coloros.childrenspace
com.coloros.filemanager
com.coloros.gallery3d
com.coloros.karaoke
class Node:
def __init__(self, val):
self.val = val
self.leftChild = None
self.rightChild = None
def get(self):
return self.val
def set(self, val):
// https://www.hackerrank.com/challenges/insertion-sort/problem
#include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the insertionSort function below.
int insertionSort(vector<int> arr) {
@snapfast
snapfast / youtube-dl-download-pluralsight.md
Created November 25, 2017 20:12 — forked from munim/youtube-dl-download-pluralsight.md
youtube-dl to download pluralsight videos

Download Plural Sight videos

Software required:

youtube-dl

After installation and putting the youtube-dl in PATH

youtube-dl \
@snapfast
snapfast / buyhouses_infosys.py
Last active October 7, 2017 09:27
buy houses infosys
"""
input string
3 2#2 5 6
out:
15
3 3#2 5 6
@snapfast
snapfast / thebali-bayes-iris.py
Created June 4, 2017 00:20
bayes classifier on iris dataset
from sklearn.naive_bayes import GaussianNB
import numpy as np
import pandas as pd
from csv import reader
filename = 'iris.data'
# url = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"
# for row in reader(open(filename)):
__author__ = 'Rahul Bali'
import string
from itertools import cycle
a = input()
i = 0
rot7=""
b = list(string.ascii_lowercase)
while i < len(a):
@snapfast
snapfast / ROT-7.py
Last active November 21, 2015 09:16
Rot 7 program in pyhton
__author__ = 'Rahul Bali'
import string
from itertools import cycle
a = input()
i = 0
rot7=""
b = list(string.ascii_lowercase)
while i < len(a):