Skip to content

Instantly share code, notes, and snippets.

View GitsMcGee's full-sized avatar

Joe Zulli GitsMcGee

View GitHub Profile
@non
non / sipzz.md
Last active August 6, 2017 04:24

SIP-ZZ - NewType Classes

Introduction

This is a proposal to introduce syntax for classes in Scala that can get completely inlined, so operations on these classes have zero overhead compared to external methods. Some use cases for inlined classes are:

  • Inlined implicit wrappers. Methods on those wrappers would be
@patpohler
patpohler / Big List of Real Estate APIs.md
Last active May 21, 2024 01:43
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

Intercom user_hash

Remember that your secret key should never be exposed to the public

  • So Javascript code below should only be used for testing unless modified and used to run on a server
@julienrf
julienrf / Values.scala
Last active November 18, 2015 08:14
Yet another Scala enumeration-like tool powered by shapeless. Inspired by https://github.com/milessabin/shapeless/blob/master/examples/src/main/scala/shapeless/examples/enum.scala
/** A typeclass giving the values of an enumeration */
@implicitNotFound("Unable to find values of ${A}. Make sure it is a sealed trait and is only extended by case objects.")
class Values[A](val values: Set[A])
/**
* The companion object contains the machinery to automatically derive the values of a sealed trait
* extended by case objects only.
*
* Basically, the derivation process is the following:
* - we are given a sort of list containing the types of the case objects that extend a sealed trait `A` ;