Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Hugo Dias hugomrdias

🎯
Focusing
Block or report user

Report or block hugomrdias

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hugomrdias
hugomrdias / simple-idb-datastore.js
Created Oct 10, 2019
Simple ipfs datastore for browsers
View simple-idb-datastore.js
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 ||
@hugomrdias
hugomrdias / gpg-agent.conf
Last active Aug 22, 2018 — forked from sindresorhus/.profile
Automatic Git commit signing with GPG on OSX
View gpg-agent.conf
# 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
View keybase.md

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 / index.js
Created Jan 4, 2016
requirebin sketch
View index.js
// 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]);
@hugomrdias
hugomrdias / Overview.md
Last active Dec 19, 2015
Hub API v1 Reference
View Overview.md

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 / start.php
Last active Dec 14, 2015
Damnit for Laravel 3
View start.php
/**
* 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/**
*
You can’t perform that action at this time.