I hereby claim:
- I am italolelis on github.
- I am italolelis (https://keybase.io/italolelis) on keybase.
- I have a public key whose fingerprint is 194A 33A6 61DB F72D 0C59 DED3 6357 2055 E89B 5459
To claim this, I am signing this object:
function flatMap($data, \Closure $p) | |
{ | |
$collection = call_user_func_array("array_map", array($p)); | |
return iterator_to_array(new \RecursiveIteratorIterator( | |
new \RecursiveArrayIterator($data)), false); | |
} |
I hereby claim:
To claim this, I am signing this object:
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/italolelis/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="refined" |
// Order represents a coffee order | |
type Order struct { | |
ID uuid.UUID `json:"id" db:"id"` | |
CreatedAt time.Time `json:"created_at" db:"created_at"` | |
Items Items `json:"items" db:"items"` | |
CustomerName string `json:"customer_name" db:"customer_name"` | |
} | |
// Items are a collection of order items | |
type Items []*Item |
// WriteRepository represents the write operations for an order | |
type WriteRepository interface { | |
Add(context.Context, *Order) error | |
Remove(context.Context, uuid.UUID) error | |
} | |
// ReadRepository represents the read operations for an order | |
type ReadRepository interface { | |
FindOneByID(context.Context, uuid.UUID) (*Order, error) | |
} |
I hereby claim:
To claim this, I am signing this object: