Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Lakshman Sankar lsankar4033

🎯
Focusing
Block or report user

Report or block lsankar4033

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am lsankar4033 on github.
  • I am ls43 (https://keybase.io/ls43) on keybase.
  • I have a public key ASDYr7tC5YMqUXWROkkuuitOqBfDnh2sLwRsgtpScdq2xwo

To claim this, I am signing this object:

View abi.json
"abi": [
{
"constant": true,
"inputs": [],
"name": "creator",
"outputs": [
{
"name": "",
"type": "address"
}
@lsankar4033
lsankar4033 / Etherdate.sol
Last active Mar 19, 2018
Etherdate gen 2
View Etherdate.sol
pragma solidity ^0.4.4;
contract Etherdate {
uint constant startingPrice = 20 finney;
string constant startingMessage = "Nothing to see here...";
uint constant dummyCoinID = 0;
// There are 366 coins (1-indexed so that 0 can be used as a non-assignment flag):
// day | id
@lsankar4033
lsankar4033 / BirthdayCoin.sol
Last active Mar 6, 2018
etherdate contract
View BirthdayCoin.sol
pragma solidity ^0.4.4;
contract BirthdayCoin {
uint constant startingPrice = 20 finney;
string constant startingMessage = "Nothing to see here...";
// There are 366 coins (1-indexed so that 0 can be used as a non-assignment flag):
// day | id
// 1/1 | 1
// ...
View dailyprogrammer1-12
private def toNum(c: Char): Int = c match {
case 'X' => 10
case ci if c.isDigit => c.toInt
case _ => throw new IllegalStateException("Can't get here")
}
def validate(s: String): Boolean = {
val validChars = s.filter(c => c.isDigit || c == 'X')
if (validChars.length != 10) {
false
You can’t perform that action at this time.