All API access is over HTTP, and accessed from hub.lsts.pt/api/v1/
. All data is sent and received as JSON.
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
/** | |
* Thanks to @philsturgeon for pointing this package | |
* and Filipe Dobreira "https://github.com/filp" for creating it ^^ | |
* Github : https://github.com/filp/whoops | |
* How to: | |
* Step 1 : Setup composer for Laravel 3 | |
* Step 2 : Add this code to your application/start.php or anywhere u like | |
* as long its after laravel registers its own error handlers | |
* so NOT in : index.php, paths.php or laravel/** | |
* |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var _ = require('lodash'); | |
function log() { | |
window.console.log.apply(window.console, arguments); | |
} | |
function concat(a, b) { | |
var t = a.concat([b]); |
I hereby claim:
- I am hugomrdias on github.
- I am hugomrdias (https://keybase.io/hugomrdias) on keybase.
- I have a public key ASB6Qmj5tKiTOr7NjzTH0NekHpbanEq8_EhrDharFl4GXgo
To claim this, I am signing this object:
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
# Connects gpg-agent to the OSX keychain via the brew-installed | |
# pinentry program from GPGtools. This is the OSX 'magic sauce', | |
# allowing the gpg key's passphrase to be stored in the login | |
# keychain, enabling automatic key signing. | |
pinentry-program /usr/local/bin/pinentry |
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
const { Store, set, get, del } = require('idb-keyval') | |
function isStrictTypedArray (arr) { | |
return ( | |
arr instanceof Int8Array || | |
arr instanceof Int16Array || | |
arr instanceof Int32Array || | |
arr instanceof Uint8Array || | |
arr instanceof Uint8ClampedArray || |
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
{ | |
"EdDSA": { | |
"alg": "EdDSA", | |
"message": "aGVsbG8gd29ybGQ=", | |
"encoding": "RAW", | |
"did": "did:key:z6MkwYMhwTvsq376YBAcJHy3vyRWzBgn5vKfVqqDCgm7XVKU", | |
"jwk": { | |
"kty": "OKP", | |
"crv": "Ed25519", | |
"x": "_eT7oDCtAC98L31MMx9J0T-w7HR-zuvsY08f9MvKne8", |