config.assets.precompile += Dir.glob(Rails.root.join('vendor/assets/**/*')).select { |f| File.file?(f) }
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 'active_job' | |
RSpec.configure do |config| | |
config.include ActiveJob::TestHelper | |
end |
I wanted to have a way to specify some attributes based on whether or not I was running in Vagrant. According to other resources on the web it looks like Vagrant used to set the vagrant attribute for us but no longer does so we need to manually specify it.
Vagrantfile
...
config.vm.provision :chef_solo do |chef|
chef.json = {
vagrant: true
}
Set username
git config --global user.name "Your Name Here"
Set e-mail
git config --global user.email "[email protected]"
Clorize and make git output pretty
git config --global color.ui true
Creating a repository
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
/** | |
* Hide the addressbar on ios & android devices | |
* https://gist.github.com/yckart/5609969 | |
* | |
* Based on the work from Nate Smith | |
* @see https://gist.github.com/nateps/1172490 | |
* | |
* Copyright (c) 2013 Yannick Albert (http://yckart.com) | |
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). | |
* 2013/05/20 |
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
#Source: http://verboselogging.com/2012/05/25/private-rubygems-on-heroku | |
Host heroku.com | |
ForwardAgent yes |
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
-- A server has multiple responses | |
CREATE TABLE severs | |
( | |
id serial NOT NULL, | |
url character varying(255) | |
); | |
--Each response belongs to one and only one server | |
CREATE TABLE responses | |
( |
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
{"merchants":[{"id":5318,"name":"Waffle House","location_id":"waffle-house-357","address_1":"3818 University Dr NW","address_2":null,"city":"Huntsville","region":"AL","psotcode":35816,"country":"USA","latitude":34.735139,"longitude":-86.6260002,"phone":"205-837-9781","published_At":"2012-03-09","merchant_source":"SP"},{"id":5317,"name":"Waffle House","location_id":"waffle-house-356","address_1":"3613 Memorial Pkwy NW","address_2":null,"city":"Huntsville","region":"AL","psotcode":35810,"country":"USA","latitude":34.7723836,"longitude":-86.5854915,"phone":"205-883-5480","published_At":"2012-03-09","merchant_source":"SP"},{"id":3452,"name":"Pauli's Bar And Grill","location_id":"paulis-bar-and-grill","address_1":"7143 US-72 W","address_2":null,"city":"Madison","region":"AL","psotcode":35758,"country":"USA","latitude":34.75556,"longitude":-86.715,"phone":"256-722-2080","published_At":"2012-03-09","merchant_source":"SP"},{"id":3730,"name":"Popeyes Chicken & Biscuits","location_id":"popeyes-chicken--biscuits-53","a |
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
{ | |
"restaurant": { | |
"id": "143", | |
"name": "Jim N' Nicks", | |
"location": "1908 11th Avenue South Birmingham", | |
"menu": [ | |
{ | |
"name": "The Pulled Pork Plate", | |
"description": "Classic pork shoulder gently covered in our signature rub, slowly smoked, then hand-pulled.", | |
"includes": "barbeque sauce, big blood, raspberries", |
NewerOlder