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
# | |
# THE HTML | |
# | |
<div class="modal in" id="myStorybooksModal"> | |
<div class="modal-header"> | |
<h3 id="modal-title"> | |
Create or Open App... | |
</h3> | |
</div> | |
<div class="modal-body" id="storybooks"> |
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
exercise.Activities = Backbone.Collection.extend({ | |
model: exercise.Activity, | |
url: "exercise.json", | |
comparator: function(activity){ | |
var date = new Date(activity.get('date')); | |
return date.getTime(); | |
} | |
}); |
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
exercise.ActivityListView = Backbone.View.extend({ | |
tagName: 'ul', | |
id: 'activities-list', | |
attributes: {"data-role": 'listview'}, | |
initialize: function() { | |
this.collection.bind('add', this.add, this); | |
this.template = _.template($('#activity-list-item-template').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
exercise.ActivityListView = Backbone.View.extend({ | |
tagName: 'ul', | |
id: 'activities-list', | |
attributes: {"data-role": 'listview'}, | |
initialize: function() { | |
this.collection.bind('add', this.render, this); | |
this.template = _.template($('#activity-list-item-template').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
var t = $(this); | |
if (!(t.hasClass("scene") || t.hasClass("keyframe") || t.hasClass("edit-text") || t.hasClass("disabled") || t.hasClass("images"))) { | |
// codes | |
} |
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
$('#fileupload').fileupload('disable'); | |
$('#fileupload').fileupload('enable'); |
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
var strDataURI = oCanvas.toDataURL(); | |
// returns "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACt..." | |
view plaincopy to clipboardprint? | |
var strDataURI = oCanvas.toDataURL("image/jpeg"); | |
// returns "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAA..." | |
Canvas2Image.saveAsPNG(oCanvas); // will prompt the user to save the image as PNG. |
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
$.ajax({ | |
... | |
beforeSend: function(xhr) | |
{ | |
xhr.setRequestHeader("X-Http-Method-Override", "PUT"); | |
} | |
}); |
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
$ cap deploy:cold | |
* executing `deploy:cold' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote [email protected]:whitmanc/sisbro.git master" | |
command finished in 6192ms | |
* executing "if [ -d /data/spree/shared/cached-copy ]; then cd /data/spree/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard c1ab496b2fd316e1dac3b2f2d08b842fe401a432 && git clean -q -d -x -f; else git clone -q [email protected]:whitmanc/sisbro.git /data/spree/shared/cached-copy && cd /data/spree/shared/cached-copy && git checkout -q -b deploy c1ab496b2fd316e1dac3b2f2d08b842fe401a432; fi" | |
servers: ["50.116.11.162"] |
OlderNewer