Skip to content

Instantly share code, notes, and snippets.

View andytudhope's full-sized avatar
💭
https://living.thebluebook.co.za

Andy Tudhope andytudhope

💭
https://living.thebluebook.co.za
View GitHub Profile
status.command({
name: "greet",
title: "Greeter",
description: "Helps you choose greetings",
color: "#0000ff",
params: [{
name: "greet",
type: status.types.TEXT,
suggestions: helloSuggestions
}]
module.exports = function(deployer) {
deployer.deploy(MiniMeTokenFactory)
.then(() => {
return MiniMeTokenFactory.deployed()
.then(f => {
return SCB.new(f.address)
})
.then(t => {
token = t
console.log('SCT:', token.address)
import React from 'react';
import {Bond} from 'oo7';
import {bonds} from 'oo7-parity';
import {Rspan, Rimg, ReactiveComponent} from 'oo7-react';
import {InputBond, HashBond, BButton, TransactionProgressLabel} from 'parity-reactive-ui';
const CounterABI = [{"constant":false,"inputs":[{"name":"_option","type":"uint256"}],"name":"vote","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"hasVoted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"votes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"who","type":"address"},{"indexed":true,"name":"option","type":"uint256"}],"name":"Voted","type":"event"}];
const Options = ['Red', 'Green', 'Blue'];
import React from 'react';
import {Bond} from 'oo7';
import {Rspan} from 'oo7-react';
import {InputBond, HashBond, BButton, TransactionProgressLabel, TransactButton} from 'parity-reactive-ui';
import {bonds, formatBlockNumber, formatBalance, isNullData} from 'oo7-parity';
export class App extends React.Component {
constructor() {
super();
this.bond = new Bond();
@andytudhope
andytudhope / factorialize.js
Created November 16, 2015 08:21
Free Code Camp Bonfire
function factorialize(num) {
if (num === 0 || num === 1) {
return 1;
}
return num * factorialize(num-1);
}
factorialize(5);
@andytudhope
andytudhope / keybase.md
Last active September 8, 2015 10:49
Keybase verification

Keybase proof

I hereby claim:

  • I am andytudhope on github.
  • I am cryptowanderer (https://keybase.io/cryptowanderer) on keybase.
  • I have a public key whose fingerprint is F480 1A66 081D C0C9 F32F 2A0E 9CF9 CCD2 EDDA 6A97

To claim this, I am signing this object:

Verifying I am +cryptowanderer on my passcard. https://onename.com/cryptowanderer