Skip to content

Instantly share code, notes, and snippets.

View mnive93's full-sized avatar

Nivedita mnive93

View GitHub Profile
package com.sigtuple.aadi.autoscan.blood;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.os.Handler;
import android.widget.Toast;
package com.sigtuple.aadi.autoscan.blood;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.os.Handler;
import android.widget.Toast;
@mnive93
mnive93 / input.txt
Created March 27, 2013 05:31
input file for macro processor
#define EQ ==
#define PI 3.14
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
while(i EQ 0)
a=6;
a + PI;
@mnive93
mnive93 / macro.c
Created March 27, 2013 05:29
macro processor in c
#include<stdio.h>
#include<conio.h>
#include<string.h>
int number=0;
struct table
{
char data[100];
char val[20];
}t[10];
int main()
@mnive93
mnive93 / schedule.c
Created March 27, 2013 05:27
scheduling algorithms - priority pre-emptive and round robin
#include<stdio.h>
//#include<conio.h>
struct process
{
int pid,bt,at,priority,wt,tat,et,st,rt,rem;
int finished,count;
}p[100],fin[100];
void calc(int n)
{
int flag=0;
@mnive93
mnive93 / tim.html
Created March 27, 2013 05:17
html page using javascript to display time
<html>
<head>
<script type="text/javascript">
function timer(){
var date = new Date();
var h, m;
var s;
var t = " ";
h = date.getHours();
m = date.getMinutes();
@mnive93
mnive93 / index.html
Created March 27, 2013 05:11
mouse hovering effects using webkit transition
<html>
<head>
<script type="text/javascript">
function load()
{
var aud= new Audio('clown.mp3');
aud.play();
}
function sound()
@mnive93
mnive93 / MyMouse.java
Created March 27, 2013 05:06
Java program to display shortest path animation using Djikstra algorithm.
//<applet code="MyMouse.class" width=600 height=600></applet>
import java.awt.event.*;
import java.awt.geom.*;
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.applet.*;
class Table//this is the table class that is used to find the shortest path using Dijsktra algo
{
ArrayList<Integer> r = new ArrayList<Integer>();
body
{
background-color:Black;
position:fixed;
}
#can
{
position:relative;
background-image:url('des.jpg');
width:1350px;
@mnive93
mnive93 / main.js
Last active December 15, 2015 11:19
javascript code for a shooting game
var flag;
var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var id;
var dtag,ctag,cimg,count,count1,seconds;
var cntr,doc,sh,tim;
var images=new Array();
for(a=2;a<5;a++){