Skip to content

Instantly share code, notes, and snippets.

View gptshubham595's full-sized avatar
:octocat:
Sorry, Important ones are Private.

Shubham gupta Ggps gptshubham595

:octocat:
Sorry, Important ones are Private.
View GitHub Profile
@gptshubham595
gptshubham595 / bank.sol
Created February 21, 2021 21:55
blockchain smart contract solidity file
pragma solidity 0.4.25;
contract Bank{
int bal;
constructor() public{
bal=1;
}
function getBal() view public returns(int){
@gptshubham595
gptshubham595 / index.html
Created February 21, 2021 21:59
index.html for blockchain smartcontract
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Page Title</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
</head>
<body>
<p id="balance"></p>
import mysql
import mysql.connector
import pickle
from tabulate import tabulate
mydb=mysql.connector.connect(user = 'root',
passwd = '',
host = 'localhost',
database = 'project',
)
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SoftwareSerial.h>
#include <SimpleTimer.h>
#include <Servo.h>
#include <TinyGPS++.h>
Servo servo1,servo2,servo3,servo4,servo5,servo6;
We can't make this file beautiful and searchable because it's too large.
index,budget,genres,homepage,id,keywords,original_language,original_title,overview,popularity,production_companies,production_countries,release_date,revenue,runtime,spoken_languages,status,tagline,title,vote_average,vote_count,cast,crew,director
0,237000000,Action Adventure Fantasy Science Fiction,http://www.avatarmovie.com/,19995,culture clash future space war space colony society,en,Avatar,"In the 22nd century, a paraplegic Marine is dispatched to the moon Pandora on a unique mission, but becomes torn between following orders and protecting an alien civilization.",150.437577,"[{""name"": ""Ingenious Film Partners"", ""id"": 289}, {""name"": ""Twentieth Century Fox Film Corporation"", ""id"": 306}, {""name"": ""Dune Entertainment"", ""id"": 444}, {""name"": ""Lightstorm Entertainment"", ""id"": 574}]","[{""iso_3166_1"": ""US"", ""name"": ""United States of America""}, {""iso_3166_1"": ""GB"", ""name"": ""United Kingdom""}]",2009-12-10,2787965087,162.0,"[{""iso_639_1"": ""en"", ""name"": ""English""}, {""iso_
import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics.pairwise import cosine_similarity as cos_sim
def get_title_from_index(index):
return df[df.index == index]["title"].values[0]
def get_index_from_title(title):
return df[df.title == title]["index"].values[0]
@gptshubham595
gptshubham595 / DISABLE_DEV_TOOLS.js
Last active August 11, 2022 13:06
DISABLE DEVELOPERS OPTION
! function(e, t) {
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).hotkeys = t()
}(this, (function() {
"use strict";
function e(t) {
return (e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
@gptshubham595
gptshubham595 / ERRORSOLVE.BAT
Created July 28, 2021 15:11
Windows 11 (10.0.22000.100) (KB5004300) CUMULATIVE ERROR RESOLVE (RUN AS ADMIN)
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*"
rmdir %systemroot%\SoftwareDistribution /S /Q
rmdir %systemroot%\system32\catroot2 /S /Q
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
cd /d %windir%\system32
@gptshubham595
gptshubham595 / transcript
Created July 28, 2021 15:21
IITG Transcript steps
https://www.iitg.ac.in/acad/cert/alumni_duplicate_transcript.php
Account details to pay 100 Rs
Now send mail back to transcript@iitg.ac.in
<blockquote class="imgur-embed-pub" lang="en" data-id="a/9ioyE4H" ><a href="//imgur.com/a/9ioyE4H">transcript iitg</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
@gptshubham595
gptshubham595 / Wordcounter.java
Created January 8, 2022 22:13
WordCounter Hadoop java
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;