Skip to content

Instantly share code, notes, and snippets.

View mnive93's full-sized avatar

Nivedita mnive93

View GitHub Profile
@mnive93
mnive93 / gist:5251731
Created March 27, 2013 04:50
java application making use of google static map api using latitude and longitude
package map;
import java.awt.Graphics;
import java.awt.Image;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
@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++){
body
{
background-color:Black;
position:fixed;
}
#can
{
position:relative;
background-image:url('des.jpg');
width:1350px;
@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>();
@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 / 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 / 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 / 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 / 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;
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;