Skip to content

Instantly share code, notes, and snippets.

View sanvishal's full-sized avatar
☯️
messing around and finding out

Vishal TK sanvishal

☯️
messing around and finding out
View GitHub Profile
Hi 👋🏻
I guess everyone registered in geeksforgeeks.
Upcoming wednesday we are going to do both product development and coding. Learning while doing a project/product is the only way to learn anything faster.
Learn by doing whatever you like. Since this is our first activity, I chose a very simple game to make in C/C++
*Activity:*
Make a simple quiz game.
The program would ask questions. The user have to answer. The program should check if answer is correct or not.
*Bonus task:*
- make a grading system.
@sanvishal
sanvishal / save-file.py
Created June 22, 2018 09:55 — forked from keithweaver/save-file.py
Save JSON file with Python
import json
def writeToJSONFile(path, fileName, data):
filePathNameWExt = './' + path + '/' + fileName + '.json'
with open(filePathNameWExt, 'w') as fp:
json.dump(data, fp)
# Example
data = {}
#to parse the HTML
from bs4 import BeautifulSoup
#to make a headless chrome web browser
import selenium.webdriver as wb
from selenium.webdriver.chrome.options import Options
import sys
import time
#emoji is not supported in CLI so, convert it into boxes
translate_emoji = dict.fromkeys(range(0x10000, sys.maxunicode + 1), "\ufffd")
@sanvishal
sanvishal / GPA calculator.html
Created June 8, 2018 11:50
Anna university semester - 2(reg - 2017) GPA calculator
<!DOCTYPE html>
<html lang="en">
<head>
<title>GPA CALCULATOR</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
#FLAMES
print(' '+5*(u"\U0001F497 ")+'WELCOME TO FLAMES'+' '+5*(u"\U0001F497 ")+' ')
control = 1
while (control == 1):
print('\n')
n1 = input('Enter your name: '); n2 = input('Enter your dream partner name: ')
input_name1 = list(n1.lower().strip().split())
input_name2 = list(n2.lower().strip().split())
name1=[]
10 4
10 3.4
8 3.8
5 3.2
10 3.1
3 4
10 4
10 3.6
5 3
2.5 2.7
@sanvishal
sanvishal / ML.ipynb
Last active March 11, 2018 05:26
ML
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.