if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) {
[self setEdgesForExtendedLayout:UIRectEdgeRight|UIRectEdgeBottom|UIRectEdgeLeft];
}
This file contains hidden or 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
// | |
// GPUImageTextureInput+CIImage.h | |
// GPUImage | |
// | |
// Created by Sam Soffes on 3/4/14. | |
// Copyright (c) 2014 Sam Soffes. All rights reserved. | |
// | |
#import "GPUImageTextureInput.h" |
This file contains hidden or 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
CREATE TABLE if NOT EXISTS users ( | |
user_id SERIAL PRIMARY KEY, | |
app_user_id TEXT NOT NULL DEFAULT '', | |
push_id TEXT NOT NULL DEFAULT '', | |
device_id TEXT NOT NULL DEFAULT '', | |
sys_properties JSONB NOT NULL DEFAULT '{}', | |
user_properties JSONB NOT NULL DEFAULT '{}', | |
time_created TIMESTAMPTZ NOT NULL DEFAULT now(), | |
time_updated TIMESTAMPTZ NOT NULL DEFAULT now() | |
); |
This file contains hidden or 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
INSERT INTO users(app_user_id) SELECT user_id FROM generate_series(1,1000000) user_id; | |
INSERT INTO events(user_id, event_name, event_time, event_properties) | |
SELECT trunc(random() * 900000 + 1), trunc(random() * 10 + 1)::text | |
,NOW() - '1 hour'::INTERVAL * (random() * 1000 + 1), '{"age": 80}' | |
FROM generate_series(1,10000000) id; | |
SELECT count(*) FROM events |
This file contains hidden or 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
CREATE STREAM kafka_event_stream(message json); | |
CREATE STREAM event_stream(app_id text, user_id INT, event_name text, event_time timestamp) | |
CREATE CONTINUOUS TRANSFORM t AS | |
SELECT | |
app_id::text AS app_id, | |
cast(event::json ->> 'userId' AS int) AS user_id, |
This file contains hidden or 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
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
<excludes> | |
<exclude>f2e/node_modules/**</exclude> | |
</excludes> | |
<filtering>false</filtering> | |
</resource> | |
</resources> |
This file contains hidden or 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
###################### | |
# Options | |
###################### | |
REVEAL_ARCHIVE_IN_FINDER=false | |
FRAMEWORK_NAME="${PROJECT_NAME}" | |
SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework" |
This file contains hidden or 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
- (id)initWithFrame:(CGRect)frame | |
{ | |
self = [super initWithFrame:frame]; | |
if (self) { | |
[self load]; | |
} | |
return self; | |
} | |
- (id)initWithCoder:(NSCoder *)aDecoder |
This file contains hidden or 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
let rect = CGRectMake(10, 10, 30, 30) | |
let extremePoint = CGPoint(x: CGRectGetWidth(view.bounds), y: CGRectGetHeight(view.bounds)) | |
let circleMaskPathInitial = UIBezierPath(ovalInRect: CGRectMake(10, 10, 30, 30)) | |
let radius = sqrt((extremePoint.x * extremePoint.x) + (extremePoint.y * extremePoint.y)) | |
let circleMaskPathFinal = UIBezierPath(ovalInRect: CGRectInset(rect, -radius, -radius)) | |
let maskLayer = CAShapeLayer() | |
maskLayer.path = circleMaskPathInitial.CGPath | |
view.layer.mask = maskLayer |
This file contains hidden or 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
class AppCoordinator: NSObject { | |
var window: UIWindow! | |
static let shared = AppCoordinator() | |
func goToHome() { | |
let target = R.storyboard.home.home()! | |
animateTo(vc: target) | |
} |
NewerOlder