I hereby claim:
- I am damonmcminn on github.
- I am damonmcminn (https://keybase.io/damonmcminn) on keybase.
- I have a public key whose fingerprint is 5952 35E5 9861 4110 D68C 3BFD 0D2B 5D7A 00B5 CFAB
To claim this, I am signing this object:
| <script> | |
| var currentMonth = moment().format('YYYY-MM'); | |
| var nextMonth = moment().add('month', 1).format('YYYY-MM'); | |
| var events = [{"date": "2014-02-27", "url": "http://dev.mccarthyscott.com/be/booking-search?field_booking_date_value%5Bvalue%5D%5Bdate%5D=2014-02-10&field_timeslot_category_tid%5B%5D=9#sidr"}, {"date": "2014-02-25", "url": "http://dev.mccarthyscott.com/be/booking-search?field_booking_date_value%5Bvalue%5D%5Bdate%5D=2014-02-10&field_timeslot_category_tid%5B%5D=9#sidr"}]; | |
| $('#full-clndr').clndr({ | |
| template: $('#full-clndr-template').html(), | |
| events: events, | |
| daysOfTheWeek: ['M', 'T', 'W', 'T', 'F', 'S', 'S'], |
| <?php | |
| $begin = new DateTime('now'); | |
| $beginformat = $begin->format("Y-m-d"); | |
| $beginfinal = strtotime($beginformat); | |
| $end = $begin->modify("+90 day"); | |
| $endformat = $end->format("Y-m-d"); | |
| $endfinal = strtotime($endformat); | |
| $dates = array(); |
| <?php | |
| $begin = new DateTime('now'); | |
| $beginformat = $begin->format("Y-m-d"); | |
| $beginfinal = strtotime($beginformat); | |
| $end = $begin->modify("+90 day"); | |
| $endformat = $end->format("Y-m-d"); | |
| $endfinal = strtotime($endformat); | |
| $dates = array(); |
I hereby claim:
To claim this, I am signing this object:
| require 'rails_helper' | |
| RSpec.describe TodosController, :type => :controller do | |
| context "GET index" do | |
| #context "POST create" do | |
| #context "GET show" do | |
| #context "PATCH update" do (or PUT update) | |
| #context "DELETE destroy" do | |
| #context "GET new" do |
| // a recursive type | |
| type AnonResult<'T> = | |
| | Value of 'T | |
| | Fn of ('T-> AnonResult<'T>) | |
| // only accepts functions that take two args | |
| let rec create (fn : 'T -> 'T -> 'T) = | |
| // this can probably be achieved more idiomatically with recursion | |
| // but the mutation is localised... | |
| let mutable accumulatedValue : 'T option = None |
user system total real
fib 1000 0.000000 0.000000 0.000000 ( 0.001114)
fib 10000 0.010000 0.000000 0.010000 ( 0.016190)
fib 100000 0.640000 0.090000 0.730000 ( 0.564936)
fib 500000 14.650000 3.230000 17.880000 ( 12.655379)
fib 1000000 56.280000 10.130000 66.410000 ( 46.374916)
| type FiniteAutomataRule<'State, 'Input> = { | |
| State:'State | |
| Input:'Input | |
| NextState:'State | |
| } | |
| type DoorState = | |
| | Open | |
| | Closed | |
| | Opening |
| type Weight = Weight of int | |
| type Temperature = Temperature of int | |
| type Capacity = Capacity of Weight | |
| type Goldilocks = { | |
| Weight:Weight | |
| MaxTemp:Temperature | |
| } | |
| type Chair = { |