My current recommended reading and awesome resources.
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
import Cocoa | |
import MediaPlayer | |
let bundle = CFBundleCreate(kCFAllocatorDefault, NSURL(fileURLWithPath: "/System/Library/PrivateFrameworks/MediaRemote.framework")) | |
let MRMediaRemoteRegisterForNowPlayingNotificationsPointer = CFBundleGetFunctionPointerForName( | |
bundle, "MRMediaRemoteRegisterForNowPlayingNotifications" as CFString | |
) | |
typealias MRMediaRemoteRegisterForNowPlayingNotificationsFunction = @convention(c) (DispatchQueue) -> Void | |
let MRMediaRemoteRegisterForNowPlayingNotifications = unsafeBitCast(MRMediaRemoteRegisterForNowPlayingNotificationsPointer, to: MRMediaRemoteRegisterForNowPlayingNotificationsFunction.self) |
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
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { | |
binding = DataBindingUtil.inflate(inflater, R.layout.your_fragment, container, false) | |
binding.homeAction.setOnClickListener { select(R.id.home_action) } | |
binding.likesAction.setOnClickListener { select(R.id.likes_action) } | |
binding.searchAction.setOnClickListener { select(R.id.search_action) } | |
binding.profileAction.setOnClickListener { select(R.id.profile_action) } | |
return binding.root | |
} | |
fun select(id: Int) { |
My evolving online reading list and recommendations. Great sites, one-off articles, and more.
Starting a business is like roaming in a fog: you often feel like you have no idea where exactly you are going or what to do next. What seemed simple turns into weeks-long research, with dozens of opened browser tabs full of jargon, self-promotion and contradictory advice. It would be nice to have some kind of a map.
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |