Skip to content

Instantly share code, notes, and snippets.

View lismore's full-sized avatar
🎯
Focusing

Patrick Lismore lismore

🎯
Focusing
View GitHub Profile
@lismore
lismore / ICO.sol
Created July 30, 2018 20:29
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.4;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
@lismore
lismore / FuturelandSiecoin.sol
Created June 19, 2018 14:17
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
/**
* =============Copyright 2018 Siemens Mobility Ltd========
*
* Author: Patrick Lismore - Patrick.Lismore@Siemens.com
*
* =============Mobility Smart Contract====================
*
* Incentivised commuter Journeys via Smart Contract
* & Cryptocurrency
*
@lismore
lismore / AudioAuthenticity.sol
Created June 6, 2018 11:15
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract AudioAuthenticity {
string constant wavehash = "dea7db275ee984f7f4bf0e2b5ba77aa428e780ca5fda49435960c7fef1b4b94b";
string constant mp3hash = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
function checkMp3VersionHash(string hashInput)public returns(bool){
bool result = compareHashes(hashInput, mp3hash);
return result;
@lismore
lismore / Install-NodeJS-Yeoman-Bower-Grunt-Guip-onKali2
Last active December 21, 2015 23:47
Correct NodeJS on Kali Linux to work with Yeoman
#The NODEJS on Kali 2.0 gives issues when trying to install Yeoman for buliding ASP.NET 5
#
# You may see output in the console like this
# root@kalilinux:~# npm install -g yo bower grunt-cli gulp
# npm WARN engine yo@1.5.0: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"})
# correct nodejs with right version on Kali Linux 2.0
sudo apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -