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
upstream puma { | |
server 127.0.0.1:8080 fail_timeout=0; | |
} | |
proxy_cache_path /home/of/all/evil/stuffs/as/shared/tmp/cache/nginx levels=1:2 keys_zone=api-cache:10m max_size=1000m inactive=200m; | |
# HTTP server | |
# | |
server { |
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
"/path/to/application/current/log/*.log" { | |
daily | |
su user_name group_name | |
size 5M | |
missingok | |
rotate 5 | |
compress | |
delaycompress | |
notifempty | |
copytruncate |
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 State | |
STATES = { | |
'US' => { | |
'AL' => 'Alabama', | |
'AK' => 'Alaska', | |
'AZ' => 'Arizona', | |
'AR' => 'Arkansas', | |
'CA' => 'California', | |
'CO' => 'Colorado', | |
'CT' => 'Connecticut', |
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 'https://rubygems.org' | |
source 'https://rails-assets.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.2.0' | |
# Use mysql as the database for Active Record | |
gem 'mysql2' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 5.0' | |
# Use Uglifier as compressor for JavaScript assets |
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
[xdebug] | |
zend_extension="/usr/local/opt/php55-xdebug/xdebug.so" | |
xdebug.default_enable=1 | |
xdebug.remote_enable=1 | |
xdebug.remote_port=9000 | |
xdebug.remote_handler="dbgp" | |
xdebug.remote_autostart=1 | |
xdebug.idekey="PHPSTORM" |
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 control = require('control'), | |
script = process.argv[1], | |
perform = control.perform, | |
task = control.task; | |
var ProjectConfig = { | |
rootDir: 'staging', | |
git: 'git://github.com/we4tech/restaurant-review.git', | |
branch: 'master', | |
serverPort: 4000 |
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 control = require('control'), | |
script = process.argv[1], | |
perform = control.perform, | |
task = control.task; | |
/** | |
* Project related configuration | |
*/ | |
var ProjectConfig = { | |
// Keep it simple word so we could use it for Rails environment too. |
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
-- HAML | |
#new_schedule{title: "Add Schedule"} | |
%form | |
%fieldset.ui-helper-reset | |
%label{for: "tab_title"} Title | |
%input#tab_title.ui-widget-content.ui-corner-all{type: "text", name: "tab_title", value: ""} | |
-- Converted HTML | |
<div id='new_schedule' title='Add Schedule'> | |
<form> |
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
require 'spec_helper' | |
describe FaqItem do | |
context 'validations' do | |
it 'should validate the presence of question' do | |
should validate_presence_of(:question) | |
end | |
it 'should validate the presence of answer' do |
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
require 'spec_helper' | |
describe FaqItem do | |
context 'validations' do | |
it 'should validate the presence of question' do | |
should validate_presence_of(:question) | |
end | |
it 'should validate the presence of answer' do |