Edit: moved to here https://blog.haicon.moe/posts/logitech-f310-to-work-with-macbook-usb-c-port/
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
| /* | |
| * inspired by https://gist.github.com/astamicu/eb351ce10451f1a51b71a1287d36880f | |
| * modified to remove all liked Youtube videos and to work with Youtube as of June 2023 | |
| */ | |
| setInterval(function () { | |
| videos = document.getElementsByTagName('ytd-playlist-video-renderer'); | |
| // when a video is removed, the tag gets an 'is-dimissed' attribute, which tripped the original script | |
| var notDismissedIndex = 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
| # I'll be doing another one for Linux, but this one will give you | |
| # a pop up notification and sound alert (using the built-in sounds for macOS) | |
| # Requires https://github.com/caarlos0/timer to be installed | |
| # Mac setup for pomo | |
| alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
| -title 'Work Timer is up! Take a Break 😊'\ | |
| -appIcon '~/Pictures/pumpkin.png'\ | |
| -sound Crystal" |
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
| // I re-typed what I saw in reference 3 below, | |
| // went to Liked videos page on YouTube[1] while logged in, | |
| // pasted that into browser dev tools console (Google Chrome Version 97.0.4692.99 (Official Build) (x86_64)), | |
| // pressed enter, and it seemed to do its thing, for the most part | |
| // (when I refreshed the page, there was still 1 video remaining). | |
| // [1] as of 2022-01-23 that’s at https://www.youtube.com/playlist?list=LL | |
| // context: https://twitter.com/QiaochuYuan/status/1485164256970510340 | |
| // references: |
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
| pacman -S --needed git base-devel | |
| git clone https://aur.archlinux.org/yay.git | |
| cd yay | |
| makepkg -si | |
| yay -S flutter | |
| java -version | |
| sudo pacman -S jre8-openjdk |
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
| iOS Code Review Checklist | |
| Avoid Type Inference | |
| Prefer using Higher Order Functions | |
| Write DRY code (Don’t Repeat Yourself) | |
| Make sure that there are no force unwraps | |
| Make sure that there are no retain cycles | |
| Check if any deprecated API is being used | |
| Check if any hardcoded checks (generally strings) can be changed to enum. | |
| Prefer enum, switch over if else. |
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
| @resultBuilder | |
| public struct ArrayBuilder<Element> { | |
| public static func buildPartialBlock(first: Element) -> [Element] { [first] } | |
| public static func buildPartialBlock(first: [Element]) -> [Element] { first } | |
| public static func buildPartialBlock(accumulated: [Element], next: Element) -> [Element] { accumulated + [next] } | |
| public static func buildPartialBlock(accumulated: [Element], next: [Element]) -> [Element] { accumulated + next } | |
| // Empty Case | |
| public static func buildBlock() -> [Element] { [] } | |
| // If/Else |
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
| func performUsingGroup() { | |
| let dq1 = DispatchQueue.global(qos: .default) | |
| let dq2 = DispatchQueue.global(qos: .default) | |
| let group = DispatchGroup() | |
| for i in 1...3 { | |
| dq1.async(group: group) { | |
| print("\(#function) DispatchQueue 1: \(i)") | |
| } | |
| } |
Sources include, but not limited to:
- https://izeeshan.wordpress.com/2015/03/31/interview-stuff/
- https://github.com/9magnets/iOS-Developer-and-Designer-Interview-Questions
- https://www.quora.com/What-do-startups-look-for-in-a-candidate-during-an-iOS-technical-interview-What-do-they-want-to-hear
- https://www.linkedin.com/pulse/ios-interview-questions-senior-developers-alex-bush
- https://www.raywenderlich.com/110982/swift-interview-questions-answers
NewerOlder