W3C Introduction to Web Components - explainer/overview of the technologies
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
@Test | |
@Ignore | |
public void testDashBoardController() throws Exception { | |
DashBoardController controller = this.dashBoardController; | |
request = new MockHttpServletRequest(MethodJson.GET.toString(), "/user/dashboard"); | |
final ModelAndView mav = handlerAdapter.handle(request, response, controller); | |
assertViewName(mav, "dashboard"); | |
} |
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
@SuppressWarnings("unchecked") | |
public List<TweetPoll> getTweetPollsbyHashTagNameAndDateRange( | |
final String tagName, | |
final SearchPeriods period) { | |
final DetachedCriteria detached = DetachedCriteria | |
.forClass(TweetPoll.class) | |
.createAlias("hashTags", "hashTags") | |
.setProjection(Projections.id()) | |
.add(Subqueries.propertyIn( | |
"hashTags.hashTagId", |
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 Controller = Marionette.Controller.extend({ | |
initialize : function(options) { | |
//TODO: initialize code | |
}, | |
start: function(){ | |
//TODO: code to start | |
} | |
}); |
- Run Android Devices and enable remote debugging
- ADB should be running in your machine (http://developer.android.com/tools/help/adb.html)
$you> adb start-server
$you> adb devices
List of devices attached
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
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension | |
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum error before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. |
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
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>wagon-maven-plugin</artifactId> | |
<version>1.0-beta-1</version> | |
<executions> | |
<execution> | |
<id>download-dojo</id> | |
<phase>generate-resources</phase> | |
<goals> | |
<goal>download-single</goal> |
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
<div id="chart" data-dojo-type="me/web/widget/tweetpoll/detail/TweetPollChartDetail" | |
tweetPollid="${tweetpoll.id}" | |
question="${tweetpoll.questionBean.questionName}" | |
completed="${tweetpoll.completed}" | |
username="${tweetpoll.ownerUsername}"></div> |
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 spawn = require("child_process").spawn; | |
var Q = require("q"); | |
/** | |
* Wrap executing a command in a promise | |
* @param {string} command command to execute | |
* @param {Array<string>} args Arguments to the command. | |
* @param {string} cwd The working directory to run the command in. | |
* @return {Promise} A promise for the completion of the command. | |
*/ |
OlderNewer