Skip to content

Instantly share code, notes, and snippets.

View mihirsam's full-sized avatar
💜
Stupid like a fox 🦊

Mihir mihirsam

💜
Stupid like a fox 🦊
View GitHub Profile
@mihirsam
mihirsam / index.html
Created December 29, 2019 21:23
jQuery Cycle Through Text
<div id="cycle">
<div>Meep</div>
<div>Moop</div>
<div>Beep</div>
<div>Peep</div>
<div>Poop</div>
<div>Loop</div>
<div>Neep</div>
</div>
# coding: utf-8
# ## Food Delivery System
# MODULES COMPLETED:
# MEMBERS:
# -> Register
# -> Login
# -> View Menu
import java.sql.*;
public class UserLogin2
{
public static void main(String args[])
{
try
{
//Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//String url = "jdbc:odbc:Driver={MicrosoftAccessDriver(*.mdb,*.accdb)};DBQ=+"C:\Users\RONITA DEBNATH\Documents\Student.accdb";
Connection conn;
@mihirsam
mihirsam / fcfs.c
Last active September 21, 2018 07:54
First Come First Serve Algorithm | Gantt Chart | Waiting Time | Turn Around Time
//
// Created by xenon on 18/9/18.
//
#include<stdio.h>
#include<stdbool.h>
struct Input
{
char ProcessId[100];
int at, bt;
#include <stdio.h>
#include<stdlib.h>
#include<math.h>
/*
* 4x1 + x2 - x3 = 3
* 2x1 + 7 x2 + x3 = 19
* x1 - 3 x2 +12 x3 = 31
*/
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl