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
| { | |
| (paramerters) -> return type in | |
| statements | |
| } | |
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
| class ClassName<TypeParameter> { | |
| //Class statements | |
| } | |
| var class = ClassName<TypeParameter>() |
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
| stream | |
| .buffer(関数) | |
| .map(関数) | |
| .filter(関数) | |
| .subscribe(処理) |
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
| UIColor.blackColor().CGColor |
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 SYButton: UIButton { | |
| ... |
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
| enum Japan { | |
| enum Tokyo: String { | |
| case shibuya, shinagawa, ebisu | |
| } | |
| enum Kanagawa: String { | |
| case yokohama, kawasaki, sagamihara | |
| } | |
| case tokyo(Tokyo) | |
| case kanagawa(Kanagawa) | |
| } |
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
| $ pod lib create [Library name] |
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
| $ git commit -am"commit message"` |
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 DegitObserver implements Observer { | |
| public void update(NumberGenerator generator) { | |
| System.out.println("DegitObserver:" + generator.getNumber()); | |
| try { | |
| Thread.sleep(100); | |
| } catch (InterruptedException e) { | |
| } | |
| } | |
| } |
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
| let group = DispatchGroup() | |
| let queue1 = DispatchQueue(label: "com.GCD.groupQueue1") | |
| let queue2 = DispatchQueue(label: "com.GCD.groupQueue2") | |
| let queue3 = DispatchQueue(label: "com.GCD.groupQueue3") | |
| queue1.async(group: group) { | |
| sleep(4) | |
| print("excute queue1") | |
| } |