Skip to content

Instantly share code, notes, and snippets.

View sunil-sangwan's full-sized avatar
:octocat:

Sunil Sangwan sunil-sangwan

:octocat:
View GitHub Profile
#learned from online resource
import csv
import random,math,operator
def loadDataset(filename,split,trainingset=[],testset=[]):
with open(filename,"rt", encoding='utf8') as csvfile:
lines = csv.reader(csvfile)
#for row in lines:
# print(" ".join(row))
dataset = list(lines)
for x in range(len(dataset)-1):
"""
A python script to change automatically desktop background
You must have install feh in system ("sudo apt-get install feh")
this script is just for fun . If anyone have issue ping me
last work is to set is a cron job
"""
import requests
@sunil-sangwan
sunil-sangwan / downloadKekaPayslips.js
Last active June 18, 2021 03:57 — forked from rheaditi/downloadKekaPayslips.js
Download all Payslips from Keka HR Software
/**
* This puppeteer script will automatically download all payslips for you, if your company uses Keka HR Software.
* I downloaded about 4 years of payslips in approximately 2 minutes! :P
*
* - Download this file and save it in some temporary directory.
* - Fill in the params wherever you see the ℹ️ in this file & save.
* - Install the dependency `puppeteer-core` (just run `npm init` and `npm install --save puppeteer-core@2` in your directory).
* - Requires NodeJS >= 12 (tested with v12.13.1), puppeteer-core@2 & Google Chrome browser.
* - Run: `node downloadPayslips.js`
* - The files are all saved to the browser's default download folder.