Outline of ideas, concepts to cover, potential projects to write.
- Book with a video for each chapter.
Some things that are "better" with this BetterPromise implementation:
BetterPromise # then(..) accepts a BetterPromise (or Promise) instance passed directly, instead of requiring a function to return it, so that the promise is linked into the chain.
var p = BetterPromise.resolve(42);
var q = Promise.resolve(10);
p.then(console.log).then(q).then(console.log);No, this isn't about render props
I'm going to clean this up and publish it in my newsletter next week!
So react-i18n (not the npm one... one we made at PayPal internally) has this
| <?php | |
| /* | |
| Plugin Name: Sample Plugin | |
| Plugin URI: https://brianhogg.com/ | |
| Description: Showing is_new | |
| Version: 1.0 | |
| Author: Brian Hogg | |
| Author URI: https://brianhogg.com | |
| License: GPLv2 or later | |
| */ |
To colaborate on a gist:
git remote add-url cindy https://gist.github.com/cindy/df03bdacaef75a80f310git fetch cindy/mastergit merge cindy/mastergit push origin/master| #!/bin/bash | |
| #Retrieves an environment variable from the correct environment file | |
| #Based on the specified environment | |
| #Example: getEnvVariable local DB_USER VARIABLE | |
| #Will attempt to retrieve the DB_USER array value from the file at .env.local.php | |
| #And then store the result in VARIABLE | |
| getEnvVariable(){ | |
| local RESULT=$3 | |
| local LOCAL_RESULT=$(php -r ' | |
| $file = getcwd() . "/.env." . trim($argv[1]) . ".php"; |
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <Data> | |
| <Series> | |
| <id>83462</id> | |
| <Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors> | |
| <Airs_DayOfWeek>Monday</Airs_DayOfWeek> | |
| <Airs_Time>10:00 PM</Airs_Time> | |
| <ContentRating>TV-PG</ContentRating> | |
| <FirstAired>2009-03-09</FirstAired> | |
| <Genre>|Drama|</Genre> |