I hereby claim:
- I am dchohfi on github.
- I am dchohfi (https://keybase.io/dchohfi) on keybase.
- I have a public key ASBWalnthQyyVV-q4_YWfzgvlag0-1URL_Hd3wTb9CrzcQo
To claim this, I am signing this object:
extension Publisher { | |
public func inoutScan<Result>( | |
_ initialResult: Result, | |
_ nextPartialResult: @escaping (inout Result, Output) -> Void | |
) -> Publishers.InoutScan<Self, Result> { | |
return .init(upstream: self, | |
initialResult: initialResult, | |
nextPartialResult: nextPartialResult) | |
} |
I hereby claim:
To claim this, I am signing this object:
import UIKit | |
// swiftlint:disable file_length | |
extension UIColor { | |
static var link: UIColor { | |
return UIColor(r: 0, g: 152, b: 238) | |
} | |
static var toastNotification: UIColor { | |
return .white |
import UIKit | |
final class PageViewControllerSegmentedAdapter: NSObject { | |
private let pageViewController: UIPageViewController | |
fileprivate let segmentControl: UISegmentedControl | |
fileprivate let viewControllers: [UIViewController] | |
fileprivate var selectedIndex: Int = 0 | |
init(pageViewController: UIPageViewController, segmentControl: UISegmentedControl, viewControllers: [UIViewController]) { |
- (void)changeDots { | |
switch (self.hasDots) { | |
case NO: | |
[_viDots removeAllActions]; | |
[_viDots runAction:[NPPAction fadeOut]]; | |
break; | |
case YES: | |
[_viDots removeAllActions]; | |
[_viDots runAction:[NPPAction fadeIn]]; | |
default: |
<persistence-unit name=""> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |
<class></class> | |
<properties> | |
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/> | |
<property name="hibernate.hbm2ddl.auto" value="update"/> | |
<property name="hibernate.show_sql" value="true"/> | |
<property name="hibernate.format_sql" value="true"/> |
#import <Foundation/Foundation.h> | |
@interface Contato : NSObject <NSCoding> | |
@property (nonatomic, retain) NSString *nome; | |
@property (nonatomic, retain) NSString *email; | |
@property (nonatomic, retain) NSString *endereco; | |
@property (nonatomic, retain) NSString *telefone; | |
@property (nonatomic, retain) NSString *site; | |
@property (nonatomic, retain) UIImage *imagem; |
create table tarefas (id BIGINT NOT NULL AUTO_INCREMENT,descricao VARCHAR(255),finalizado BOOLEAN,dataFinalizacao DATE,primary key (id)); | |
create table usuarios (login varchar(255), senha varchar(255)); |
// | |
// JSONParser.m | |
// BusaoSP | |
// | |
// Created by Diego Chohfi on 4/12/12. | |
// Copyright (c) 2012 None. All rights reserved. | |
// | |
#import "JSONParser.h" | |
#import <objc/runtime.h> |
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section | |
{ | |
float width = tableView.bounds.size.width; | |
int fontSize = 18; | |
int padding = 10; | |
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, width, fontSize)]; | |
view.backgroundColor = [UIColor colorWithWhite:0 alpha:0]; | |
view.userInteractionEnabled = YES; | |
view.tag = section; |