I hereby claim:
- I am imownbey on github.
- I am cbian (https://keybase.io/cbian) on keybase.
- I have a public key ASAcrYpmpXuv1ebZQw_jJIEriVSWO1MWrK-I2nFXmXzyLwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import Foundation | |
import UIKit | |
extension NSAttributedString { | |
// Get the number of lines an attributed string takes | |
func lineCount(atSize size: CGSize) -> Int { | |
let attrs = self.attributes(at: 0, effectiveRange: nil) | |
guard let font = (attrs[NSFontAttributeName] as? UIFont) else { | |
return 0 | |
} |
extension Optional { | |
func unwrappedOr(value: Wrapped) -> Wrapped { | |
switch self { | |
case .Some: | |
return self! | |
case .None: | |
return value | |
} | |
} | |
} |
// | |
// UIView+TimedAnimations.m | |
// Bumper | |
// | |
// Created by Ian Ownbey on 6/30/15. | |
// Copyright © 2015 Bumpers Media Inc. All rights reserved. | |
// | |
#import "UIView+TimedAnimations.h" | |
#import <objc/runtime.h> |
buttonObject = this | |
buttonObjectClass = $(this).attr("class") |
puts "whatsup" |
var a = null; | |
var promise = somethingLongTahtReturnsAPromise(); | |
function chainToAndSet(promise) { | |
promise.then(function(values) { a = values }) | |
return promise; | |
} | |
function sort() { | |
new Promise(function(values) { _.sort(values) } |
ruby -e "require 'rubygems'; require 'open-uri'; require 'rss'; require 'cgi'; puts CGI.unescapeHTML(RSS::Parser.parse(open('http://www.rapquote.com/rss')).items.last.description).gsub('<br/>', \"\\n\").gsub(/<(\\/?)\\w+>/i, '').gsub('“', '\"').gsub('”', '\"').gsub('’', '\'').gsub(' ', ' ')" | cowsay -g | lolcat | |
_________________________________________ | |
/ "Used to have a crush on Dawn from En \ | |
| Vogue. | | |
| | | |
| It's not like honey dip would wanna get | | |
| with me, | | |
| | | |
| But just in case I own more condoms | | |
| than TLC." | |
def apply(iprot: TProtocol) = { | |
var field: TField = null | |
var message: String = null | |
var another: Int = 0 | |
while(true) { | |
field = iprot.readFieldBegin | |
if(field.`type` == TType.STOP) { | |
break | |
} | |
field.id match { |