Skip to content

Instantly share code, notes, and snippets.

View devejs's full-sized avatar

Eunjee Shin devejs

View GitHub Profile
@devejs
devejs / main.swift
Last active October 15, 2020 16:50
[Swift] defer keyword test
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 {
@devejs
devejs / main.swift
Created October 13, 2020 11:24
[Swift] Extension Test
import Foundation
class GrandParentClass {
func rootFunc(){
print("first function")
}
}
class ParentClass: GrandParentClass{
var childNo : Int = 0
@devejs
devejs / flame_ex.ino
Created October 3, 2020 21:34
Flame Detection Sensor for Arduino
int flame = A0;
int val = 0;
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.println("Detecting...");
val = analogRead(flame);
@devejs
devejs / I'm a night πŸ¦‰
Last active October 29, 2020 00:13
When Do I Commit?
🌞 Morning 23 commits β–ˆβ–ˆβ–ˆβ–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 15.9%
πŸŒ† Daytime 13 commits β–ˆβ–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 9.0%
πŸŒƒ Evening 50 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 34.5%
πŸŒ™ Night 59 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 40.7%
@devejs
devejs / commit-message-guidelines.md
Created September 12, 2020 14:53 — forked from robertpainsi/commit-message-guidelines.md
Commit message guidelines

Commit Message Guidelines

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
@devejs
devejs / Test.java
Created August 19, 2019 10:29
Gist Test Code
public class Test{
public static void main(String[] args){
System.out.prinln("Intended Error");
}
}