This file contains 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
#team management, dashboards, etc | |
https://www.notion.so/ | |
#communication | |
slack | |
#ui/ux | |
sketch, | |
zeplin |
This file contains 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
# 1 | |
/usr/libexec/PlistBuddy -c "Set :GIT_COMMIT_HASH `git rev-parse HEAD`" "${TARGET_BUILD_DIR}"/"${INFOPLIST_PATH}" | |
# 2 | |
[[NSBundle mainBundle] infoDictionary][@"GIT_COMMIT_HASH"]; |
This file contains 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
# best visual presentation about cough, pneumonia, reasons and processes taking place during illness | |
https://upload.wikimedia.org/wikipedia/commons/transcoded/8/8e/Pneumonia.webm/Pneumonia.webm.480p.webm |
This file contains 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
#will show you your processes, with their parent ID in the second column. | |
ps -xo pid,ppid,stat,command | |
#kills processes | |
ps aux | grep -ie "process name" | awk '{print $2}' | xargs kill -9 |
This file contains 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
#Build | |
Build/ | |
DerivedData/ | |
#Various settings | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 |
This file contains 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
#!/bin/bash | |
#advance speed of notifications | |
defaults write com.apple.notificationcenterui bannerTime 1.0 | |
#Don’t animate opening applications from the Dock | |
defaults write com.apple.dock launchanim -bool false | |
#Speed up Mission Control animations | |
defaults write com.apple.dock expose-animation-duration -float 0.1 |
This file contains 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
@interface Tools: NSObject | |
+ (UIColor *)colorWithHex:(NSUInteger)hex; | |
@end | |
@implementation Tools | |
+ (UIColor *)colorWithHex:(NSUInteger)hex |
This file contains 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
@interface Tools: NSObject | |
+ (UIColor *)colorWithHex:(NSUInteger)hex; | |
@end | |
@implementation Tools | |
+ (UIColor *)colorWithHex:(NSUInteger)hex |
This file contains 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
#to gen string files | |
find ./ -name "*.m" -exec echo {} \; -exec genstrings -a -o en.lproj {} \; | |
#proper macros | |
NSLocalizedStringWithDefaultValue |
This file contains 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
extension UIVisualEffectView { | |
private var filterLayer: CALayer? { | |
return layer.sublayers?.first | |
} | |
private var blurFilter: NSObject? { | |
return filterLayer? | |
.filters?.flatMap({ $0 as? NSObject }) | |
.first(where: { $0.value(forKey: "name") as? String == "gaussianBlur" }) |