Skip to content

Instantly share code, notes, and snippets.

View mahdix's full-sized avatar
🏠
Working from home

Mahdi Mohammadi mahdix

🏠
Working from home
View GitHub Profile
@cnicodeme
cnicodeme / fixes.md
Last active May 8, 2024 18:03
List of 5,000 Most Frequently Used Domain Name Prefixes and Suffixes - Ordered By Length
@igstan
igstan / poly-return.scala
Last active June 15, 2017 22:50
Polymorphic return types in Scala using implicit parameters
trait Factory[T] {
def create: T
}
object Factory {
implicit def stringFactory: Factory[String] = new Factory[String] {
def create = "foo"
}
implicit def intFactory: Factory[Int] = new Factory[Int] {