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
cookbook_paths: | |
- workspace | |
recipes: | |
###### | |
## Meta OS X Base | |
- pivotal_workstation::osx_updates | |
- pivotal_workstation::set_finder_show_hd_on_desktop | |
- pivotal_workstation::defaults_fast_key_repeat_rate | |
- pivotal_workstation::function_keys |
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
cookbook_paths: | |
- workspace | |
recipes: | |
###### | |
## Meta OS X Base | |
- pivotal_workstation::java | |
- pivotal_workstation::sshd_on | |
- pivotal_workstation::screen_sharing_app | |
# - pivotal_workstation::Skype |
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
cookbook_paths: | |
- workspace | |
recipes: | |
###### | |
## Meta OS X Base | |
- pivotal_workstation::osx_updates | |
- pivotal_workstation::set_finder_show_hd_on_desktop | |
- pivotal_workstation::defaults_fast_key_repeat_rate | |
- pivotal_workstation::function_keys |
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
scutil --set ComputerName #{hostname} | |
scutil --set LocalHostName #{hostname} | |
scutil --set HostName #{hostname} | |
hostname #{hostname} | |
diskutil rename / #{hostname} |
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
gem "sqlite3" |
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
# http://code.google.com/apis/chart/interactive/docs/gallery/treemap.html#Example | |
def tree_map | |
data_table = GoogleVisualr::DataTable.new | |
data_table.new_column('string', 'Region') | |
data_table.new_column('string', 'Parent') | |
data_table.new_column('number', 'Market trade volume (size)') | |
data_table.new_column('number', 'Market increase/decrease (color)') | |
data_table.add_rows( [ | |
["Global" , nil , 0 , 0 ], |
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
# http://code.google.com/apis/chart/interactive/docs/gallery/combochart.html | |
def combo_chart | |
data_table = GoogleVisualr::DataTable.new | |
data_table.new_column('string', 'month' ) | |
data_table.new_column('number', 'Bolivia' ) | |
data_table.new_column('number', 'Ecuador' ) | |
data_table.new_column('number', 'Madagascar' ) | |
data_table.new_column('number', 'Papua Guinea') | |
data_table.new_column('number', 'Rwanda' ) |
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
# http://code.google.com/apis/chart/interactive/docs/gallery/candlestickchart.html | |
def candlestick_chart | |
data_table = GoogleVisualr::DataTable.new | |
data_table.new_column('string', 'day') | |
data_table.new_column('number', 'min') | |
data_table.new_column('number', 'opening') | |
data_table.new_column('number', 'closing') | |
data_table.new_column('number', 'max') | |
data_table.add_rows( [ |
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
# http://code.google.com/apis/chart/interactive/docs/gallery/geomap.html#Example | |
def geo_map | |
# Regions Example | |
data_table_regions = GoogleVisualr::DataTable.new | |
data_table_regions.new_column('string' , 'Country' ) | |
data_table_regions.new_column('number' , 'Popularity') | |
data_table_regions.add_rows(6) | |
data_table_regions.set_cell(0, 0, 'Germany' ) | |
data_table_regions.set_cell(0, 1, 200) |
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
############################## | |
# Table with Constructor Format | |
data_table = GoogleVisualr::DataTable.new({ | |
:cols => [ { :id => 'A', :label => 'NEW A' , :type => 'string' }, | |
{ :id => 'B', :label => 'B-label', :type => 'number' }, | |
{ :id => 'C', :label => 'C-label', :type => 'date' } | |
], | |
:rows => [ { :c => [ {:v => 'a'}, {:v => 1.0, :f => 'One'} , {:v => Date.parse('2008-02-28 00:31:26'), :f => '2/28/08 12:31 AM'} ] }, | |
{ :c => [ {:v => 'b'}, {:v => 2.0, :f => 'Two'} , {:v => Date.parse('2008-03-30 00:31:26'), :f => '3/30/08 12:31 AM'} ] }, | |
{ :c => [ {:v => 'c'}, {:v => 3.0, :f => 'Three'}, {:v => Date.parse('2008-04-30 00:31:26'), :f => '4/30/08 12:31 AM'} ] } |