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
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 index.html
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
padding: 14px;
}
View Issue_Tracker.md

Creating an issue (usually Product Owner)

All new issues should have at least the 3 tags bellow.

  • Type tag: all new issues should inform its type BUG or ENHANCEMENT
  • Platform tag: all new issues also should have only one platform tag MIDDLEWARE, IOS, ANDROID, WINDOWS PHONE or WEBAPP. If the issue have impact in more than one platform, create another issue and add a relationship between them.
  • New tag: all new issues should have a NEW indicator tag to be able filter issues create but not initiated.
  • An issue is never assigned to someone from the beggining.

❗️Type Tag and Platform Tag should never be removed, even after closed.❗️

@felipesabino
felipesabino / FIle.sublime-settings.json
Last active Dec 31, 2015 — forked from etrepat/FIle.sublime-settings.json
Sublime Text 3 User Preferences
View FIle.sublime-settings.json
{
// Sets the colors used within the text area
// installing Soda Theme: https://github.com/buymeasoda/soda-theme/
"theme": "Soda Light 3.sublime-theme",
// Color scheme download and instalation: https://github.com/buymeasoda/soda-theme/#syntax-highlighting-colour-schemes
"color_scheme": "Packages/User/Espresso Soda.tmTheme",
"soda_classic_tabs": true,
// Note that the font_face and font_size are overriden in the platform
// specific settings file, for example, "Base File (Linux).sublime-settings".
@felipesabino
felipesabino / 0_reuse_code.js
Created Dec 18, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@felipesabino
felipesabino / dabblet.css
Created May 1, 2013
Circular Tooltip (SO)
View dabblet.css
/**
* Circular Tooltip (SO)
* http://stackoverflow.com/q/13132864/1397351
*/
* { margin: 0; padding: 0; }
body {
overflow: hidden;
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg);
}
/* generic styles for button & circular menu */
You can’t perform that action at this time.