GET /member/1234
Host: www.example.com
HTTP/1.1 200 OK
| upstream phpfpm { | |
| server 127.0.0.1:9000; | |
| } | |
| server { | |
| listen 80; | |
| server_name _; | |
| root /var/www/html; | |
| index index.php; |
| GET /members/1234/credits HTTP/1.1 | |
| Host: www.example.com | |
| Content-Type: application/json | |
| HTTP/1.1 200 OK | |
| Content-Type: application/json | |
| { | |
| credits: 10 | |
| } |
| { | |
| "_links": { | |
| "self": { | |
| "href": "/v4/events/24057" | |
| }, | |
| "http://hautelook.com/rels/catalog": { | |
| "href": "/v4/events/24057/catalog" | |
| }, | |
| "http://hautelook.com/rels/availability": { | |
| "href": "/v4/events/24057/availability" |
Moved to http://hjr3.github.io
| class Kernel | |
| def let it | |
| yield it | |
| end | |
| end |
| def cardinal_define(name, &proc_over_proc) | |
| self.class.send(:define_method, name) do |a_value, &a_proc| | |
| proc_over_proc.call(a_proc).call(a_value) | |
| end | |
| end | |
| cardinal_define(:maybe) do |a_proc| | |
| lambda { |a_value| | |
| a_proc.call(a_value) unless a_value.nil? | |
| } |
Moved to http://hjr3.github.io
| /* | |
| * | |
| * gcc -o rlimit rlimit.c | |
| */ | |
| #include <sys/resource.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <fcntl.h> | |
| #include <errno.h> | |
| #include <string.h> |