This file contains hidden or 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 DateTimePickerInput < SimpleForm::Inputs::Base | |
| def input | |
| template.content_tag(:div, class: 'input-group date form_datetime') do | |
| template.concat @builder.text_field(attribute_name, input_html_options) | |
| template.concat span_remove | |
| template.concat span_table | |
| end | |
| end | |
| private |
This file contains hidden or 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
| # elevate to root and save file | |
| # http://unix.stackexchange.com/a/11006/31042 | |
| :w !sudo dd of=% |
This file contains hidden or 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
| require 'capistrano_colors' | |
| require 'capistrano/maintenance' | |
| require 'capistrano/ext/multistage' | |
| require 'colored' | |
| require 'ruby_cowsay' | |
| require 'manic_monkey' | |
| # change this to ::INFO if you need more... umm... info | |
| # change this to ::IMPORTANT for normal deploys | |
| logger.level = Logger::IMPORTANT |
This file contains hidden or 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
| group :development, :test do | |
| gem 'sqlite3' | |
| gem 'trinidad', :platform => :jruby | |
| gem 'unicorn', :platform => :ruby | |
| gem 'better_errors' | |
| gem 'binding_of_caller' | |
| gem 'awesome_print' | |
| gem 'rake' | |
| gem 'pry', :require => false | |
| gem 'chef' |
This file contains hidden or 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
| upstream mysite { | |
| server unix:/etc/unicorn/sockets/mysite.socket fail_timeout=0; | |
| } | |
| server { | |
| client_max_body_size 2M; | |
| keepalive_timeout 5; | |
| listen 80; | |
| server_name localhost; |
This file contains hidden or 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
| compat.version=1.9 | |
| cext.enabled=true | |
| errno.backtrace=true | |
| Xcext.enabled=true |
This file contains hidden or 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
| .meows { | |
| position: fixed; | |
| top: 0; | |
| right: 0; | |
| } | |
| .meow { | |
| margin: 20px 20px 0 0; | |
| position: relative; |
This file contains hidden or 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
| { | |
| "binary_file_patterns": | |
| [ | |
| "*.jpg", | |
| "*.jpeg", | |
| "*.png", | |
| "*.gif", | |
| "*.ttf", | |
| "*.tga", | |
| "*.dds", |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Modified for Rails 3 by Dave Southard January 17th, 2012 | |
| # Now with more princess bride! | |
| RAILS_ENV=production | |
| APP_ROOT=/var/rails/unicorn/$1 | |
| CURRENT_APP=$APP_ROOT/current | |
| PID=/etc/unicorn/pids/$1.pid | |
| OLD_PID=$PID.oldbin | |
| START_COMMAND="bundle exec unicorn -D -E $RAILS_ENV -c /etc/unicorn/conf/$1.conf" |