Skip to content

Instantly share code, notes, and snippets.

View mcne65's full-sized avatar

S M. Lingelser mcne65

View GitHub Profile
# Ones that have their own macros.
major AC_HEADER_MAJOR
minor AC_HEADER_MAJOR
makedev AC_HEADER_MAJOR
bcopy AC_HEADER_STDC
bcmp AC_HEADER_STDC
bzero AC_HEADER_STDC
ioctl AC_PROG_GCC_TRADITIONAL
memchr AC_HEADER_STDC
memcpy AC_HEADER_STDC
@mcne65
mcne65 / SimpleStorage.json
Created December 28, 2019 14:08 — forked from ConsenSys-Academy/SimpleStorage.json
A Solidity SimpleStorage contract
[
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "x",
"type": "uint256"
}
],
@mcne65
mcne65 / SimpleStorage.json
Created December 28, 2019 14:08 — forked from ConsenSys-Academy/SimpleStorage.json
A Solidity SimpleStorage contract
[
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "x",
"type": "uint256"
}
],
@mcne65
mcne65 / BaseCaller.sol
Created December 29, 2019 01:34 — forked from critesjosh/BaseCaller.sol
Inter-contract execution in Solidity
pragma solidity ^0.5.0;
contract Base {
uint x;
constructor() public {
x = 10;
}
@mcne65
mcne65 / BaseCaller.sol
Created December 29, 2019 01:34 — forked from critesjosh/BaseCaller.sol
Inter-contract execution in Solidity
pragma solidity ^0.5.0;
contract Base {
uint x;
constructor() public {
x = 10;
}
@mcne65
mcne65 / BaseCaller.sol
Created December 29, 2019 01:34 — forked from critesjosh/BaseCaller.sol
Inter-contract execution in Solidity
pragma solidity ^0.5.0;
contract Base {
uint x;
constructor() public {
x = 10;
}
pragma solidity ^0.5.0;
contract Base {
uint public num;
address public sender;
function setNum(uint _num) public {
num = _num;
sender = msg.sender;
}
pragma solidity ^0.5.0;
contract Base {
uint public num;
address public sender;
function setNum(uint _num) public {
num = _num;
sender = msg.sender;
}
@mcne65
mcne65 / Splitter.sol
Created February 1, 2020 11:48 — forked from critesjosh/Splitter.sol
A contract to split funds between addresses. Demostrates pushing vs pulling transfers
pragma solidity ^0.4.6;
contract Splitter {
mapping(address => uint) public balances;
function unsafeSplit(address address1, address address2)
public
payable
returns(bool success)