Skip to content

Instantly share code, notes, and snippets.

Felipe Sabino felipesabino

Block or report user

Report or block felipesabino

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@felipesabino
felipesabino / keybase.md
Created Feb 8, 2017
Keybase identity proof
View keybase.md

Keybase proof

I hereby claim:

  • I am felipesabino on github.
  • I am felipesabino (https://keybase.io/felipesabino) on keybase.
  • I have a public key ASBk0qjwacKBiWX2X1mmEEeJYkg48UN2SiTzECBiU8Gy8wo

To claim this, I am signing this object:

View swift-problem.swift
//: Playground - noun: a place where people can play
import Foundation
// MARK: Protocols
protocol UserRequestProtocol {
var name: String { get set }
var age: Int { get set }
var password: String { get set }
var likesBacon: Bool { get set }
View gist:61d0390d5c8cab7ecc1923c114719465
let rx_request = Observable<Value>.create { (observer) -> Disposable in
let requestReference = Alamofire.request(.POST, url, parameters: payload)
.responseJSON(completionHandler: { (response) in
if let value = response.result.value {
observer.onNext(value)
observer.onCompleted()
}else if let error = response.result.error {
observer.onError(error)
}
})
View gist:4624d60884e895ba474dc653979742cc
let rx_request = Observable<Value>.create { (observer) -> Disposable in
let requestReference = Alamofire.request(.POST, url, parameters: payload)
.responseJSON(completionHandler: { (response) in
if let value = response.result.value {
observer.onNext(value)
observer.onCompleted()
}else if let error = response.result.error {
observer.onError(error)
}
})
View gist:585dc0ab64fd34a6488c013f65913ef1
let rx_request = Observable<Value>.create { (observer) -> Disposable in
let requestReference = Alamofire.request(.POST, url, parameters: payload)
.responseJSON(completionHandler: { (response) in
if let value = response.result.value {
observer.onNext(value)
observer.onCompleted()
}else if let error = response.result.error {
observer.onError(error)
}
})
View verify.txt
Verifying that +felipesabino is my blockchain ID. https://onename.com/felipesabino
@felipesabino
felipesabino / Podfile
Created Oct 23, 2015
ESRI ios SDK 1.2.0 Build errors
View Podfile
# Uncomment this line to define a global platform for your project
# platform :ios, '6.0'
target 'geotrigger-sample' do
pod 'GeotriggerSDK', '1.2.0'
end
View Dockerfile
FROM ubuntu:14.10
WORKDIR ~/
# Install Java
RUN apt-get purge openjdk*
RUN apt-get -y install software-properties-common
RUN add-apt-repository ppa:webupd8team/java
RUN apt-get update
@felipesabino
felipesabino / error.log
Last active Aug 29, 2015
kafka + zookeeper + kafka-manager-docker
View error.log
manager_1 | [info] play - Application started (Prod)
manager_1 | [info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
zookeeper_1 | 2015-02-17 05:55:48,001 [myid:] - INFO [SessionTracker:ZooKeeperServer@347] - Expiring session 0x14b95e0d7470001, timeout of 40000ms exceeded
zookeeper_1 | 2015-02-17 05:55:48,001 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@494] - Processed session termination for sessionid: 0x14b95e0d7470001
manager_1 | [INFO] [02/17/2015 06:15:27.564] [kafka-manager-system-akka.actor.default-dispatcher-2] [akka://kafka-manager-system/user/kafka-manager] Starting curator...
manager_1 | [INFO] [02/17/2015 06:15:27.632] [kafka-manager-system-akka.actor.default-dispatcher-2] [akka://kafka-manager-system/user/kafka-manager] zk=192.168.59.103:2181
manager_1 | [INFO] [02/17/2015 06:15:27.636] [kafka-manager-system-akka.actor.default-dispatcher-2] [akka://kafka-manager-system/user/kafka-manager] baseZkPath=/kafka-manager
zookeeper_1 | 2015-02-17 06:15:27,820 [my
View index.html
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
padding: 14px;
}
You can’t perform that action at this time.