Tutorial and tips for GitHub Actions workflows
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
| protocol ExpressibleByString { | |
| init(_ string: String) | |
| } | |
| extension String: ExpressibleByString { | |
| init(_ string: String) { | |
| self = string | |
| } | |
| } |
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 android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import androidx.appcompat.app.AppCompatActivity | |
| import androidx.fragment.app.DialogFragment | |
| import androidx.fragment.app.Fragment | |
| import androidx.lifecycle.DefaultLifecycleObserver | |
| import androidx.lifecycle.Lifecycle | |
| import androidx.lifecycle.LifecycleOwner | |
| import androidx.viewbinding.ViewBinding |
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 URLProtocolMock: URLProtocol { | |
| /// Dictionary maps URLs to tuples of error, data, and response | |
| static var mockURLs = [URL?: (error: Error?, data: Data?, response: HTTPURLResponse?)]() | |
| override class func canInit(with request: URLRequest) -> Bool { | |
| // Handle all types of requests | |
| return true | |
| } | |
| override class func canonicalRequest(for request: URLRequest) -> URLRequest { |
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 BaseViewController<V: BaseViewModel<M>, M: Persistable>: UIViewController { | |
| let viewModel: V | |
| let disposeBag = DisposeBag() | |
| private var progress: MBProgressHUD? | |
| required init(viewModel: V) { | |
| self.viewModel = viewModel |
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
| // From http://www.instructables.com/id/How-to-easily-play-music-with-buzzer-on-arduino-Th/ | |
| // NB: ALL NOTES DEFINED WITH STANDARD ENGLISH NAMES, EXCEPT FROM "A" | |
| //THAT IS CALLED WITH THE ITALIAN NAME "LA" BECAUSE A0,A1...ARE THE ANALOG PINS ON ARDUINO. | |
| // (Ab IS CALLED Ab AND NOT LAb) | |
| #define C0 16.35 | |
| #define Db0 17.32 | |
| #define D0 18.35 | |
| #define Eb0 19.45 | |
| #define E0 20.60 |
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
| // From http://www.instructables.com/id/How-to-easily-play-music-with-buzzer-on-arduino-Th/ | |
| // NB: ALL NOTES DEFINED WITH STANDARD ENGLISH NAMES, EXCEPT FROM "A" | |
| //THAT IS CALLED WITH THE ITALIAN NAME "LA" BECAUSE A0,A1...ARE THE ANALOG PINS ON ARDUINO. | |
| // (Ab IS CALLED Ab AND NOT LAb) | |
| #define C0 16.35 | |
| #define Db0 17.32 | |
| #define D0 18.35 | |
| #define Eb0 19.45 | |
| #define E0 20.60 |
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
| services.Configure<WebEncoderOptions>(options => | |
| { | |
| options.TextEncoderSettings = new TextEncoderSettings(UnicodeRanges.All); // 한글이 인코딩되는 문제 해결 | |
| }); |
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
| META-INF/ | |
| *.class |
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 au.id.alexn; | |
| import android.content.Context; | |
| import android.util.AttributeSet; | |
| import android.util.Log; | |
| import android.view.MotionEvent; | |
| import android.view.ScaleGestureDetector; | |
| import android.view.View; | |
| import android.widget.FrameLayout; |
NewerOlder