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
def gabu(id: String, bid: String) = Action { | |
Project.findOneByID(id) match { | |
case Some(project: Project) => Build.findOneByID(new ObjectId(bid)) match { | |
case Some(build: Build) => | |
// etc... | |
Ok(views.html.gabu(build) | |
case None => NotFound | |
} | |
case None => NotFound | |
} |
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
import play.api._ | |
Play.start(new Application(new java.io.File("."), getClass.getClassLoader, None, Mode.Dev)) |
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
var navGroup, rootWindow; | |
Ti.UI.setBackgroundColor('#fff'); | |
rootWindow = Ti.UI.createWindow(); | |
navGroup = Ti.UI.iPhone.createNavigationGroup({ | |
window: new (require('ui/title_window').TitleWindow)() | |
}); | |
rootWindow.add(navGroup); | |
rootWindow.open(); |
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
package net.gabuchan.devquiz.slidingpuzzle; | |
import java.util.Arrays; | |
public class Solver { | |
private static final char[] pieces = | |
new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', | |
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', | |
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' }; | |
private static final char UP = 'U'; |
NewerOlder