Skip to content

Instantly share code, notes, and snippets.

View tonymorris's full-sized avatar

Tony Morris tonymorris

View GitHub Profile
@tonymorris
tonymorris / waypoint-symbols-mapsource.md
Last active August 29, 2015 13:55
Waypoint symbols available in Garmin MapSource.

Waypoint symbols on Garmin MapSource version 6.16.3

Outdoor

  1. Trail Head
  2. Bike Trail
  3. Skiing Area
  4. Swimming Area
  5. Ski Resort
  6. Ice Skating
@tonymorris
tonymorris / ApplyLaw.hs
Last active August 29, 2015 13:56
The composition law of Apply
{-# LANGUAGE NoImplicitPrelude #-}
import Prelude(Eq(..), Bool, (.))
class Functor f where
(<$>) ::
(a -> b)
-> f a
-> f b
@tonymorris
tonymorris / scaladoc.md
Created February 8, 2014 00:35
This is one reason why scaladoc is not documentation. You know, reliability and all that important stuff.
@tonymorris
tonymorris / wiring.md
Last active August 29, 2015 13:56
Wiring

Jason

  • Spotlights x 2
  • Heated grips not working Resolved
  • SR10

Tony

  • Spotlights x 4 Installed
  • Front/rear indicators Installed

Teviotville Tree

  • Teviotville Tree
  • Teviotville Tree
  • Teviotville Tree

Waterfall Creek Road

  • Waterfall Creek Road
  • Waterfall Creek Road

Item 151234269792

22-Feb-14 20:49

dibblego:

Hi there, I was wondering if I could just "buy it now" for this item at $120.00 + postage instead of waiting 4 days for the auction to end. What do you think?


@tonymorris
tonymorris / gist:9456369
Created March 9, 2014 23:07
FirstNothing
module FirstNothing where
-- $setup
-- >>> import Test.QuickCheck
-- >>> instance Arbitrary a => Arbitrary (FirstNothing a) where arbitrary = fmap FirstNothing arbitrary
newtype FirstNothing a =
FirstNothing (Maybe a)
deriving (Eq, Show)
class Semigroup a where
@tonymorris
tonymorris / lj-ideas.md
Created March 11, 2014 03:44
Ideas for proposals for YLJ2014
  1. Trivial example of dependent types that is also useful (therefore, not the canonical vector size example). Better example: function spaces

  2. Interoperability of the Idris language with legacy libraries (JVM).

  3. Stream processing with scalaz-stream.

  4. Profunctors, the new Arrows.

@tonymorris
tonymorris / LetsTellLies.scala
Created March 13, 2014 13:59
Lets Tell Lies
object LetsTellLies {
def f1[A]: List[A] => Int =
_ => util.Random.nextInt
def f2[A]: List[A] => Int =
f2
def f3[A]: List[A] => Int =
_ => {
println("hi")
@tonymorris
tonymorris / ReaderOption.scala
Created March 20, 2014 23:42
Reader compose Option
case class ~=>[T, A](f: T => A) {
def map[B](g: A => B): T ~=> B =
~=>(f andThen g)
def flatMap[B](g: A => T ~=> B): T ~=> B =
~=>(t => g(f(t)).f(t))
}
object ~=> {
// unit: A => F[A]