This file contains hidden or 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature qw(say); | |
use Digest::SHA qw(hmac_sha256); | |
use JSON; | |
use MIME::Base64 qw(encode_base64url decode_base64url); |
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"title": "Hypermedia Application Languchage schema", | |
"definitions": { | |
"linkObject": { | |
"type": "object", | |
"properties": { | |
"href": { | |
"title": "Resource URI", | |
"type": "string", |
This file contains hidden or 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
{ | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"minimum": 1 | |
}, | |
"name": { | |
"type": "string", | |
"pattern": "^[A-Za-z0-9_]{1,32}$" |
This file contains hidden or 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature qw(say); | |
use Coro; | |
async { | |
my @args = @_; |
This file contains hidden or 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Coro; | |
use AnyEvent; | |
use AnyEvent::Log; | |
$AnyEvent::Log::FILTER->level("debug"); |
This file contains hidden or 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
use strict; | |
use warnings; | |
use Config::Pit; | |
use Data::Section::Simple qw(get_data_section); | |
use HTTP::Request; | |
use HTTP::Status qw(:constants); | |
use Log::Minimal; | |
use LWP::UserAgent; | |
use Plack::Builder; |
This file contains hidden or 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
use strict; | |
use warnings; | |
use AE; | |
use AnyEvent; | |
use HTTP::Status qw(:constants); | |
use JSON; | |
use Plack::Request; | |
use Plack::Response; | |
use Time::HiRes qw(tv_interval gettimeofday); |
This file contains hidden or 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": "http://schema.example.com/oauth/2.0/authorization_request", | |
"title": "OAuth 2.0 Authorization Code Grant Response Object", | |
"properties": { | |
"code": { | |
"title": "The authorization code", | |
"type": "string", | |
"required": true | |
}, | |
"state": { |
This file contains hidden or 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Data::Dump qw(dump); | |
my $t = $ARGV[0]; | |
our %RE; | |
$RE{ALPHA} = qr/[A-Za-z]/; |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdarg.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <netinet/in.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <sys/uio.h> | |
#include <unistd.h> |
NewerOlder