Skip to content

Instantly share code, notes, and snippets.

@strongwave
strongwave / Modernizr_detect.txt
Created October 4, 2011 00:27
Features Modernizr supports
1. applicationCache
2. border-image:
3. border-radius:
4. box-shadow:
5. Canvas
6. Canvas Text
7. CSS 2D Transforms
8. CSS 3D Transforms
9. CSS Animations
10. CSS Columns
@strongwave
strongwave / rvm_install_ruby.txt
Created October 6, 2011 21:25
command line to install ruby from rvm
$ sudo apt-get update
$ sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake
$ rvm install 1.9.2
@strongwave
strongwave / getCurrentPosition_canvas.html
Created October 17, 2011 23:40
A Demo Drawing Google Map on Canvas Tag for HTML5
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
jQuery(window).ready(function(){
g_initialize();
jQuery("#findLocationBtn").click(initiate_geolocation);
});
@strongwave
strongwave / watchPosition_demo.html
Created October 19, 2011 00:33
A Demo Drawing Google Map using watchPosition API for HTML5
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script>
jQuery(window).ready(function(){
gMapInit();
jQuery("#watchPositionBtn").click(initiate_watchlocation);
jQuery("#stopWatchBtn").click(stop_watchlocation);