Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
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 Foundation | |
| func deferTest(){ | |
| print("defer test: function start") | |
| defer { | |
| print("exit soon") | |
| // error occurred! -- 'return' cannot transfer control out of defer statement | |
| // return | |
| } | |
| defer { |
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 Foundation | |
| class GrandParentClass { | |
| func rootFunc(){ | |
| print("first function") | |
| } | |
| } | |
| class ParentClass: GrandParentClass{ | |
| var childNo : Int = 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
| int flame = A0; | |
| int val = 0; | |
| void setup(){ | |
| Serial.begin(9600); | |
| } | |
| void loop(){ | |
| Serial.println("Detecting..."); | |
| val = analogRead(flame); |
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
| π Morning 23 commits βββββββββββββββββββββ 15.9% | |
| π Daytime 13 commits βββββββββββββββββββββ 9.0% | |
| π Evening 50 commits βββββββββββββββββββββ 34.5% | |
| π Night 59 commits βββββββββββββββββββββ 40.7% |
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 Test{ | |
| public static void main(String[] args){ | |
| System.out.prinln("Intended Error"); | |
| } | |
| } |