React 101β’
All these examples do essentially the same thing.
return (
<MyComponent
something={something}
somethingElse={somethingElse}
>
React 101β’
All these examples do essentially the same thing.
return (
<MyComponent
something={something}
somethingElse={somethingElse}
>
Basecamp's new book Shape Up is now available online (https://basecamp.com/shapeup) to read page-by-page.
There is a .pdf
version, but that's not the best format for Kindle / other eReaders. Instead, we can convert the page-by-page into an eReader friendly format.
NOTE: This has only been tested on Chrome
pip install -e 'git://github.com/{ username }/{ reponame }.git@{ tag name }#egg={ desired egg name }&subdirectory={ subdir }' | |
or | |
pip install -e 'https://github.com/{ username }/{ reponame }.git@{ branch/tag name }#egg={ whatever }&subdirectory={ subdir }' | |
The key is those single quotes - without them, Bash ignores the subdirectory portion. |
<?php | |
/* | |
Plugin Name: Fix WooCommerce Template Cache | |
Plugin URI: https://woocommerce.com | |
Description: This fixes some issues with WC's template caching on sites that use multiple containers, due to the entire path being cached. If the file does not exist, this script uses default WC logic (copy/pasted) to grab the correct templates. | |
Version: 1.0.0 | |
Author: Julien Melissas | |
Author URI: https://julienmelissas.com | |
*/ | |
add_filter('wc_get_template_part', function( $template, $slug, $name ) { |
version: '2.2' | |
services: | |
elasticsearch1: | |
build: elastic-img | |
container_name: elasticsearch1 | |
environment: | |
- cluster.name=docker-cluster-for-fess | |
- node.name=node1 | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
# Install git fame | |
gem install git_fame | |
# Install all vendors with source | |
rm -rf vendor/* | |
composer update --prefer-source | |
# Do the calculations. This might take 30 minutes to complete. | |
rm output.txt | |
find ./vendor -type d -depth 2 ! -path "./vendor/composer" -exec echo {} \; -exec git fame --sort=loc --hide-progressbar --repository={} \; >> output.txt |
{ | |
"emojis": [ | |
{"emoji": "π©βπ©βπ§βπ§", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "π©βπ©βπ§βπ¦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "π©βπ©βπ¦βπ¦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "π¨βπ©βπ§βπ§", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z |
function attemptLevelUp(addedXp, currentXp, currentLevel) { | |
var baseAmountForNextLevel = 0; | |
for (i = 1; i <= currentLevel; i++) { | |
baseAmountForNextLevel += xpNeededForNextLevel(i); | |
} | |
if ((currentXp + addedXp) >= baseAmountForNextLevel) { | |
// I am levelling up. |
<?php | |
namespace AppBundle\Tests; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\ORM\Tools\SchemaTool; | |
use Doctrine\DBAL\Driver\PDOMysql\Driver as MySQLDriver; | |
class DoctrineMigrationTest extends WebTestCase | |
{ |