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
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:
var alert = UIAlertController(title: "Hello", message: "World", preferredStyle: UIAlertControllerStyle.Alert)
alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alert, animated: true, completion: nil)
{
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucket_name_here/*"
function shuffleCards(cards){
var currentIndex = cards.length, temporaryValue, randomIndex;
// While there remain elements to shuffle...
while (0 !== currentIndex) {
// Pick a remaining element...
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex -= 1;
// And swap it with the current element.