Skip to content

Instantly share code, notes, and snippets.

View zdne's full-sized avatar
💭
🚀

Z zdne

💭
🚀
View GitHub Profile
@kevinswiber
kevinswiber / root.feature
Last active August 29, 2015 13:55
Exploring hypermedia aware acceptance testing.
Feature: Root Resource
As an API client
I want to see the root resource
So that I have a starting point to complete my task.
Scenario: Request the root
Given an anonymous client
When I make a GET request to /
Then I should get a 200 status code
And the content type should be JSON
@markmandel
markmandel / apiary.apib
Last active August 29, 2015 13:56 — forked from abtris/apiary.apib
FORMAT: 1A
# Test API
## Items [/items{?filter}]
### List all Items [GET]
+ Parameters
@ttahmouch
ttahmouch / uri.js
Last active August 29, 2015 14:04
RFC 3986 URI En/Decoding in Javascript (Node and Browser)
/**
* A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical
* resource.
* @example "http://www.google.com:80/search?query=text#result"
*
* @return {Uri}
* @constructor
*/
function Uri() {
return this;
@ttahmouch
ttahmouch / rest-client-example
Created August 20, 2014 04:10
Compare RESTful API Client with RESTless API Client
<!DOCTYPE html>
<html>
<head>
<title>Coast Browser</title>
</head>
<body>
<script src="http://127.0.0.1:8080/ua"></script>
<script>
/**
* @param window represents a window containing a DOM document.
@klokane
klokane / direct-Inheritance.md
Last active August 29, 2015 14:23
Refract element Mixins expansion
## Address (object)
- street
- city

## User (Address)
- id
- login
@rsaunders100
rsaunders100 / KDPersistantCache.h
Created April 18, 2012 15:53
Persistently stores and recovers NSCoding compliant objects with a expiry time
//
// KDPersistantCache.h
// KDPrototype
// Stores NSCoding compliant objects persistantly in the NSCachesDirectory
// for a specified period of time.
//
// Created by on 18/04/2012.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
@TooTallNate
TooTallNate / gist:4021657
Created November 6, 2012 00:50
Fix v8.h warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persist ent<T>::New(v8::Handle<T>)'. See http://www.parashift.com/c++-faq-lite/where-to-put-inline-keyword.html
diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h
index ddde388..e886314 100644
--- a/deps/v8/include/v8.h
+++ b/deps/v8/include/v8.h
@@ -323,7 +323,7 @@ template <class T> class Persistent : public Handle<T> {
* Creates an empty persistent handle that doesn't point to any
* storage cell.
*/
- inline Persistent();
+ Persistent();
@fdr
fdr / build.sh
Created December 28, 2012 08:49
Building clang on Heroku
#!/bin/sh
set -ue
curl -qO http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz
curl -qO http://llvm.org/releases/3.2/clang-3.2.src.tar.gz
curl -qO http://llvm.org/releases/3.2/compiler-rt-3.2.src.tar.gz
tar -zxf llvm-3.2.src.tar.gz
tar -zxf clang-3.2.src.tar.gz
tar -zxf compiler-rt-3.2.src.tar.gz
// Example of HTTP API documentation format based on Apiary blueprint
== transport | Transport system
Markdown description of an entity goes here.
== transport/cards | Customers' cards
@keyword [string] Keyword of a card
@matthewpalmer
matthewpalmer / gist:4603471
Last active December 11, 2015 12:49
how to hide the bottom bar of embedded Github Gists
.gist .gist-file .gist-meta {
display: none;
}