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
function upload_img($id = null) | |
{ | |
$this->layout = 'empty'; | |
//Configure::write('debug', 0); | |
if(empty($this->data)) { | |
die(); | |
} | |
$full = $this->JqImgcrop->uploadImage($this->data['Listing']['image'], 'img/listings/full/', time()); | |
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
# mongo_template.rb | |
# remove unneeded defaults | |
run "rm public/index.html" | |
run "rm public/images/rails.png" | |
run "rm public/javascripts/controls.js" | |
run "rm public/javascripts/dragdrop.js" | |
run "rm public/javascripts/effects.js" | |
run "rm public/javascripts/prototype.js" |
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
[52/70] cxx: src/node.cc -> build/default/src/node_6.o | |
../src/node.cc: In function ‘void node::CheckIdleness(ev_timer*, int)’: | |
../src/node.cc:135: error: no matching function for call to ‘v8::V8::IdleNotification()’ | |
default/deps/v8/include/v8.h:2331: note: candidates are: static bool v8::V8::IdleNotification(bool) | |
../src/node.cc: In function ‘void node::NotifyIdleness(ev_idle*, int)’: | |
../src/node.cc:149: error: no matching function for call to ‘v8::V8::IdleNotification()’ | |
default/deps/v8/include/v8.h:2331: note: candidates are: static bool v8::V8::IdleNotification(bool) | |
../src/node.cc: In function ‘ssize_t node::DecodeWrite(char*, size_t, v8::Handle<v8::Value>, node::encoding)’: | |
../src/node.cc:376: error: ‘HINT_MANY_WRITES_EXPECTED’ is not a member of ‘v8::String’ | |
../src/node.cc:381: error: ‘HINT_MANY_WRITES_EXPECTED’ is not a member of ‘v8::String’ |
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
web: bundle exec thin start | |
worker: bundle exec rake jobs:work | |
log: tail -f -n 0 log/development.log | |
watchr: bundle exec rake watchr |
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
[ | |
[ [345,9], [345,87] ], | |
[ [351,8], [363,8], [372, 9], [380, 11], [386, 14], [391, 17], [394, 22], [397, 28], [399,34], [400,42], [400,50], [400,56], [399,61], [397,66], [394,70], [391,74], [386,78], [382,81], [377,83], [372,85], [367,87], [360,87], [355,88], [349,87] ] | |
] |
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
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
"path": "/Users/britg/Projects/ponycorn-fanclub.com", | |
"folder_exclude_patterns": ["*.sass-cache", "tmp", "log", "assets", "cache"] | |
} | |
] | |
} |
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
def current_platform | |
return @current_platform if defined?(@current_platform) | |
return 'web' unless user_agent.present? | |
return (@current_platform = 'iphone') if user_agent.match('iphone') | |
return (@current_platform = 'android') if user_agent.match('android') | |
return (@current_platform = 'blackberry') if user_agent.match('blackberry') | |
if (user_agent.match('windowsphone') || user_agent.match('iemobile')) | |
return @current_platform = 'windows' |
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
/** | |
* touch for jQuery | |
* | |
* Copyright (c) 2008 Peter Schmalfeldt (ManifestInteractive.com) <[email protected]> | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
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
class Player < ActiveRecord::Base | |
# ... | |
def skills | |
@skills ||= (Skill.where(:player_id => self.id).first || \ | |
Skill.create(:player_id => self.id)) | |
end | |
end |
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
$('#bar').removeClass('new').addClass('activated'); |
OlderNewer