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
| static Form<Task> taskFrom = Form.form(Task.class); | |
| public Result index() { | |
| return ok(setCache.render(taskFrom)); | |
| } | |
| public Result setTask() { | |
| // get values from form | |
| Form<Task> filledForm = taskFrom.bindFromRequest(); | |
| Task task = filledForm.get(); |
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 htmlText = "空は<font color=\"blue\">青い</font>。<br>" + | |
| "An apple is <font color=\"red\">red</font>." | |
| var err:NSError? | |
| self.htmlLabel.attributedText = NSAttributedString( | |
| data: htmlText.dataUsingEncoding(NSUnicodeStringEncoding, allowLossyConversion: true), | |
| options: [NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType], | |
| documentAttributes: nil, | |
| error: &err) | |
| self.htmlLabel.font = UIFont(name: "System", size: 14) |
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
| if [ -f ~/.bashrc ] ; then | |
| . ~/.bashrc | |
| fi |
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
| PATH=$PATH:/Applications/ADT/sdk/platform-tools | |
| PS1="\[\033[0;35m\][\u@\h \W/ \t]\[\e[00m\]\$ " |