Skip to content

Instantly share code, notes, and snippets.

View kidwai's full-sized avatar

Mohammad Kidwai kidwai

  • Toronto, Ontario
View GitHub Profile
Will Src
contract Token {
event Transfer(address indexed _from, address indexed _to, uint256 _value);
function Token(uint256 _initialAmount) {
balances[msg.sender] = _initialAmount;
totalSupply = _initialAmount;
}
{
"name": "Mo",
"engine": {
"Ethash": {
"params": {
"gasLimitBoundDivisor": "0x0400",
"minimumDifficulty": "0x020000",
"difficultyBoundDivisor": "0x0800",
"durationLimit": "0x0a",
"blockReward": "0x4563918244F40000",
@kidwai
kidwai / Stuf.md
Last active November 26, 2016 08:25
Stuff

Stuf

Installation

$ sudo add-apt-repository ppa:ethereum/ethereum
$ sudo apt-get update
$ sudo apt-get install ethereum
@kidwai
kidwai / LinearModel.sol
Created May 20, 2017 01:45
A Linear Regression Model in Solidity.
pragma solidity ^0.4.9;
library Math {
function mul (uint a, uint b, uint decimals) internal constant returns (uint) {
return a*b/10**decimals;
}
function div (uint a, uint b, uint decimals) internal constant returns (uint) {
return a*10**decimals/b;
@kidwai
kidwai / rinkeby
Last active August 11, 2017 01:09
0xa782614d8A4B6E76de08F47F57Ef7F17C329bc1F

Keybase proof

I hereby claim:

  • I am kidwai on github.
  • I am mkidwai (https://keybase.io/mkidwai) on keybase.
  • I have a public key ASCc_4arb5QDPLEAkGT4kIKPZh50KaRRp6aNn2IrIKZxYAo

To claim this, I am signing this object:

@kidwai
kidwai / Texify-Mathjax.js
Created August 29, 2017 20:36 — forked from goatandsheep/Texify-Mathjax.js
A Tampermonkey / Greasemonkey script that turns LaTeX code on page into mathematical symbols using MathJax
// ==UserScript==
// @name TeXify the World MathJax
// @namespace
// @version 1.0
// @description Enables MathJax to process LaTeX on all websites. Based off SOUP (Stack Overflow Unofficial Patch) and http://www.math.ucla.edu/~robjohn/math/mathjax.html.
// @include *
// @copyright
// ==/UserScript==
/*
var mathjaxVersion = "http://cdn.mathjax.org";
#!/bin/bash
echo "lol"
0x58449eD75ce70267CFBe782F0a306eF6E9C015E3
@kidwai
kidwai / rink
Created September 9, 2017 23:18
0xD73862cdCA7043149Ca54124A276876EF199A1E8