Final output based on Leaflet Map US States Name Length
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 Cherry | |
def initialize(cherry) | |
@cherry = cherry | |
end | |
def process | |
@cherry = remove_pit(@cherry) | |
@cherry = twist_stem(@cherry) | |
end |
Based on Leaflet Map US States Name Length. Now, with actual color!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
two_d_grid = | |
[ | |
[ 1, 2, 3, 4, 5 ], | |
[ 6, 7, 8, 9, 10 ], | |
[ 11, 12, 13, 14, 15] | |
] | |
puts "Basic 2D each" | |
two_d_grid.each do |row| | |
row.each do |cell| |
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
// This is the response from the call, reformatted for readability. | |
{ | |
"photo": { | |
"access_key": "f37be52e-06d2-418a-916d-0e5874a0de29", | |
"created_at": "2014-03-10T20:54:26Z", | |
"created_by": "Kyle Tolle", | |
"created_by_id": "51efe7d6a93448fc300048d9", | |
"exif": { | |
"pixel_x_dimension": 1090, |
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
RubyProf.start | |
# Code to profile... | |
result = RubyProf.stop | |
# Print a graph to an HTML file, sorted by time spend in children. | |
File.open('profile_output.html', 'w') do |file| | |
printer = RubyProf::GraphHtmlPrinter.new result | |
printer.print(file, sort_method: :children_time) |
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
{ | |
"form": { | |
"auto_assign": false, | |
"bounding_box": [ | |
48.8518638, | |
2.3130969889462, | |
48.8772149651485, | |
2.3516665 | |
], | |
"created_at": "2014-04-21T21:29:01Z", |
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
{ | |
"record": { | |
"altitude": null, | |
"assigned_to": null, | |
"assigned_to_id": null, | |
"client_created_at": "2014-04-09T12:24:36Z", | |
"client_updated_at": "2014-04-09T12:26:50Z", | |
"course": null, | |
"created_at": "2014-04-28T20:38:46Z", | |
"created_by": "Kyle Tolle", |
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
{ | |
"current_page": 1, | |
"per_page": 20000, | |
"projects": [ | |
{ | |
"created_at": "2014-05-07T19:17:42Z", | |
"description": "Data collected that is in the Denver, CO area.", | |
"id": "3bc943c3-6477-4010-a876-85fce6fdf11", | |
"name": "Denver", | |
"updated_at": "2014-05-07T19:17:42Z" |