This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"host": "localhost", | |
"dbname": "example" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 42, | |
"title": "Wrong format for the creation date", | |
"creation": "2013-11-27T04:33:35Z", | |
"status": "OPEN", | |
"assignee": "Vincent" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'cgi' | |
require 'open-uri' | |
# Require the ActiveSupport::Cache module | |
require 'active_support/cache' | |
module Fiftyfive | |
module Liquid | |
class GistTag < ::Liquid::Tag | |
def initialize(tag_name, gist_ref, tokens) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create an APIPixie instance | |
APIPixie pixie = new APIPixie("http://api.mydistantservice.com"); | |
// Retrieve an APIService for your object | |
APIService<Message> msgService = pixie.getService(Message.class); | |
// Start communicating with the distant API | |
Message msg = msgService.get(42L); | |
// Now do stuff with the object! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(factory); | |
} else { | |
root.Hello = factory(); | |
} | |
}(this, function() { | |
return function() { | |
var done = false; | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>UserInfo.io — JSONP callback</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script type="text/javascript"> | |
function userinfoCallback(data) { | |
console.log("I can now do awesome things with this beautiful data I just received!"); |
OlderNewer