Skip to content

Instantly share code, notes, and snippets.

View bijeebuss's full-sized avatar

Michael Welnick bijeebuss

View GitHub Profile
contract AccountRegistry is Ownable {
mapping(address => bool) public accounts;
mapping(address => bool) public invites;
address public registryAdmin;
event AccountCreated(address indexed newUser);
event Invite(address indexed newUser);
function AccountRegistry() public {
pragma solidity ^0.4.23;
contract Venmo {
// charge(address _friend, uint256 _amount)
// pay(uint256 _chargeId)
// decline(uint256 _chargeId)
// withdraw()
// deposit()
function getLongestRepeating(input: string) {
const letters = input.split('');
let longestLetter = '';
let longestLength = 0;
for(let i = 0; i < letters.length; i++) {
const letter = letters[i];
let currentLength = 0;
for(let j = 0; j < letters.length; j++) {
const innerLetter = letters[j];
function randomInt(min: number, max: number): number {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// 0 = left
// 1 = right
// 2 = up
// 3 = down
function randomDirection() {
return randomInt(0, 3);
const vowels = ['A', 'E', 'I', 'O', 'U'];
const constenants = ['B','C','D','F','G','H','J','K','L','M','N','P','Q','R','S','T','V','W','X','Y','Z']
function randomInt(min: number, max: number): number {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function randomConstenant(): string {
return constenants[randomInt(0, 20)];
}
const input = 'AAA';
const mapping = {
A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,I:9,J:10,K:11,L:12,M:13,N:14,O:15,P:16,Q:17,R:18,S:19,T:20,U:21,V:22,W:23,X:24,Y:25,Z:26
} as any
function base26ToBase10(input: string): number {
const split = input.split('').reverse();
let output = 0

Keybase proof

I hereby claim:

  • I am bijeebuss on github.
  • I am bijeebus (https://keybase.io/bijeebus) on keybase.
  • I have a public key ASCpR_5yKrf3xzWAMu1rLDHCjfTGfIko0ZKxGQju8kxy3Qo

To claim this, I am signing this object:

@bijeebuss
bijeebuss / test2
Last active October 27, 2017 17:24
0x1D7E7Be994CdF473F814eB88Ac36bB135A448815
@bijeebuss
bijeebuss / test
Last active November 29, 2017 21:27
0x528fc63c4b23536f668d52283fdc552f0964a682