Skip to content

Instantly share code, notes, and snippets.

@Souptacular
Souptacular / SHA3Test.sol
Last active August 22, 2018 16:46
Testing SHA3 with Solidity
contract SHA3Test
{
function getSHA3Hash(bytes input) returns (bytes32 hashedOutput)
{
hashedOutput = sha3(input);
}
}
// Ethereum uses KECCAK-256. It should be noted that it does not follow
### Keybase proof
I hereby claim:
* I am souptacular on github.
* I am souptacular (https://keybase.io/souptacular) on keybase.
* I have a public key whose fingerprint is A690 EE72 1020 853B 7802 0AA8 028D 1459 247B 9596
To claim this, I am signing this object:
pragma solidity ^0.4.7;
contract Factory {
bytes32[] Names;
address[] newContracts;
function createContract (bytes32 name) {
address newContract = new Contract(name);
newContracts.push(newContract);
pragma solidity ^0.4.7;
contract Factory {
bytes32[] Names;
address[] newContracts;
function createContract (bytes32 name) {
address newContract = new Contract(name);
newContracts.push(newContract);
pragma solidity ^0.4.7;
/**
* Water Meter ACORN Contract v0.1
* Hudson Jameson
* Solidity Version: 0.4.7+commit.822622cf.Emscripten.clang
* License: Apache 2.0
**/
contract WaterMeterAcorn {
pragma solidity ^0.4.6;
contract TollwayManager {
address public owner;
address public VD;
function TollwayManager() {
owner = msg.sender;
TollEvent(block.timestamp, msg.sender, this, "Welcome to your tollway system.");

Edit 8/14/18: See https://ethereum-tests.readthedocs.io/en/latest/ for more updated information. Much of the links below are still valuable though.

Welcome

This guide is intended to provide resources for those wanting to help test Metropolis EIPs. The CPP team is currently in the middle of a migration from EthDocs to a documentation site that is more dedicated to CPP-Ethereum so the documentation on creating tests for Ethereum using testeth is scattered. Everything you will need to get started should be compiled below.

Suggested skill sets needed to create and run tests

  1. Ability to compile/build testeth and LLL compiler or run a docker file.
  2. Ability to [understand the LLL Ethereum language](https://gist.github.com/Souptacular/fd197b1fac7c6d2660b0bef27a33ed40#lll-and-evm-st
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmRvmDHs2zuGdjuc4w7Fr63WYRcnJkg1k6KULc4rjsrCaE ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
@Souptacular
Souptacular / LinkedList.cpp
Created February 20, 2022 05:29
2011 Linked List/Binary Tree College Assignment
// Hudson Jameson | 12/9/2011 | BinaryTree
#include <iostream>
#include <stdlib.h>
#include "Node.h"
#include "LinkedList.h"
LinkedList::LinkedList() {
this->head = new Node(18907660);
};