This file contains hidden or 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
/*from http://css-tricks.com/snippets/jquery/draggable-without-jquery-ui/ | |
Added compatibility with iOS touch devices | |
HTML should be something like : | |
<div class="container"> | |
<img id="image1" class="erb-image-wrapper" src="test.jpg"> <!-- this is your masked element --> | |
<img id="image2" class="erb-image-wrapper" src="femme.png" style="cursor: move;"> <!-- this is your mask over the masked element--> | |
</div> | |
*/ |
This file contains hidden or 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
# Fetches the production database on the server contents into the development | |
# database | |
# | |
# Assumes you have dbuser, dbhost, dbpassword, and application defined somewhere in your | |
# task. Modify as needed - database.yml is used for importing data, just not for exporting. | |
# | |
# Only supports MySQL. | |
desc "Load production data into development database" | |
task :fetch_remote_db, :roles => :db, :only => { :primary => true } do | |
require 'yaml' |
This file contains hidden or 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
/** | |
* strtr() for JavaScript | |
* Translate characters or replace substrings | |
* | |
* @author Dmitry Sheiko | |
* @version strtr.js, v 1.0.2 | |
* @license MIT | |
* @copyright (c) Dmitry Sheiko http://dsheiko.com | |
**/ |