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
| #!/bin/sh | |
| POSTGISCONTRIB_PATH=`pg_config --sharedir`/contrib | |
| POSTGIS=$(find $POSTGISCONTRIB_PATH -name 'postgis.sql') | |
| POSTGIS_COMMENTS=$(find $POSTGISCONTRIB_PATH -name 'postgis_comments.sql') | |
| POSTGIS_SPATIAL=$(find $POSTGISCONTRIB_PATH -name 'spatial_ref_sys.sql') | |
| if [ -z "$POSTGIS" ] || [ -z "$POSTGIS_SPATIAL" ]; then | |
| echo " * Not found postgis contrib files." | |
| exit 1 |
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
| # Gemfile | |
| … | |
| gem 'uuidtools' | |
| … |
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
| if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi | |
| if [[ ! -z "PS1" ]] ; then | |
| # This is your .bashrc (renamed to .bashrc_part2) | |
| source ~/.bashrc_part2 | |
| fi |
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
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
| "file_exclude_patterns": | |
| [ | |
| "*.png", | |
| "*.gif", | |
| ".DS_Store", | |
| ".rspec", | |
| "*sublime-project.sublime-project", | |
| "config.ru", |
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
| [user] | |
| name = Your Name | |
| email = [email protected] | |
| [alias] | |
| ci = commit | |
| co = checkout | |
| st = status | |
| br = branch | |
| pl = pull |
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
| ActionController::StatusCodes::SYMBOL_TO_STATUS_CODE | |
| 100 = :continue | |
| 101 = :switching_protocols | |
| 102 = :processing | |
| 200 = :ok | |
| 201 = :created | |
| 202 = :accepted | |
| 203 = :non_authoritative_information | |
| 204 = :no_content |
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
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| 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
| def publish | |
| if approved? | |
| if !is_for_the_future? | |
| publish! | |
| if publish_in_twitter | |
| if result = publish_on_twitter | |
| self.twitter_status = result | |
| end | |
| end | |
| save! |
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
| config.action_mailer.delivery_method = :smtp | |
| config.action_mailer.raise_delivery_errors = true | |
| config.action_mailer.smtp_settings = { | |
| :address => 'localhost', | |
| :port => 1025 | |
| } |
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.rb | |
| Capybara.register_driver :selenium do |app| | |
| Capybara::Selenium::Driver.new(app, :browser => :chrome) | |
| end | |
| Download chromedriver from http://code.google.com/p/selenium/downloads/list | |
| mv chromedriver to /usr/local/bin so it's in your path. |
OlderNewer