Each one builds on the previous, ie. I re-use constants defined earlier.
HOURS_IN_DAY = 24
DAYS_IN_YEAR = 365.242199
HOURS_IN_YEAR = HOURS_IN_DAY * DAYS_IN_YEAR
puts "Hours in an astronomical year: #{HOURS_IN_YEAR}"
| current_git_branch() { | |
| git_exists=`git branch 2>/dev/null | sed -ne'/^\* /s///p'` | |
| if [[ "$git_exists" != "" ]]; then | |
| if [[ "$git_exists" == "(no branch)" ]]; then | |
| git_exists="\e[31m\]$git_exists\e[0m\]" | |
| fi | |
| echo "$git_exists " | |
| fi | |
| unset git_exists |
| --type-add=ruby=.haml,sass=.sass |
| function error_message { | |
| echo -e >&2 \ | |
| "---------------------------------------------------------------------------------------------------------" \ | |
| "\n$1" \ | |
| "\n---------------------------------------------------------------------------------------------------------" | |
| } | |
| function undo_merge { | |
| error_message "Undoing your merge. Please fix the problem and try again." |
| [diff "ruby"] | |
| wordRegex = (@@?|\\b:|[^:]:)?[[:alnum:]_]+|:\"[^\"]+\"|::|[^[:space:]] | |
| [diff "php"] | |
| wordRegex = \\${0,2}[[:alnum:]_]+|::|->|[^[:space:]] |
| #!/usr/bin/env ruby | |
| section_start = '## devstart -- section marker - do not touch' | |
| section_end = '## devend -- section marker - do not touch' | |
| ips = { | |
| :vidal => '3.141', | |
| :jose => '3.138', | |
| :alejandro => '3.139', | |
| :roberto => '3.140', |
The new rake task assets:clean removes precompiled assets. [fxn]
Application and plugin generation run bundle install unless --skip-gemfile or --skip-bundle. [fxn]
Fixed database tasks for jdbc* adapters #jruby [Rashmi Yadav]
Template generation for jdbcpostgresql #jruby [Vishnu Atrai]
| :+1: | |
| :-1: | |
| :airplane: | |
| :art: | |
| :bear: | |
| :beer: | |
| :bike: | |
| :bomb: | |
| :book: | |
| :bulb: |
| #!/usr/bin/env bash | |
| "$@" |