Assemble Adafruit Ultimate device (connecting wifi USB)
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
class FollowupPromptCell < PM::TableViewCell | |
def rmq_build | |
content.append!(UILabel, :followup_prompt_cell_label) | |
apply_style :followup_prompt_cell | |
end | |
def content | |
find(self.contentView) | |
end |
Assemble Adafruit Ultimate device (connecting wifi USB)
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
class CustomCell < UITableViewCell | |
def initWithStyle(style, reuseIdentifier: identifier) | |
super | |
@layout = CustomCellLayout.new(root: WeakRef.new(self)).build | |
self | |
end | |
def obj=(obj) | |
@layout.foo = obj[:foo] | |
@layout.bar = obj[:bar] |
module ContactuallyApi | |
module Resources | |
module Contacts | |
RESOURCE_URL_BASE = 'api/v2/contacts'.freeze | |
def contact_index(params = nil, &block) | |
path = RESOURCE_URL_BASE | |
ContactuallyApi.client.get(path, params, &block) | |
end |
module ContactuallyApi | |
module Models | |
class Contact < Base | |
include NameHelper | |
ATTRIBUTES = CORE_ATTRIBUTES + [ | |
:addresses, | |
:avatar_url, | |
:company, | |
:email_addresses, |
module SwipeableCell | |
ANIMATION_DURATION = 0.2 | |
MAX_TRANSITION_ALPHA = 0.5 | |
SWIPE_THRESHOLD = 110 | |
LONG_SWIPE_THRESHOLD = SWIPE_THRESHOLD + 80 | |
FADE_IN_DISTANCE = SWIPE_THRESHOLD | |
def gestureRecognizer(recognizer, | |
shouldRecognizeSimultaneouslyWithGestureRecognizer: other_recognizer) | |
return true unless recognizer.is_a? UIPanGestureRecognizer |
{ | |
:iphone_4 => 'iPhone 4s', | |
:iphone_5 => 'iPhone 5', | |
:iphone_6 => 'iPhone 6', | |
:iphone_6_plus => 'iPhone 6 Plus', | |
:ipad => 'iPad Retina', | |
:ipad_air => 'iPad Air' | |
}.each do |rake_task, device| | |
default_task = "bundle exec rake device_name=\"#{device}\"" |
require 'faraday' | |
require 'faraday_middleware' | |
client = Faraday.new( | |
url: 'https://api.contactually.com', | |
headers: { | |
'Accept': 'application/json', | |
'Authorization': 'Bearer YOUR_TOKEN_HERE' | |
} | |
) do |connection| |
import requests | |
client = http.client.HTTPSConnection('api.contactually.com') | |
host = 'https://api.contactually.com' | |
headers = { | |
'Accept': 'application/json', | |
'Authorization': 'Bearer YOUR_TOKEN_HERE' | |
} |
curl https://api.contactually.com/v2/me \ | |
-H "Authorization: Bearer YOUR_TOKEN_HERE" \ | |
-H "Content-Type: application/json" |