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
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3) | |
timeout 15 | |
preload_app true | |
before_fork do |server, worker| | |
Signal.trap 'TERM' do | |
puts 'Unicorn master intercepting TERM and sending myself QUIT instead' | |
Process.kill 'QUIT', Process.pid | |
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
body { | |
font-family: arial; | |
} |
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 :rubygems | |
# We are not loading Active Record, nor Active Resources etc. | |
# We can do this in any app by simply replacing the rails gem | |
# by the parts we want to use. | |
gem "actionpack", "~> 4.0" | |
gem "railties", "~> 4.0" | |
gem "tzinfo" | |
# Let's use thin |
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
box: wercker/ubuntu12.04-ruby1.9.3 | |
services: | |
- wercker/postgresql | |
build: | |
# The steps that will be executed on build | |
steps: | |
- script: | |
name: Enable virtual display | |
code: |- | |
# Start xvfb which gives the context an virtual display |
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
cinst GoogleChrome | |
cinst 7zip | |
cinst git.install | |
cinst putty | |
cinst ruby | |
cinst ruby.devkit | |
cinst RubyMine | |
cinst SourceTree |
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
for f in *.rhtml; do git mv $f `basename $f rhtml`html.erb; done |
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
pretty_echo(){ | |
echo '--------------------------------' | |
echo " $*" | |
echo '--------------------------------' | |
echo '' | |
} | |
prompt(){ | |
read -p 'Press any key to continue...' | |
} |
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
// When you’re queuing up a chain of animations, you can use the delay() | |
// method to pause the animation for a length of time; pass that time as | |
// a parameter in milliseconds. | |
$('div').hide().delay(2000).show(); // div will stay hidden for 2 seconds before showing. |
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
moduleConfigurator | |
classApplication < Rails::Application | |
# By default, let OSX resolve the path to the binary | |
config.wkhtmltopdf = "wkhtmltopdf" | |
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
<% if @obj.errors.any? %> | |
<div class="error-messages"> | |
<h2><%= pluralize(@obj.errors.count, 'error') %> are preventing this object from being created:</h2> | |
<ul> | |
<% @obj.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> | |
</div> |
OlderNewer