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
/deals.json?associations=people,notes,companies&per_page=1 | |
[{ | |
"notes": [{ | |
"created_at": "2012/01/06 16:41:00 -0500", | |
"created_by_user": { | |
"full_name": "Benjamin Rhodes", | |
"id": 1 | |
}, | |
"updated_at": "2012/01/06 17:03:43 -0500", | |
"note_category": { |
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
{ | |
"pagination": { | |
"total_entries": 147, | |
"page_var": "page", | |
"total_in_account": null, | |
"url": "http://localhost:8080/deals.json?associations=people,notes,companies\u0026per_page=1", | |
"current_page": 1, | |
"per_page": 30 | |
}, | |
"deals": [{ |
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
// Mike Schmitt (Class #12109) | |
// Assignment #1 | |
// My First Program | |
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
int dog_years(int years) |
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
# Javascript | |
assets/javascripts/ | |
# Backbone App | |
assets/javascripts/app/ | |
assets/javascripts/app/application.js # javascript entry point | |
assets/javascripts/app/document_ready.js # single document ready entry point (i can dream right?) | |
# Vendor Extentsions | |
assets/javascripts/ext/{backbone,jquery,jquery-ui} # our hacks basically |
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
{ | |
"tags": [{ | |
"name": "Decision Maker", | |
"id": 12 | |
}, | |
"name": "Partner", | |
"id": 14 | |
}], | |
"user": { | |
"full_name": "Benjamin Rhodes", |
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
//Mike Schmitt | |
//calculates the amount of time it will take to travel a given distance at a given speed. | |
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ |
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
// GET /people/2.json | |
{ | |
"id": 2, | |
"first_name": "Captain", | |
"email": "[email protected]" | |
"last_name": "Crunch", | |
"custom_fields": { | |
"abilities": [ | |
"sugar_rush" | |
], |
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
class Game | |
def initialize | |
@cards = (1..21).collect { |i| i.to_s } | |
@solutions = @cards.clone | |
end | |
def play | |
begin | |
play_turn | |
end while @solutions.size > 1 |
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
{ | |
"company_custom_field_labels": [ | |
{ | |
"account_id": 1, | |
"custom_field_label_dropdown_entries": [], | |
"custom_field_template_id": null, | |
"default_value": null, | |
"deleted_at": null, | |
"derivable_column": null, | |
"derivable_type": null, |
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
$('.progress-bar').click(function(e) { | |
var playingSound = soundManager.getSoundById(_.keys(soundManager.sounds)[0]), | |
x = e.pageX - $(this).offset().left, | |
width = $(this).width(), | |
duration = playingSound.durationEstimate; | |
playingSound.setPosition((x / width) * duration); | |
}); |