Skip to content

Instantly share code, notes, and snippets.

View paytonrules's full-sized avatar

Eric Smith paytonrules

View GitHub Profile

Sunday - 23rd, Magic Kingdom (8AM to 7PM)

  • Busses start at 7:15
  • Go straight to Tomorrowland. Head to Space Mountain then Buzz Lightyear.
  • From there you can head to Haunted Mansion/Pirates/Jungle Cruise before Pan, or the Monsters Inc. show in Tomorrowland. Either one.
  • Once you get to Pan you’ll want to stick around FantasyLand FastPass: Pan’s Flight 11:05 Meet Rapunzel 12:20 Seven Dwarves 2:30 Lunch Options:

Todos

  • Figure out when Mom and Dad are showing up.
  • Make sure all the "can't miss" rides are on here. Especially find out if you have to see parades.

Saturday - 22nd, Arrive at Art of Animation

Lunch

  • Hotel probably

Mutli-arity function definitions:

You use the "regex" functions. s/? Will say "0 or 1 of this" - so in the spec below 0 or 1 offsets is required.

(s/fdef create
        :args (s/cat
                :character ::character
                :offset (s/? ::offset))
 :ret ::invader)
let lookupImageKey = function
| EntityType.Laser _ -> Laser
| EntityType.Bullet _ -> Bullet
| _ -> LargeInvaderOpen
let lookupImage imageKey = Map.tryFind imageKey lookupTable
let positionImage image entity =
match entity with
| EntityType.Laser e -> {Image = image;
@paytonrules
paytonrules / practice.md
Last active March 9, 2017 22:18
Practice for the kiddos today
  • Warmup - 5 min
  • Huddle, say hi to the team. Make sure they all know your name
  • Stretching.
  • Neck rotations
  • Arm circles
  • Arm Across each side
  • Waist rotations
  • Toe Touches
  • Hamstring stretches
  • Get the sillies out
@paytonrules
paytonrules / notsonasty.fs
Created March 22, 2017 13:07
I actually like this code
let leftLaser = Entity.updateXPos
<| laser
<| (float Constraints.Bounds.Left)
|> Laser.updateProperties
<| laserProperties
@paytonrules
paytonrules / notsonasty.fs
Created March 22, 2017 13:07
I actually like this code
let leftLaser = Entity.updateXPos
<| laser
<| (float Constraints.Bounds.Left)
|> Laser.updateProperties
<| laserProperties
; So why did this cause me issues for 30 minutes...
(defn- hash->sablono [h]
(clojure.core/remove nil? [(:elem h) (:attrs h) (:data h)]))
(-> moves
(convert-to-board)
(take-computer-turn)
(interleave))
class Stats:
pass
ob = Stats()
ob.weight = -100 # weight set to a negative value, legal but wrong.
class Stats:
def setWeight(self, weight):
if weight < 0: