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
| 'use strict'; | |
| angular.module('instafacApp', [ | |
| 'ngCookies', | |
| 'ngResource', | |
| 'ngSanitize', | |
| 'ngRoute' | |
| ]) | |
| .config(function ($routeProvider, $httpProvider){ |
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
| Capybara.add_selector :record do | |
| xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) } | |
| match { |record| record.is_a?(ActiveRecord::Base) } | |
| end |
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
| (($) -> | |
| $.fn.sidebar = (options) -> | |
| that = this | |
| settings = $.extend(options) | |
| toggle_link = $(settings.toggle_link) | |
| main_content = $(settings.main_content) | |
| width = $(that).css('width') | |
| setup = -> | |
| $(that).hide() |
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
| @@ -51,7 +51,7 @@ ActiveRecord::Schema.define(:version => 20120930025410) do | |
| t.datetime "created_at", :null => false | |
| t.datetime "updated_at", :null => false | |
| t.integer "pictures_count", :default => 0 | |
| - t.string "plate", :limit => 7 | |
| + t.string "plate", :limit => 8 | |
| end |
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
| module StaticMapHelper | |
| def static_map_for(location, options = {}) | |
| params = { | |
| :center => [location.lat, location.lng].join(","), | |
| :zoom => 15, | |
| :size => "300x300", | |
| :markers => [location.lat, location.lng].join(","), | |
| :sensor => true | |
| }.merge(options) |
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
| default: &local_defaults | |
| adapter: postgresql | |
| host: localhost | |
| port: 5432 | |
| min_messages: warning | |
| encoding: utf8 | |
| username: postgres | |
| password: | |
| template: template0 |
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
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install curl python-software-properties -y | |
| sudo apt-get install openjdk-6-jre-headless | |
| curl -L https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz | tar -xz | |
| sudo mv elasticsearch-* /usr/local/share/elasticsearch | |
| curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz | |
| sudo mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/ | |
| rm -Rf *servicewrapper* |
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
| # Needed if you are not requiring rails/all | |
| require 'sprockets/railtie' |
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
| # all tests, run all at start | |
| ACCEPTANCE=true watchr test.watchr | |
| # all tests, don't run at start | |
| ACCEPTANCE=true watchr test.watchr -- -f | |
| # skip acceptance (the slow ones) | |
| watchr test.watchr |
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
| ENV["RAILS_ENV"] = "test" | |
| require File.expand_path('../../config/environment', __FILE__) | |
| require 'rails/test_help' | |
| require 'minitest/autorun' | |
| require 'minitest/pride' | |
| require 'capybara/rails' | |
| class MiniTest::Spec | |
| include ActiveSupport::Testing::SetupAndTeardown |