I hereby claim:
- I am barodeur on github.
- I am barodeur (https://keybase.io/barodeur) on keybase.
- I have a public key ASDY1epvqCiVg_JQ5SLZAhVB7zz5kUUfTv0Z68Izmexwego
To claim this, I am signing this object:
| source 'https://rubygems.org' | |
| ruby "3.4.4" | |
| gem "async" |
I hereby claim:
To claim this, I am signing this object:
| const fetchMachine = Machine({ | |
| id: "dailyChallenge", | |
| initial: "not_started", | |
| context: { | |
| remainingPrompts: 2 | |
| }, | |
| states: { | |
| not_started: { | |
| on: { | |
| START: "playing" |
00000000000000ab080200000157fd50ce080004a014771cf4da0b009c00
420b001ffd140a0101020003004501f00150051504c800fd01fe3608b500
11b6000a42389018001fcd60ebce3006431f8644000002c70000000ff100
0051410000000157fd50d60a0004a01d931cf4dd48009b003c0b0025fd14
0a0101020003004501f00150051504c800fd01fe3708b50011b6000a4238
8c180025cd60ebce3006431f8644000002c700000011f100005141000200
| // mock for collection.findOne | |
| // the fourth call returns true the fifth returs false | |
| var i = 0; | |
| var isTokenInDB = function(token, callback) { | |
| setTimeout(function() { | |
| callback(null, (++i) < 5); | |
| }, 200); | |
| }; | |
| // generate random string |
I hereby claim:
To claim this, I am signing this object:
| ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwCKRkq5ID7bhVJkkOq100t7E0V6EnMhRg3Q9RvuxlbqCv7/I5yAEPqGnFtQbmS7ljsRVDzXV9+klYjvCPX/x+bD3dgc7T5h7oqB8xggJ70etr2Lma625tDn9RPzO8IUBOEnQRPDx5MQYTct3yxZt45mbOHYeBwnDUf4arvD79F8bSZMfDMOeLkyKiFzJEATM+W0GWwxC08IYhOAnXmhi5SdqeaLsh4xZdTC5+7Lh3hNrBIk8udgxRD065YovhZfvPyLWC4w7Usz7Tv6+YhPvexBT6TlCmTk413+MqsO4So9eSzwi9n0WUetHg7Au6awOuWz0U0pnfn0kiBfpXAelDQ== [email protected] |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <netinet/in.h> | |
| #include <ev.h> | |
| #include <strings.h> | |
| #define PORT_NO 3033 | |
| #define BUFFER_SIZE 1024 | |
| void accept_cb(struct ev_loop *loop, struct ev_io *watcher, int revents); |
| async = require 'async' | |
| arr = [1, 2, 3, 4, 5, 6] | |
| async.reduce( | |
| [ | |
| (i, cb) -> cb(null, i * 2) | |
| (i, cb) -> cb(null, i + 1) | |
| ] | |
| (i, cb) -> cb(null, i) |