I hereby claim:
- I am kevinpeno on github.
- I am kevinpeno (https://keybase.io/kevinpeno) on keybase.
- I have a public key whose fingerprint is 83A2 B195 49DB 6A90 311F 2871 2938 D7FC 3BC3 9D67
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ### Keybase proof | |
| I hereby claim: | |
| * I am kevinpeno on github. | |
| * I am dsckevinpeno (https://keybase.io/dsckevinpeno) on keybase. | |
| * I have a public key ASBBudfc3TsftKzLg3CAwYRJIsNuMNMq5Uqg3HXTx9sz-Qo | |
| To claim this, I am signing this object: |
Hope you've had your coffee. I'm trying to figure out why this works:
state.map((good) => {
if ( good.type === type ) {
return _.assign(good, { amount })
}
else {
return good
}
})
| 14.2: Arrow Function Definitions | |
| ArrowFunction[In, Yield] : | |
| ArrowParameters[?Yield] [no LineTerminator here] => ConciseBody[?In] | |
| ArrowParameters[Yield] : | |
| FormalParameters[?Yield] | |
| StrictFormalParameters[?Yield] | |
| CoverParenthesizedExpressionAndArrowParameterList[?Yield] |
| /* | |
| ES2015 fat arrow noop | |
| */ | |
| () => {} | |
| /* | |
| My fat arrow noop | |
| */ |
| // Can't import built-in modules? :( | |
| const {abs, pow} = Math |
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>A test for using object for webp</title> | |
| </head> | |
| <body> | |
| <object data="https://www.gstatic.com/webp/gallery3/1_webp_ll.webp" type="image/webp"> | |
| <img src="https://www.gstatic.com/webp/gallery3/1.png"/> | |
| </object> | |
| </body> |
| <?php | |
| # Normal array | |
| $startMemory = memory_get_usage(); | |
| $array = range( 1, 100000 ); | |
| echo ( ( memory_get_usage() - $startMemory ) / 100000 ), " bytes per element\n"; | |
| unset( $array, $startMemory ); | |
| # stdClass as a simple map/dictionary | |
| $startMemory = memory_get_usage(); | |
| $array = new stdClass(); |
| -- ---------------------------- | |
| -- Table structures | |
| -- If using MySQL, update each table definition to use INNODB or foreign keys will be pointless | |
| -- Example: | |
| -- CREATE TABLE "Ingredient" ( | |
| -- "name" TEXT NOT NULL, | |
| -- PRIMARY KEY ("name" ASC) | |
| -- ) type INNODB; | |
| -- ---------------------------- | |
| CREATE TABLE "Ingredient" ( |