#Assignment:
Create a controller for a robot
Right| Forward | ||
| Left | 0 | |
#Assignment:
Create a controller for a robot
Right| Forward | ||
| Left | 0 | |
I hereby claim:
To claim this, I am signing this object:
Good commit messages, as an example
Summarize briefly what the commit does, like an email subject
When it's not obvious, use additional paragraphs to describe /why/
you're making the change. The diff already shows /what/ the change is.
In the future if your change causes a problem or someone (you?) has to
modify it, understanding the reasoning is very helpful! Commit messages
| #!/usr/bin/env ruby | |
| # Consider loading the db driver directly instead of relying on relatively slow bundler | |
| require 'bundler' | |
| Bundler.setup | |
| require 'rails' | |
| require 'active_record' | |
| # Load the Rails configuration without loading the application |
| # For Linux (different sed arguments) | |
| TEST_CLASSES := bin/edu/gatech/replace/AllTests.class bin/edu/gatech/replace/ReplaceTest.class | |
| all: show-coverage | |
| show-coverage: replaceCoverage/frame-summary.html | |
| @grep % replaceCoverage/frame-summary.html | head -n 1 | sed -e 's/.*>\([0-9]\+%\).*>\([0-9]\+%\).*/\nCoverage: Line: \1, Branch: \2/' | |
| build-tests: $(TEST_CLASSES) |
| user system total real | |
| Loop and shovel 14.310000 0.200000 14.510000 ( 14.793983) | |
| Multiply arrays 7.220000 0.350000 7.570000 ( 7.854261) |
| #!/usr/bin/env ruby | |
| class Game | |
| def play | |
| setup_game | |
| get_players | |
| @server = pick_starter | |
| until winner | |
| rally | |
| determine_server |
Java uses static, declared typing:
String hello = "Hello, World!";
List<String> phrases = new ArrayList<String>;
phrases.add(hello);
phrases.add(null);
phrases.add(123); // Compile error! Not a string.| SELECT | |
| contestants.*, | |
| count(runs_with_chosen.id) AS heat_count_with_chosen, | |
| count(DISTINCT heats.id) AS heat_count, | |
| avg(runs.time) AS average_run_time | |
| FROM "contestants" | |
| LEFT JOIN runs ON runs.contestant_id = contestants.id | |
| LEFT JOIN runs AS runs_in_lane ON runs.contestant_id = contestants.id AND runs.lane = 1 | |
| LEFT JOIN heats ON heats.id = runs.heat_id | |
| LEFT JOIN runs AS runs_with_chosen ON runs_with_chosen.heat_id = heats.id AND runs_with_chosen.contestant_id IN (0) |