Skip to content

Instantly share code, notes, and snippets.

🥝
/shrug

Luke Hedger lukehedger

🥝
/shrug
Block or report user

Report or block lukehedger

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
@lukehedger
lukehedger / git-commit-signing.md
Created Oct 28, 2019
Config for automatically signing Git commits
View git-commit-signing.md

Git Commit Signing

Windows

.gitconfig

[user]
	signingkey = <GPG_KEY_ID>
[commit]
	gpgsign = true
View SketchSystems.spec
My Awesome Sketch
First State
some event -> Second State
Second State
@lukehedger
lukehedger / SketchSystems.spec
Last active Dec 24, 2018
Single-lever mixer tap
View SketchSystems.spec
Single-lever mixer tap
Closed*
flip lever -> Open
Open
flip lever -> Closed
Hot
turn tap -> Cold
Cold
turn tap -> Hot
View yarn-error.log
Arguments:
/usr/local/bin/node /usr/local/Cellar/yarn/1.3.2/libexec/bin/yarn.js
PATH:
/Users/luke/go/src/github.com/meta-network/go-meta/bin:/Users/luke/go/bin/geth:/Users/luke/go/bin/swarm:/Users/luke/go/bin/geth:/Users/luke/go/bin/swarm:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/luke/go/bin:/usr/local/go/bin
Yarn version:
1.3.2
Node version:
@lukehedger
lukehedger / HelloYou.sol
Created Nov 23, 2017 — forked from anonymous/HelloYou.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.18+commit.9cf6e910.js&optimize=undefined&gist=
View HelloYou.sol
pragma solidity ^0.4.18;
// import './SomeContract.sol';
contract HelloYou {
event Hello(address you);
function sayHello() public {
address _person = msg.sender;
@lukehedger
lukehedger / Echo.sol
Created Nov 23, 2017
Solidity contract that echoes a number
View Echo.sol
pragma solidity ^0.4.18;
contract Echo {
event Echoed(uint echoValue);
function echo(uint _value) public returns (uint) {
Echoed(_value);
return _value;
}
View meta-id-signature-storage.js
signatures[_targetmetaid][_metadataitemidhash] = [
{ signer, item_digest, signature_digest }
]
signatures[sha3('beyonce.id.meta')][sha3('aux/twitter')] = [
{ namehash(sony.id.meta), sha3('@beyonce'), sign(sha3('@beyonce') }
]
View found-basename-stack-trace.js
compose.js:30 Uncaught TypeError: b.apply is not a function
at eval (webpack:///./node_modules/redux/es/compose.js?:30:18)
at eval (webpack:///./node_modules/redux/es/compose.js?:30:14)
at eval (webpack:///./node_modules/redux/es/compose.js?:30:14)
at eval (webpack:///./node_modules/redux/es/applyMiddleware.js?:43:100)
at eval (webpack:///./node_modules/farce/lib/createHistoryEnhancer.js?:57:51)
at configureStore (webpack:///./app/core/store/index.js?:60:15)
at eval (webpack:///./app/core/containers/Root.js?:34:65)
at Object.<anonymous> (http://localhost:3000/bundle.js:3010:1)
at __webpack_require__ (http://localhost:3000/bundle.js:20:30)
@lukehedger
lukehedger / metadata-sig.js
Created Oct 13, 2017
Download and process META-ID metadata signature from Swarm
View metadata-sig.js
web3.bzz.download(metadataAddress.slice(2))
.then(rawMetadata =>
Object.keys(rawMetadata).map(path => ({
[`${path}`]: JSON.parse(rawMetadata[path].data.toString())
}))
.reduce((o, v) => Object.assign({}, o, v), {})
)
.then(metadata => console.log(metadata))
You can’t perform that action at this time.