Skip to content

Instantly share code, notes, and snippets.

View kevinbluer's full-sized avatar
🚣

Kevin Bluer kevinbluer

🚣
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./Context.sol";
import "./SafeMath.sol";
/**
* @title PaymentSplitter
* @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware that the Ether will be split in this way, since it is handled transparently by the contract.
@kevinbluer
kevinbluer / BugsBunny.sol
Last active November 26, 2018 21:36
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.5.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity ^0.4.19;
/// @title A simulator for Bug Bunny, the most famous Rabbit
/// @author Warned Bros
/// @notice You can use this contract for only the most basic simulation
/// @dev All function calls are currently implement without side effects
contract BugsBunny {
/// @author Bob Clampett
/// @notice Determine if Bugs will accept `(_food)` to eat
/// @dev String comparison may be inefficient
pragma solidity ^0.4.6;
contract HelloWorld {
string saySomething;
function HelloWorld() {
saySomething = "Hello World!";
}
pragma solidity ^0.4.11;
contract HelloWorld {
function renderHelloWorld () returns (string) {
return 'Hello World';
}
}
Verifying my Blockstack ID is secured with the address 13UdakrjZGM64oNFkfKvkeJ9swXBu1dhUt https://explorer.blockstack.org/address/13UdakrjZGM64oNFkfKvkeJ9swXBu1dhUt
@kevinbluer
kevinbluer / gist:7131090
Created October 24, 2013 03:55
Bluedot News Order Tweak
// from this...
$("#newsContainer").rss(
"https://news.google.com/news/feeds?q=%22horizon+media%22&safe=off&bav=on.2,or.r_cp.r_qf.&bvm=bv.50165853,d.dmg,pv.xjs.s.en_US.seW1cfrvSKg.O&biw=1440&bih=735&um=1&ie=UTF-8&output=rss", {
limit: 4,
entryTemplate: '<li onmouseover="hover(this)"><a href="{url}" target="_blank">{title}</a><br><span class="newsDate">{date}</span></li>'
});
});
// to this...
@kevinbluer
kevinbluer / gist:6631659
Created September 20, 2013 00:17
Hello...
...world!
@kevinbluer
kevinbluer / gist:4225506
Created December 6, 2012 15:48
Background position for the homework sprites
/* Home Button */
nav li.home {
width:115px;
height:60px;
}
nav li.home a{
background-position:-5px -5px;
}
nav li.home a:hover{
Router.route('/', function () {
this.render('MyTemplate');
});
### Keybase proof
I hereby claim:
* I am kevinbluer on github.
* I am kevinbluer (https://keybase.io/kevinbluer) on keybase.
* I have a public key whose fingerprint is 038F F16B AC5B 175D 8666 58A9 75D0 AAA1 F65B 832C
To claim this, I am signing this object: