Skip to content

Instantly share code, notes, and snippets.

View Parassharmaa's full-sized avatar
🎯
Focusing

Paras Sharma Parassharmaa

🎯
Focusing
View GitHub Profile
@Parassharmaa
Parassharmaa / link_list.cpp
Created September 2, 2016 20:15
Implementation of LinkedList in C++
@Parassharmaa
Parassharmaa / rand_pass.py
Created September 10, 2016 16:34
python program to generate random passwords
import random as rand
def rand_char():
c = chr(rand.randrange(97,122))
return c
n = int(input("Enter length of pass:"))
for _ in range(5):
for __ in range(n):
@Parassharmaa
Parassharmaa / rand_password.cpp
Last active November 14, 2016 04:41
Cpp program to generate random password
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
char rand_char();
int main() {
srand((int) time(0));
int n;
@Parassharmaa
Parassharmaa / class1.html
Created September 21, 2016 12:27
basic html tags
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta lang="en-us">
<title>Abc</title>
</head>
<body>
<b>I am bold</b><hr>
<i>I am italic</i><hr>
@Parassharmaa
Parassharmaa / data.json
Created September 24, 2016 15:22
varaanasi data-sets
[
{
"actual population": {
"2001": "31,38,671",
"2003": "32,95,481",
"2005": "33,88,742",
"2007": "34,53,219",
"2009": "35,88,213",
"2011": "36,76,841"
},
@Parassharmaa
Parassharmaa / class2.html
Last active September 26, 2016 13:51
Forms Tags
<html>
<head>
<title>Forms</title>
</head>
<body>
<form type="" action="">
<input type = "text" placeholder="First Name" name="firstname" required><br>
<input type = "text" placeholder="Middle Name" name="middlename" required><br>
<input type = "text" placeholder="last Name" name="lastname" required><br>
<input type="password" placeholder="Password"><br>
@Parassharmaa
Parassharmaa / stack.cpp
Created October 4, 2016 18:08
stack implementation via linked_list
#include <iostream>
#include <cstring>
using namespace std;
struct node {
int info;
node * next;
}*start;
@Parassharmaa
Parassharmaa / queue.cpp
Last active October 5, 2016 02:56
Queue implementation via dynamic array.
#include <iostream>
using namespace std;
class queue {
int *arr;
int f,r, max;
public:
queue(int n) {
@Parassharmaa
Parassharmaa / stack_.cpp
Created October 5, 2016 02:50
Stack implementation via dynamic array
#include <iostream>
#include <cstring>
using namespace std;
class stack {
int top;
int size;
int *arr;
@Parassharmaa
Parassharmaa / string_divide.py
Last active October 13, 2016 20:04
python program to divide string in equal sub-string and print in sorted form.
def mul(s):
l = len(s)
for i in range(2, l):
if l%i==0:
return(i)
break
else:
return 1
s = input("Input String:")