Skip to content

Instantly share code, notes, and snippets.

View hebertialmeida's full-sized avatar
✈️

Heberti Almeida hebertialmeida

✈️
View GitHub Profile
### Keybase proof
I hereby claim:
* I am hebertialmeida on github.
* I am heberti (https://keybase.io/heberti) on keybase.
* I have a public key whose fingerprint is BC4D 8E00 C9D2 F132 128A F95F 2561 43B3 57D6 0E45
To claim this, I am signing this object:
@hebertialmeida
hebertialmeida / TwitterText.swift
Created November 23, 2017 16:49
Twitter text counter 280 characters
import Foundation
struct WeightRange {
let range: ClosedRange<UInt32>
let weight: Int
}
struct TwitterText {
static func lengthOf(tweet: String) -> Int {
let defaultWeight = 200

Keybase proof

I hereby claim:

  • I am hebertialmeida on github.
  • I am heberti (https://keybase.io/heberti) on keybase.
  • I have a public key whose fingerprint is EF27 C10A 4335 FA46 2063 EE36 B58F 7F1E 90FB 67C9

To claim this, I am signing this object: