Skip to content

Instantly share code, notes, and snippets.

@makoto
makoto / blockpartyison.md
Created June 20, 2017 08:26
The BlockParty is on!

The BlockParty is on!

Hello. Thank you very much for signing up for CodeUp#21.

As the Ether price goes up, the interest to this group also surges and this is the second time in a row that we have people on the waiting list.

If you have registered but unfortunately cannot make it, please make sure to cancel your spot so that people in the waiting list can get your spot.

As some of you may know, I've been developing a Dapp called BlockParty to solve this kind of problem (If you aren't familiar with the dapp, please see the github repo and my talk at London Ethereum Meetup).

@makoto
makoto / web3.shh example
Created May 30, 2017 05:34
web3.shh.js
status.command({
name: "mmessage",
title: "shh message post",
description: "Helps you say hello to everybody",
color: "#CCCCCC",
preview: function (params) {
var identity = web3.shh.newIdentity();
var topic = 'makoto';
var payload = 'hello whisper world from makoto';
@makoto
makoto / metamask.log
Created April 30, 2017 20:09
metamask.log
popup.js:37977 Warning: Unknown props `network`, `identities`, `addressBook` on <input> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
in input (created by EnsInput)
in div (created by EnsInput)
in EnsInput (created by SendTransactionScreen)
in section (created by SendTransactionScreen)
in div (created by SendTransactionScreen)
in SendTransactionScreen (created by Connect(SendTransactionScreen))
in Connect(SendTransactionScreen) (created by App)
in ReactCSSTransitionGroupChild (created by ReactTransitionGroup)
in span (created by ReactTransitionGroup)
08:51:54-makoto~/work/mauve/colour-card/backend (master)$ pip install qrencode
Collecting qrencode
Downloading qrencode-1.2.tar.gz
Building wheels for collected packages: qrencode
Running setup.py bdist_wheel for qrencode ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/y9/c126c_6n3bn22_xry_xpsp8c0000gn/T/pip-build-jgIpKL/qrencode/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/y9/c126c_6n3bn22_xry_xpsp8c0000gn/T/tmpeDbxkLpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
@makoto
makoto / CertifierDbI.sol
Created February 27, 2017 21:38
CertifierDbI.sol
pragma solidity ^0.4.2;
/**
* @notice Declares a contract that can have an owner.
*/
contract OwnedI {
event LogOwnerChanged(address indexed previousOwner, address indexed newOwner);
function getOwner()
constant
@makoto
makoto / dfm.md
Created February 20, 2017 14:18
dfm.md

DAPPS TO THE MASS

Take aways

  • Gas rules Ethereum, it dectates how you write a code, how user interact, and how hackers try to attack not only your smart contract but also the entire Ethereum network.

Minimum jurgons

  • Gas
  • Miners
@makoto
makoto / 0x7b249881af36cccd1ab2e4325a8eed2a7848b263.json
Created February 18, 2017 14:00
blockpartyedcon address and abi
## mainnet (this is for sunday's event)
0x7b249881af36cccd1ab2e4325a8eed2a7848b263
## abi
[
{
"constant": true,
"inputs": [],
Installation
============
.. warning::
CartoDB is guaranteed to run without any issue in Ubuntu 12.04 x64. This documentation describes the process to install CartoDB in this specific OS version.
However this doesn't mean that it won't work with other Operating Systems or other Ubuntu. There are also many successful installations on Amazon EC2, Linode, dedicated instances and development machines running OS X and Ubuntu 12.04+.
System requirements
@makoto
makoto / Migrations.all_networks.js
Created September 13, 2016 09:14
Migrations.all_networks.js
{ '1':
{ abi: [ [Object], [Object], [Object], [Object], [Object] ],
unlinked_binary: '0x606060405260008054600160a060020a03191633179055610130806100246000396000f3606060405260e060020a60003504630900f010811461003c578063445df0ac146100c05780638da5cb5b146100c9578063fdacd576146100db575b005b61003a60043560008054600160a060020a039081163390911614156100bc57604080516001547ffdacd576000000000000000000000000000000000000000000000000000000008252600482015290518392600160a060020a0384169263fdacd5769260248281019392829003018183876161da5a03f115610002575050505b5050565b61010160015481565b610113600054600160a060020a031681565b61003a60043560005433600160a060020a03908116911614156100fe5760018190555b50565b60408051918252519081900360200190f35b60408051600160a060020a03929092168252519081900360200190f3',
events: {},
updated_at: 1473755147847,
address: '0x8232a12cb9b23ec92ede0c79d161532c2ff54006',
links: {} },
default:
{ abi: [ [Object], [Object], [Object], [Object], [Object] ],
unlinked_binary: '0x6060604052600080
@makoto
makoto / Migrations.sol.js
Created September 13, 2016 09:12
Migrations.sol.js
var Web3 = require("web3");
var SolidityEvent = require("web3/lib/web3/event.js");
(function() {
// Planned for future features, logging, etc.
function Provider(provider) {
this.provider = provider;
}
Provider.prototype.send = function() {