This blog post series has moved here.
You might also be interested in the 2016 version.
/// flutter_background_geolocation Hello World | |
/// https://github.com/transistorsoft/flutter_background_geolocation | |
//// | |
// For pretty-printing location JSON. Not a requirement of flutter_background_geolocation | |
// | |
import 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' |
-- base ==4.7.0.1 | |
-- bytestring ==0.10.4.0 | |
-- connection ==0.2.4 | |
-- network ==2.4.2.3 | |
-- text ==1.1.0.0 | |
-- websockets ==0.9.3.1 | |
import Control.Concurrent (forkIO) | |
import Control.Monad (forever, void) | |
import qualified Data.ByteString as BS |
hush :: Either e a -> Maybe a | |
hush = either (const Nothing) Just | |
toId :: JObject -> Maybe Number | |
toId o = fromNumber <|> fromString | |
where | |
fromNumber = hush $ o .? "id" | |
fromString = do | |
s <- hush $ o .? "id" | |
mfilter (isNan >>> not) Just (readFloat s) |
This blog post series has moved here.
You might also be interested in the 2016 version.
; A REPL-based, annotated Seesaw tutorial | |
; Please visit https://github.com/daveray/seesaw for more info | |
; | |
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers | |
; Seesaw's basic features and philosophy, but only scratches the surface | |
; of what's available. It only assumes knowledge of Clojure. No Swing or | |
; Java experience is needed. | |
; | |
; This material was first presented in a talk at @CraftsmanGuild in | |
; Ann Arbor, MI. |