(disclaimer: matter of taste)
This file contains hidden or 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
module This exposing (..) | |
import Date | |
import Dict | |
type alias Entry = | |
{ date : Date.Date | |
, text : String | |
} |
This file contains hidden or 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
module Main exposing (..) | |
import Html exposing (Html, div, text, program) | |
import Mouse | |
import Keyboard | |
import Date | |
import Time | |
import Task | |
import Date.Format |
This file contains hidden or 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
module SignupForm exposing (..) | |
import Http | |
import Task exposing (Task) | |
import Json.Decode exposing (succeed) | |
import Html.App | |
import Html exposing (..) | |
import Html.Events exposing (..) | |
import Html.Attributes exposing (id, type', for, value, class) |
This file contains hidden or 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
#app,body,html{height:100%}body{font-family:sans-serif;margin:0;padding:0}.App{height:100%;min-height:400px;text-align:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:stretch;-webkit-justify-content:stretch;-ms-flex-pack:stretch;justify-content:stretch}.App,.App-flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.App-flex{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.App-heading{background-color:#222;color:#f8f8f8;font-size:6vh;box-shadow:0 4px 4vh 4px rgba(34,34,34,.9);z-index:2}.App-react{color:#00d8ff;text-decoration:overline underline}.App-logo{max-height:30vh;max-width:30vh}.App-instructions{background-color:#f8f8f8;color:#222;font-size:3vh;line-height:1.5;padding:0 1em}.A |
This file contains hidden or 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
#!/usr/bin/env bash -e | |
cf push forcehttps -b staticfile_buildpack --random-route |
This file contains hidden or 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
val instructions = ToAnEmptyPage() | |
.withWidth(600).and().withHeight(800).and().withVerticalMargin(50).and().withHorizontalMargin(25) | |
.add() | |
.rectangles().inAGridOf(2, 3).withMargin(15) | |
.then() | |
.duplicate().all() | |
.then() | |
.slice().all().randomly() | |
.and() |
This file contains hidden or 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
<div class="svg-path"> | |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 64" enable-background="new 0 0 47.6 59.8"> | |
<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="shadow-filter"> | |
<feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset> | |
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur> | |
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.248754529 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix> | |
</filter> | |
<path id="shadow" fill="none" stroke-width="2" stroke-miterlimit="10" stroke="#4dbeee" d="m.8 34.7s8.7-12.4 7.5-24.3l5.2 8.9 6.1-14.4v15.9l15.4-10.4-7 16.6 16.8 1.2-19 14.5 12.7 2.2-26 14"/> |
This file contains hidden or 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
{"x": 100, "y": 100} |
This is a script to return all DriveNow car locations for Berlin, Germany. It is easily changed to work with any other city DriveNow provides service in.
You need a DriveNow API key and auth token. It's easiest to get your's by logging into the DriveNow website and using your browser's dev tools.