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
initSortable: => | |
$(@el).sortable | |
opacity: 0.6 | |
cursor: 'move' | |
containment: 'footer' | |
update: => | |
#ids = App.keyframeList().collection.pluck('id') | |
#console.log ids | |
@json = {} |
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
- (void)ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event | |
{ | |
CGPoint touchPoint = [touch locationInView:[touch view]]; | |
touchPoint = [[CCDirector sharedDirector] convertToGL:touchPoint]; | |
if(isTouch){ | |
// | |
// Move the flake, check into consideration finger placement | |
// relative to the flake |
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
root :to => 'home#index', :constraints => lambda { |request| request.cookies['auth_token'] } | |
root :to => 'user_sessions#new' |
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
source 'http://rubygems.org' | |
gem 'rails', '3.2.6' | |
gem 'mysql2' | |
group :assets do | |
gem 'sass-rails', "~> 3.2.0" | |
gem 'coffee-rails', "~> 3.2.0" | |
gem 'uglifier' |
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"] |
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
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
$('#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 t = $(this); | |
if (!(t.hasClass("scene") || t.hasClass("keyframe") || t.hasClass("edit-text") || t.hasClass("disabled") || t.hasClass("images"))) { | |
// codes | |
} |