SoundJS demo (on Google Drive) LINK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'base64' | |
require 'mime/types' | |
#install mime/types | |
#gem install mime-types | |
if File.exists?(ARGV[0]) | |
img = open( ARGV[0] ) #file open | |
dir = File.dirname(ARGV[0]) #directory name | |
ext = File.extname(ARGV[0]); #an extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##iPhone iOS5.1.1 | |
IOS511(){ | |
command open -a Google\ Chrome\ Canary.app --args --user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3" | |
} | |
##Galaxy S3 Android4.0.4 | |
GS3(){ | |
command open -a Google\ Chrome\ Canary.app --args --user-agent="Mozilla/5.0 (Linux; U; Android 4.0.4; en-gb; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>SinonJS Fake XHR Server Test</title> | |
</head> | |
<body> | |
<script src="jquery.1.9.1.js"></script> | |
<script src="sinon-1.6.0.js"></script> | |
<script src="test.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>SoundJS test</title> | |
</head> | |
<body> | |
<div id="play">play</div> | |
<div id="stop">stop</div> | |
<div id="state" style="text-decoration: underline;color:red;">playing</div> | |
<script src="soundjs-0.4.0.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>PreloadJS</title> | |
</head> | |
<body> | |
<h2>PreloadJS!!</h2> | |
<h3 id="state"></h3> | |
<div id="images"></div> | |
<script src="./preloadjs-0.3.0.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_path = "/" | |
css_dir = "css" | |
sass_dir = "sass" | |
images_dir = "img" | |
javascripts_dir = "js" | |
enviroment = :development | |
# enviroment = :production | |
if enviroment == :development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt){ | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
dist: { | |
options: { | |
style: 'expanded', | |
lineNumbers: true, | |
// compass: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>emit StorageEvent</h1> | |
<button id="set">set</button> | |
<button id="update">update</button> | |
<button id="get">get</button> | |
<button id="remove">remove</button> | |
<button id="clear">clear</button> | |
<script> | |
document.addEventListener('DOMContentLoaded',function(){ |
OlderNewer