This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Saheb Motiani", | |
"label": "loves debugging Distributed Systems; enjoys Functional Programming.", | |
"image": "", | |
"phone": "", | |
"url": "", | |
"summary": "I care about software performance, robustness, and resiliency. \n\nI crave mysteries, love investigations, and am always hunting for weird issues in systems around me. \n\nMost of my professional experience has been in developing product-based application-level software, but I am also interested in low-level system programming, networks, databases, operating-systems, and developer tools.", | |
"location": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Legacy | |
abstract class Lannister { | |
def payTheirDebts: Boolean | |
def trueLannister = payTheirDebts | |
def debt: Int | |
def addToDebt(amount: Int): Int | |
} | |
//Father | |
trait Tywin extends Lannister{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Legacy | |
abstract class Lannister { | |
def payTheirDebts: Boolean | |
def trueLannister = payTheirDebts | |
} | |
//Father | |
trait Tywin extends Lannister{ | |
override def payTheirDebts = true | |
def debt: Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Legacy | |
abstract class Lannister { | |
def payTheirDebts: Boolean | |
def trueLannister = payTheirDebts | |
} | |
//Father | |
trait Tywin extends Lannister{ | |
override def payTheirDebts = true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fib_tail(n: Int, a: Int = 1, b: Int = 1):Int = n match | |
{ | |
case 0 => 0 | |
case 1 | 2 => b | |
case _ => fib_tail(n - 1, b, (a + b)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fib(n : Int):Int = n match | |
{ | |
case 0 => 0 | |
case 1 => 1 | |
case _ => fib(n-1) + fib(n-2) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fact_tail(n:Int, holder:Int):Int = n match | |
{ | |
case 1 => holder | |
case _ => fact_tail(n-1, n*holder) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fact(n : Int):Int = n match | |
{ | |
case 1 => 1 | |
case _ => n * fact(n-1) | |
} |