Skip to content

Instantly share code, notes, and snippets.

View ruckserve's full-sized avatar

Paul Dombkowski ruckserve

  • WP Engine
  • Austin, TX
View GitHub Profile
require 'unirest'
require 'pry-debugger'
module MakerBlog
class Client
def list_posts
code = 200
response = Unirest.get('http://makerblog.herokuapp.com/posts', headers: { "Accept" => "application/json" })
posts = response.body
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Clearfix Example</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
/* code for debugging */
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Shoestring.css Style Guide</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./css/shoestring/0.0.1/shoestring-dev.css">
<style type="text/css">