Skip to content

Instantly share code, notes, and snippets.

View hugomrdias's full-sized avatar

Hugo Dias hugomrdias

View GitHub Profile
@hugomrdias
hugomrdias / start.php
Last active December 14, 2015 23:59
Damnit for Laravel 3
/**
* 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/**
*
@hugomrdias
hugomrdias / Overview.md
Last active December 19, 2015 00:09
Hub API v1 Reference

API v1

Schema

All API access is over HTTP, and accessed from hub.lsts.pt/api/v1/. All data is sent and received as JSON.

@hugomrdias
hugomrdias / index.js
Created January 4, 2016 19:37
requirebin sketch
// 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]);

Keybase proof

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:

@hugomrdias
hugomrdias / gpg-agent.conf
Last active August 22, 2018 10:01 — forked from sindresorhus/.profile
Automatic Git commit signing with GPG on OSX
# 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
@hugomrdias
hugomrdias / simple-idb-datastore.js
Created October 10, 2019 12:51
Simple ipfs datastore for browsers
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 ||