- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
To colaborate on a gist:
- Clone your gist repo locally
- Add your friend’s fork as a remote
e.g. if your friend is named Cindy:
git remote add-url cindy https://gist.github.com/cindy/df03bdacaef75a80f310
- Fetch your friend’s commits:
git fetch cindy/master
- Merge your friend’s changes into your repo:
git merge cindy/master
- Push the changes back to GitHub:
git push origin/master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Some things that are "better" with this BetterPromise
implementation:
-
BetterPromise # then(..)
accepts aBetterPromise
(orPromise
) 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);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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"; |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |