なかざん
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
| /** | |
| * "003: Fizz" | |
| * "004: 4" | |
| * "005: Fizz" | |
| * のように、"count: word"の形式で、渡された数字と処理済みの文字を整形して表示する | |
| */ | |
| var logCount = (count: number, word = String(count)) => console.log(("00" + count).slice(-3) + ": " + word); | |
| for (var i = 1; i <= 100; i++) { | |
| if (i % 15 === 0) { |
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
| public class HelloWorld { | |
| public static void main (String[] args) { | |
| User tom = new User("tom"); | |
| SubUser bob = new SubUser("bob"); | |
| tom.sayHi(); | |
| bob.sayHi(); // オーバーライドしたのでUserと挙動が違うはず | |
| } | |
| } | |
| class User { |
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
| * { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| } | |
| body { | |
| background: #dfd; | |
| font: 30px sans-serif; | |
| } |
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
| #!/bin/sh | |
| PREFIX="I'm drunk now" | |
| MESSAGE="[${PREFIX}] `date +\"%Y/%m/%d %T\"`" | |
| if [ $# -eq 0 ] | |
| then | |
| git add -u | |
| git commit -m "${MESSAGE}" | |
| echo 'You should review this commit later, with sober senses.' |
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 info.nkzn.sample.hogehoge; | |
| public class Greeter { | |
| private String word; | |
| public Greeter(String word) { | |
| this.word = word; | |
| } |
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 jp.water_cell.sample.jpp_lombok.model; | |
| import net.vvakame.util.jsonpullparser.annotation.JsonKey; | |
| import net.vvakame.util.jsonpullparser.annotation.JsonModel; | |
| /** | |
| * 下記のJSONをパースするために必要なModelクラス。 | |
| * {"one":"1", "two":"2", "three":"3", "four":"4", "five":"5", "six":"6", "seven":"7", "eight":"8", "nine":"9", "ten":"10"} | |
| */ | |
| @JsonModel |
