Skip to content

Instantly share code, notes, and snippets.

View oboje's full-sized avatar
🎯
Focusing

Igor Popov oboje

🎯
Focusing
  • New York
View GitHub Profile
@oboje
oboje / Tools
Last active October 19, 2019 19:34
#team management, dashboards, etc
https://www.notion.so/
#communication
slack
#ui/ux
sketch,
zeplin
# 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"];
# 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
@oboje
oboje / cmds
Last active October 7, 2016 13:41
Unix system managements utils
#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
@oboje
oboje / .gitignore
Created October 18, 2016 10:25
iOS GitIgnore
#Build
Build/
DerivedData/
#Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
@oboje
oboje / config.bash
Last active October 19, 2019 19:21
macOS Sys Tweaks
#!/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
@oboje
oboje / Tools.m
Created November 15, 2016 12:09
Obj-C Categories / Helpers
@interface Tools: NSObject
+ (UIColor *)colorWithHex:(NSUInteger)hex;
@end
@implementation Tools
+ (UIColor *)colorWithHex:(NSUInteger)hex
@oboje
oboje / Tools.m
Created November 15, 2016 12:09
Obj-C Categories / Helpers
@interface Tools: NSObject
+ (UIColor *)colorWithHex:(NSUInteger)hex;
@end
@implementation Tools
+ (UIColor *)colorWithHex:(NSUInteger)hex
@oboje
oboje / gist:8d18df1a1c39d3ea3440c38d9a30a515
Last active November 30, 2016 06:32
Localization: making strings file
#to gen string files
find ./ -name "*.m" -exec echo {} \; -exec genstrings -a -o en.lproj {} \;
#proper macros
NSLocalizedStringWithDefaultValue
@oboje
oboje / UIVisualEffect.swift
Created January 21, 2017 12:26 — forked from ilyapuchka/UIVisualEffect.swift
(Ab)using UIVisualEffectView effect settings
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" })