I hereby claim:
- I am bvandgrift on github.
- I am bvandgrift (https://keybase.io/bvandgrift) on keybase.
- I have a public key ASAf4orFDrtbzOXVMO64S8C44-wKfuSIdKy5-VCmHth31wo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| if [[ -z $1 ]]; then | |
| echo "usage: deploy \"commit message\"" | |
| else | |
| echo "Deploying with commit message: $1" | |
| cd output | |
| git add . | |
| git commit -am "$1" |
| From the Dawn of Time it came. | |
| You'll need a spice grinder, a skillet, and either a dutch oven or a really | |
| large sauce pan with a lid. Or maybe a small stock pot. | |
| First the Chili Powder: | |
| makes 1/2 cup -- needless to say, you should be grinding the chilis and cumin fresh. | |
| Grind the following dried chilis: |
| class Player | |
| MAX_HEALTH = 20 | |
| DYING_HEALTH = 10 | |
| def me | |
| @game[:me] | |
| end |
| ;; response to: https://forums.pragprog.com/forums/352/topics/13835 | |
| ;; this is a quick demonstration of the pitfalls in querying for a ref | |
| ;; outside of the accompanying transaction in which you plan on changing it. | |
| (import '(java.util.concurrent Executors)) | |
| ;; start list | |
| (def slist (ref #{})) |
| Verifying that +bvandgrift is my blockchain ID. https://onename.com/bvandgrift |
| module AttributeRequirements | |
| extend ActiveSupport::Concern | |
| SQL_TYPE_MATCHERS = { | |
| /^character varying/ => String, | |
| /^text/ => String, | |
| /^enum/ => String, | |
| /^timestamp/ => DateTime, | |
| /^integer/ => Integer, |
| // takes a fn and a number of arguments to append to the | |
| // fn's argument list | |
| var rPartial = function(fn, extras) { | |
| var postArgs = [].slice.call(arguments).slice(1); | |
| return function(vars) { | |
| var preArgs = [].slice.call(arguments); | |
| var allArgs = preArgs.concat(postArgs); | |
| return fn.call(fn.this, ...allArgs); | |
| }; |
| // why not let set and spread do all the work? | |
| // arbitrary number of arrays, unique | |
| function unicat(...arrays) { | |
| let collector = []; | |
| arrays.forEach((a) => {collector = collector.concat(a);}); | |
| return Array.from(new Set(collector).values()); | |
| } | |
| // O(n), i think, if concat() is implemented sanely. |
| ## off the top of my head, syntax problems are an exercise for the reader | |
| list = [:a, 'list', 3, 1.15, {b: 'yes, really'}] | |
| # a simple list comprehension. | |
| list.each do |thing| | |
| puts thing.class # or some triviality | |
| end | |
| # functions take blocks, by default -- a block is a closure over |
I hereby claim:
To claim this, I am signing this object: