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
| #!/usr/bin/ruby | |
| file = File.open('orders.tsv') | |
| out = File.open('orders.csv', 'w') | |
| file.each_line do |line| | |
| fields = line.split("\t") | |
| out.puts '"'+fields.join('","')+'"' | |
| 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
| class TestController < ApplicationController | |
| def rubyversion | |
| text = `which ruby` | |
| text += "<br>" | |
| text += "<br>" | |
| text += `ruby --version` | |
| text += "<br>" | |
| text += "<br>" | |
| text += `gem list --local`.split("\n").join("<br>") | |
| render :text => text |
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
| #!/usr/bin/env sh | |
| # A simple script to open a new tab in Terminal in the current directory | |
| # Author: Eric Allen | |
| osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' > /dev/null | |
| osascript -e "tell application \"Terminal\" to do script \"cd $PWD && clear\" in window 1" > /dev/null |
NewerOlder