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
has_many :child_connections, :class_name => 'Connection', :foreign_key => 'from_id' | |
has_many :parent_connections, :class_name => 'Connection', :foreign_key => 'to_id', :dependent => :destroy | |
has_many :children, :through => :child_connections, :source => :to | |
has_many :parents, :through => :parent_connections, :source => :from |
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
MyApp::Application.configure do | |
config.cache_classes = true | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true | |
config.action_dispatch.x_sendfile_header = "X-Sendfile" | |
config.cache_store = :dalli_store |
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
# config/application.rb | |
module YourApplication | |
class Application < Rails::Application | |
config.autoload_paths += %W(#{config.root}/lib) | |
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
$(document).ready(function() { | |
// page is ready, do things here | |
}) | |
$(document).on('click','#gallery img',function() { | |
// click handler here | |
}) |
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
d; | |
} | |
.gallery-slideshow-caption { | |
width:300px; | |
height:298px; | |
float: right; | |
left:880px; | |
color:#fff; | |
background: $red; |
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
{"status":"error","errors":{"error":"Application error\n#0 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/View\/Abstract.php(884): Zend_View_Abstract->_script('response.phtml')\n#1 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action\/Helper\/ViewRenderer.php(900): Zend_View_Abstract->render('response.phtml')\n#2 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action\/Helper\/ViewRenderer.php(921): Zend_Controller_Action_Helper_ViewRenderer->renderScript('response.phtml', NULL)\n#3 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action\/Helper\/ViewRenderer.php(960): Zend_Controller_Action_Helper_ViewRenderer->render()\n#4 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action\/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()\n#5 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()\n#6 \/usr\/ |
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
{:input=>:s3, :"input_params[aws_access_key]"=>"AKIAINB7DG747Z3YIZLA", :"input_params[aws_secret_key]"=>"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", :"input_params[aws_bucket]"=>"pb_test_uploads/finaltesting", :"input_params[aws_path]"=>"final/28_chairman_meow/4_full_chairman_meow.wav", :output=>:s3, :"output_params[aws_access_key]"=>"AKIAINB7DG747Z3YIZLA", :"output_params[aws_secret_key]"=>"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", :"output_params[aws_bucket]"=>"pb_test_uploads/finaltesting", :"output_params[aws_path]"=>"preview/28_chairman_meow/4_full_chairman_meow.mp3", :callback_url=>"http://3j2f.localtunnel.com/callbacks/28/137/processing_complete", :format=>:json, :processing=>:async, :preview_id=>1, :output_format=>:mp3, :target_bitrate=>44100, :volume_min_threshold=>0.025, :reduction_factor=>2.61, :vo_short=>false} |
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
# Models | |
class Child | |
has_many :relationships | |
end | |
class RelationType | |
has_many :relationships | |
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
# use bash | |
set-option -g default-shell /bin/bash | |
# set 256 colors! | |
set -g default-terminal "screen-256color" | |
# change default command sequence | |
unbind C-b | |
set-option -g prefix C-a |