Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric Smith paytonrules

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am paytonrules on github.
  • I am paytonrules (https://keybase.io/paytonrules) on keybase.
  • I have a public key ASBn5GFZBYF9uvgP1fHuFF1mHQAiiFmAC5-URE7og8-hGgo

To claim this, I am signing this object:

@paytonrules
paytonrules / Makefile
Last active Aug 27, 2021
A Cheat Sheet for a bunch of the stuff we did I my Makefile talk
View Makefile
# I haven't tried this bugt I don't want to lose thie idea, a self documenting Makefile
# https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
# When I try it I'll update this, hopefully.
# Basic Syntax
target: dependency dependency2 ...
command1
command2
View Makefile
some_file: *.c
# create the binary
*.c:
touch f1.c
touch f2.c
clean:
rm -f *.c
View chirstmas.org
Person p = new Person();
Land l = new Land.Builder
               .newInstance()
               .wonder()
               .winter()
               .build();
p.walkIn(p);
View encapsulation.py
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:
View temp.clj
(-> moves
(convert-to-board)
(take-computer-turn)
(interleave))
View why-did-this-crash.cljs
; So why did this cause me issues for 30 minutes...
(defn- hash->sablono [h]
(clojure.core/remove nil? [(:elem h) (:attrs h) (:data h)]))
@paytonrules
paytonrules / notsonasty.fs
Created Mar 22, 2017
I actually like this code
View notsonasty.fs
let leftLaser = Entity.updateXPos
<| laser
<| (float Constraints.Bounds.Left)
|> Laser.updateProperties
<| laserProperties
@paytonrules
paytonrules / notsonasty.fs
Created Mar 22, 2017
I actually like this code
View notsonasty.fs
let leftLaser = Entity.updateXPos
<| laser
<| (float Constraints.Bounds.Left)
|> Laser.updateProperties
<| laserProperties
@paytonrules
paytonrules / practice.md
Last active Mar 9, 2017
Practice for the kiddos today
View practice.md
  • 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