Skip to content

Instantly share code, notes, and snippets.

View NithishKolli's full-sized avatar

Nithish NithishKolli

View GitHub Profile
@NithishKolli
NithishKolli / flask_test.py
Last active October 11, 2018 10:30
flask.py
from datetime import datetime
from flask import Flask, render_template, url_for, flash, redirect
from flask_sqlalchemy import SQLAlchemy
# from sqlalchemy import Column
from sqlalchemy import Integer
# from sqlalchemy import String
#from forms import RegistrationForm, LoginForm
app = Flask(__name__)
#app.config['SECRET_KEY'] = '5791628bb0b13ce0c676dfde280ba245'
" Sets how many lines of history VIM has to remember
set history=500
" Set to auto read when a file is changed from the outside
set autoread
set wildmenu
set wildmode=longest:list,full
"Always show current position
@NithishKolli
NithishKolli / mangareader-zoom.user.js
Created January 18, 2016 06:00 — forked from xim/mangareader-zoom.user.js
Mangareader zoom in as default
// ==UserScript==
// @name mangareader zoom in as default
// @namespace https://gist.github.com/xim
// @description Zooms in on manga pages by default at mangareader.net
// @include http://www.mangareader.net/*
// @version 1
// @grant none
// ==/UserScript==
document.getElementById('img').removeAttribute('width');
@NithishKolli
NithishKolli / SQLQuery.java
Last active August 29, 2015 13:57
Sql Query Parser
import java.io.*;
public class SQLquery {
int noOfTables;
Table[] tables;
String row;
BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));
void readFile() {
import pygame
from pygame.locals import *
displayString = "Babu faggot"
def initialiseWindow():
#Intiliase values
(width,height)= 400,500
screen = pygame.display.set_mode((width,height))
pygame.display.set_caption('Hangman by Nitesh')
background_colour = (255,255,255)
https://raw.github.com/ravi3054/Jumble-Word-Game/master/dictionary
#include<iostream>
using namespace std;
class Banker
{
private:
public:
int maxResources,stock;
};
bool Banker::allocationAlgorithm(Customer customers[],int nCustomers)
@NithishKolli
NithishKolli / Toolpath.m
Created December 9, 2013 09:51
Matlab Program to check the length of the path traversed by a circular Tool inside a Polygon
polygondata = dlmread('polypoints.txt');
nSides = length(polygondata);
xcoord = zeros(1,nSides);
ycoord = zeros(1,nSides);
%coeffLines
doubleParallel=false;
centroidX =0;
centroidY =0;
checkDirection = zeros(1,nSides-1);
diameter = (polygondata(3,1));