I hereby claim:
- I am k06a on github.
- I am k06a (https://keybase.io/k06a) on keybase.
- I have a public key ASCluXHEStF-cY5wgzsAWQsU50gb7uxtC1fpJlQYS-22_Qo
To claim this, I am signing this object:
🐶 Main thread was blocked for 0.17 sec | |
🐶 Main thread is still blocked for 0.27 sec | |
🐶 Main thread is still blocked for 0.37 sec | |
🐶 Main thread is still blocked for 0.48 sec | |
🐶 Main thread is still blocked for 0.60 sec | |
🐶 Main thread is still blocked for 0.71 sec | |
🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶 Collected 39 reports for 0.8 sec: | |
100.000% _start (in libdyld.dylib) | |
| 100.000% __mh_execute_header (in xctest) | |
| | 100.000% __XCTestMain (in XCTest) |
@interface LabelMaskedView : UIView | |
@property (strong, nonatomic) UIView *maskView; | |
@property (assign, nonatomic) CGSize cachedIntrisincContentSize; | |
@end | |
@implementation LabelMaskedView | |
- (instancetype)initWitLabel:(UIView *)maskView { |
static NSTimeInterval const kMinInactiveTime = 0.2; | |
// | |
@interface WhenNoScrollingExecutor : NSObject | |
@property (assign, nonatomic) BOOL runLoopModeWasUITrackingAgain; | |
- (void)executeBlock:(void (^)())block; | |
- (void)executeBlock:(void (^)())block completion:(void (^_Nullable)())completion; |
#import <JRSwizzle/JRSwizzle.h> | |
@implementation AVPlayerItem (MLWPerformance) | |
+ (void)load { | |
[AVPlayerItem jr_swizzleMethod:NSSelectorFromString(@"_attachToFigPlayer") withMethod:@selector(mlw_attachToFigPlayer) error:nil]; | |
} | |
- (void)mlw_attachToFigPlayer { | |
static dispatch_queue_t queue = nil; |
#import <AVFoundation/AVFoundation.h> | |
@interface MLWAsyncAVPlayer : AVPlayer | |
@end |
I hereby claim:
To claim this, I am signing this object:
pragma solidity ^0.4.0; | |
contract VanityTask { | |
function lengthOfCommonPrefix(bytes a, bytes b) constant returns(uint) { | |
uint len = (a.length <= b.length) ? a.length : b.length; | |
for (uint i = 0; i < len; i++) { | |
if (a[i] != b[i]) { | |
return i; | |
} |
# Installing ffmpeg with H265 support | |
brew tap varenc/ffmpeg | |
brew install varenc/ffmpeg/ffmpeg --with-fdk-aac --HEAD | |
# Installing mp4edit tool | |
brew install bento4 |
var abi = require('ethereumjs-abi'); | |
var x = abi.simpleEncode("constructor(uint256,uint256,uint256,address,address,address,address)", | |
1508878283, | |
1519431362, | |
4700, | |
"0x0b8e27013dfA822bF1cc01b6Ae394B76DA230a03", | |
"0x5F85A0e9DD5Bd2F11a54b208427b286e9B0B519F", | |
"0x7F781d08FD165DBEE1D573Bdb79c43045442eac4", | |
"0x98bf67b6a03DA7AcF2Ee7348FdB3F9c96425a130"); |
// https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel | |
function countBits(uint256 v) public constant returns(uint256) { | |
v = v - ((v >> 1) & uint256(~uint256(0)/3)); | |
v = (v & uint256(~uint256(0)/15*3)) + ((v >> 2) & uint256(~uint256(0)/15*3)); | |
v = (v + (v >> 4)) & uint256(~uint256(0)/255*15); | |
return uint256(v * (uint256(~uint256(0)/255))) >> (32 - 1) * 8; | |
} |