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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- For viewing the page on mobile devices --> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Barebones HTML5</title> | |
<link rel="stylesheet" href="style.css"> | |
<script src="application.js"> | |
</head> |
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
{ | |
"changeset": { | |
"metadata": { | |
"application": "Fulcrum iOS", | |
"application_build": "1823", | |
"application_version": "2.3.3", | |
"device_identifier": "4EDA094F-DCC2-40C5-B71A-9FF22B831409", | |
"device_manufacturer": "Apple", | |
"device_model": "iPhone6,1", | |
"platform": "iOS", |
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
# | |
# Hashes can be modified by a method they're passed in to, which would affect | |
# what they contain. This could be an unexpected side-effect. | |
# $ ruby hash-modification.rb | |
# Hash before modification: | |
# {:a=>1, :b=>2} | |
# Hash after modification | |
# {:a=>1, :b=>2, :c=>3, :d=>4} | |
# | |
original_hash = { a: 1, b: 2 } |
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" |
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
{ | |
"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
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
// 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
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| |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.