This gist is a note for:
- Macbook 12' 2015: Macbook8,1
- Macbook 12' 2016: Macbook9,1
- Macbook 12' 2017: Macbook10,1
Follwing https://learn.omacom.io/2/the-omarchy-manual/97/mac-support is needed.
This gist is a note for:
Follwing https://learn.omacom.io/2/the-omarchy-manual/97/mac-support is needed.
| body.app-body.layout-multiple-columns.theme-mastodon-light, | |
| body.app-body.layout-multiple-columns.theme-default, | |
| body.app-body.layout-multiple-columns.theme-contrast { | |
| overflow: hidden !important; | |
| } | |
| body.app-body.layout-multiple-columns.theme-mastodon-light .columns-area, | |
| body.app-body.layout-multiple-columns.theme-default .columns-area, | |
| body.app-body.layout-multiple-columns.theme-contrast .columns-area { | |
| margin: 0 -1px !important; |
| // | |
| // Based on: https://blog.beecomedigital.com/2015/06/27/developing-a-filesystemwatcher-for-os-x-by-using-fsevents-with-swift-2/ | |
| // | |
| import Foundation | |
| public struct Event: CustomStringConvertible { | |
| public let eventId: FSEventStreamEventId | |
| public let eventPath: String |
| class DelayedBlockOperation: NSOperation { | |
| private var delay: NSTimeInterval = 0 | |
| private var block: (() -> Void)? = nil | |
| private var queue: dispatch_queue_t = dispatch_get_main_queue() | |
| override var asynchronous: Bool { return true } | |
| override var executing : Bool { | |
| get { return _executing } | |
| set { | |
| willChangeValueForKey("isExecuting") |
| /* Sometimes it's pretty easy to run ito troubles with React ES6 components. | |
| Consider the following code: */ | |
| class EventStub extends Component { | |
| componentDidMount() { | |
| window.addEventListener('resize', this.onResize.bind(this)); //notice .bind | |
| } | |
| componentWillUnmount() { | |
| window.removeEventListener('resize', this.onResize.bind(this)); |
| #import <Foundation/Foundation.h> | |
| int main (int argc, const char **argv) { | |
| @autoreleasepool { | |
| dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
| dispatch_sync(dispatch_get_main_queue(), ^{ | |
| NSLog(@"is main thread? %i", (int)[NSThread isMainThread]); | |
| }); | |
| }); |
| class GooglePlayVerification | |
| require 'google/api_client' | |
| # Refer: | |
| # https://code.google.com/p/google-api-ruby-client/issues/detail?id=72 | |
| # and | |
| # http://jonathanotto.com/blog/google_oauth2_api_quick_tutorial.html | |
| # and | |
| # http://milancermak.wordpress.com/2012/08/24/server-side-verification-of-google-play-subsc/ | |
| GOOGLE_KEY = 'xxx-xxx.apps.googleusercontent.com' |
| - (IBAction)handleTap:(id)sender | |
| { | |
| BOOL isHiding = !_statusBarHidden; | |
| _statusBarHidden = isHiding; | |
| [UIView animateWithDuration:UINavigationControllerHideShowBarDuration delay:0 options:0 | |
| animations:^{ | |
| [self setNeedsStatusBarAppearanceUpdate]; | |
| } | |
| completion:NULL]; |
| static Boolean PSPDFCaseInsensitiveEqualCallback(const void *a, const void *b) { | |
| id objA = (__bridge id)a, objB = (__bridge id)b; | |
| Boolean ret = FALSE; | |
| if ([objA isKindOfClass:NSString.class] && [objB isKindOfClass:NSString.class]) { | |
| ret = ([objA compare:objB options:NSCaseInsensitiveSearch|NSLiteralSearch] == NSOrderedSame); | |
| }else { | |
| ret = [objA isEqual:objB]; | |
| } | |
| return ret; | |
| } |