Skip to content

Instantly share code, notes, and snippets.

View thebkr7's full-sized avatar
🍉

Benji thebkr7

🍉
View GitHub Profile
var board = [
[4, 5, '.', 8, '.', '.', 9, '.', '.'],
['.', 9, '.', '.', 5, 6, '.', '.', 4],
[1, '.', '.', '.', '.', '.', '.', '.', 7],
[2, 6, '.', 5, 4, '.', '.', 9, '.'],
['.', '.', 4, 1, '.', 2, 3, '.', '.'],
['.', 7, '.', '.', 6, 9, '.', 4, 8],
[7, '.', '.', '.', '.', '.', '.', '.', 9],
[8, '.', '.', 4, 9, '.', '.', 7, '.'],
['.', '.', 9, '.', '.', 3, '.', 2, 5],
var board = [
[4, 5, '.', 8, '.', '.', 9, '.', '.'],
['.', 9, '.', '.', 5, 6, '.', '.', 4],
[1, '.', '.', '.', '.', '.', '.', '.', 7],
[2, 6, '.', 5, 4, '.', '.', 9, '.'],
['.', '.', 4, 1, '.', 2, 3, '.', '.'],
['.', 7, '.', '.', 6, 9, '.', 4, 8],
[7, '.', '.', '.', '.', '.', '.', '.', 9],
[8, '.', '.', 4, 9, '.', '.', 7, '.'],
['.', '.', 9, '.', '.', 3, '.', 2, 5],
@thebkr7
thebkr7 / Lottery.sol
Created November 9, 2018 19:40
Basic Solidity Lottery
pragma solidity 0.4.24;
import "../oraclize/oraclizeAPI_0.5.sol";
import '../openzeppelin-solidity/contracts/ownership/Ownable.sol';
import '../openzeppelin-solidity/contracts/math/SafeMath.sol';
contract Lottery is usingOraclize, Ownable {
using SafeMath for uint;
pragma solidity 0.4.24;
import "github.com/OpenZeppelin/openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "github.com/OpenZeppelin/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract BGAudit is Ownable {
using SafeMath for uint;
event AddedAuditor(address indexed auditor);
//NUMBER TWO:
//inputs: start and end nums
//outputs: array of numbers between start and end
function range(start, end) {
var rangeAnswer = [];
if(start < end && end ){
for(var x = start; x < end; x++){
rangeAnswer.push(x);
}
}