Skip to content

Instantly share code, notes, and snippets.

View deepaksharma192's full-sized avatar

Deepak Sharma deepaksharma192

View GitHub Profile
@deepaksharma192
deepaksharma192 / HTML5
Last active December 19, 2015 19:29
HTML5 Drag And Drop. Run I pad And Android, Desktop, mac.
<!DOCTYPE html>
<html>
<title>Drag &amp; Drop</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<link href="./data/StyleEfeldmobile.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="./data/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="./data/jquery-ui.min.js"></script>
<script type="text/javascript" src="./data/jquery.ui.touch-punch.min.js"></script>
@deepaksharma192
deepaksharma192 / gist:5890595
Created June 29, 2013 09:58
Drag and Drop In as3 flash
stop();
var startX:Number;
var startY:Number;
drag_1.addEventListener(MouseEvent.MOUSE_DOWN,m_d);
drag_2.addEventListener(MouseEvent.MOUSE_DOWN,m_d);
drag_3.addEventListener(MouseEvent.MOUSE_DOWN,m_d);
drag_4.addEventListener(MouseEvent.MOUSE_DOWN,m_d);
drag_1.addEventListener(MouseEvent.MOUSE_UP,m_u_1);
drag_2.addEventListener(MouseEvent.MOUSE_UP,m_u_2);
@deepaksharma192
deepaksharma192 / gist:5890558
Created June 29, 2013 09:44
wamp server access from another computer
wamp server access from another computer
Step 1. Install WAMP server .
Step 2. Put Offline Server.
Step 3.Apache -> httpd.conf
Step 4.
<Directory "cgi-bin">
AllowOverride None
Options None
Order allow,deny
@deepaksharma192
deepaksharma192 / gist:5884140
Created June 28, 2013 11:49
auto play audio on ipad
AudioSFX = function( _p, _autoplay ) {
var self = this;
var parent = _p;
this.sounds = new Array();
this.context = new webkitAudioContext();
this.autoplay = _autoplay;
this.play = function( sound ) {