Skip to content

Instantly share code, notes, and snippets.

View jbender's full-sized avatar

Jonathan Bender jbender

View GitHub Profile
@jbender
jbender / 01_set_up_client.php
Created April 5, 2016 18:43
Getting Started with Contactually API v2 - PHP
use GuzzleHttp\Client;
$client = new Client([
'base_uri' => 'https://api.contactually.com',
'headers' => [
'Accept': 'application/json',
'Authorization': 'Bearer AUTH_TOKEN_HERE'
],
]);
@jbender
jbender / cell_layout.rb
Created April 29, 2016 17:25
MotionKit Cells
class CellLayout < MotionKit::Layout
include CommonStyles
def layout
root :cell do
add contentView, :content_view do
add(UIView, :container) { cell_content_layout }
end
end
end