Skip to content

Instantly share code, notes, and snippets.

View tejas-kr's full-sized avatar
🐢
Learning slowly but thoroughly now !

Tejas Kumar Jaiswal tejas-kr

🐢
Learning slowly but thoroughly now !
  • /home/tejas
View GitHub Profile
@tejas-kr
tejas-kr / tejas.cpp
Created May 8, 2016 11:09
this is my college project I am sharing i want to add a log in feature in this... please help me out
#include<graphics.h>
#include<fstream.h>
#include<conio.h>
#include<process.h>
#include<stdio.h>
#include<string.h>
class student
{
char fname[15],mname[15]; //father name & mother name
int rollno,admin_no,dd,mm,yy; //roll number,Admission no, date,Month,Year
@tejas-kr
tejas-kr / CodingInterviewImportants.txt
Created July 22, 2017 17:32
What are the most important data structure and algorithms to prepare for coding Interviews?
Stick to Basics. I would classify the following data structures as **must know**
Linked List - Single and Doubly
Stack
Queues
Binary Search Trees or general Binary Tree
Heaps
Basic Graph Traversal and Shortest Path
Hashing
@tejas-kr
tejas-kr / CodingInterviewImportants.txt
Last active July 22, 2017 17:39
What are the most important data structure and algorithms to prepare for coding Interviews?
Stick to Basics. I would classify the following data structures as **must know**
Linked List - Single and Doubly
Stack
Queues
Binary Search Trees or general Binary Tree
Heaps
Basic Graph Traversal and Shortest Path
Hashing
# Command line based image viewer
# made purely with python 2.7
from PIL import Image
from sys import argv
img = Image.open(argv[1])
img.show()
# Wondoers in Just 4 lines of code.
@tejas-kr
tejas-kr / revision.java
Created March 13, 2018 05:34 — forked from danielpaul/revision.java
Basic Java Revision Notes - Written in Java
/*
*
* / --------------------------------[ NUIM CS141 Java Revision ]------------------------------- \
* || Designed to easily revise everything covered in CS141 by just reading through this code. ||
* || Comments accompany almost every line of code to explain its purpose. ||
* || Some theory we need to know are included in the bottom... ||
* \ ------------------------------------------------------------------------------------------- /
*
*
* ____ _ __ ____ __
@tejas-kr
tejas-kr / typing_and_floating_text.js
Created April 21, 2018 06:05
javascript animation to make a typing text effect and a floating text effect.
// keep the code neat...
(function() {
var i = 0;
var txt = 'Tejas Jaiswal'; /* The text */
var speed = 200; /* The speed/duration of the effect in milliseconds */
function typeWriter() {
// console.log('teff');
if (i < txt.length) {
document.getElementById("demo12").innerHTML += txt.charAt(i);
i++;
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1526886570" LAST_MODIFIED="1528349593" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3>
<DL><p>
{
'jquery file upload' : 'https://blueimp.github.io/jQuery-File-Upload/index.html'
}
@tejas-kr
tejas-kr / check_jquery_load.js
Last active April 23, 2021 04:40
Javascript code to check if jquery is loaded in the page
/**
* This code is very helpful for people who forget things easily
*/
window.onload = function() {
if (window.jQuery) {
alert('jQuery loaded!');
} else {
alert('jQuery not loaded!');
}
@tejas-kr
tejas-kr / text_processing.py
Created April 23, 2021 05:05
text processing for nlp tasks (using nltk) [for spacy i will create soon]
from nltk.corpus import stopwords
import string
def text_process(text):
nopunc = [char for char in text if char not in string.punctuation]
nopunc = ''.join(nopunc)
return [word for word in nopunc.split() if word.lower() not in stopwords.words('english')]