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
/** | |
* Adventures in Science: Fred Bot | |
* SparkFun Electronics | |
* Author: M. Hord (October 8, 2013) | |
* Modified by: B. Huang (October 31, 2014) | |
* Modified by: Shawn Hymel (July 21, 2017) | |
* | |
* Use two magnetic encoders on Fred's motor shafts (48:1 | |
* gearbox, 60mm wheels) to make him move in a straight line for | |
* 1m. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
package controllers | |
import java.lang.reflect.Method | |
import play.api._ | |
import play.api.mvc._ | |
import play.api.libs.{ Comet } | |
import play.api.libs.iteratee._ | |
import play.api.libs.concurrent._ |
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
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |