This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
class Banker | |
{ | |
private: | |
public: | |
int maxResources,stock; | |
}; | |
bool Banker::allocationAlgorithm(Customer customers[],int nCustomers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://raw.github.com/ravi3054/Jumble-Word-Game/master/dictionary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
public class SQLquery { | |
int noOfTables; | |
Table[] tables; | |
String row; | |
BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in)); | |
void readFile() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |