- create a new bookmark with the code above
- go to https://github.com/mbostock/d3/wiki/Ordinal-Scales#wiki-category10
- click the bookmarklet and behold the highlighted colors!
This file contains 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
rails_workspace(){ | |
osascript -e 'tell application "Terminal"' \ | |
-e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' \ | |
-e "do script with command \"cd `pwd`;clear;\" in selected tab of the front window" \ | |
-e "do script with command \"rails server\" in selected tab of the front window" \ | |
-e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' \ | |
-e "do script with command \"cd `pwd`;clear;\" in selected tab of the front window" \ | |
-e "do script with command \"rails console\" in selected tab of the front window" \ | |
-e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' \ | |
-e "do script with command \"cd `pwd`;clear;\" in selected tab of the front window" \ |