Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
| <?php | |
| require 'db_config.php'; | |
| /** | |
| * <?php | |
| * $servername = "127.0.0.1"; | |
| * $username = "root"; | |
| * $password = ""; | |
| * $dbname = "myDB"; | |
| * ?> |
Welcome, Codeashians! This program will be six weeks long, with five sprints and two major phases. Each phase will consist of of one or more sprints in collaboration with a pairing partner or team, with the exception of the initial solo sprints.
Phase1
Phase 2
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
To install a composer package globally, you run the usual require command, but with the addition of the global modifier. So to install PHPUnit, you would run:
$ composer global require phpunit/phpunit
$ composer global require phpunit/dbunit
$ composer global require phing/phing
$ composer global require phpdocumentor/phpdocumentor
$ composer global require sebastian/phpcpd| # 10_basic.py | |
| # 15_make_soup.py | |
| # 20_search.py | |
| # 25_navigation.py | |
| # 30_edit.py | |
| # 40_encoding.py | |
| # 50_parse_only_part.py |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| import * as mongoose from 'mongoose'; | |
| export let Schema = mongoose.Schema; | |
| export let ObjectId = mongoose.Schema.Types.ObjectId; | |
| export let Mixed = mongoose.Schema.Types.Mixed; | |
| export interface IHeroModel extends mongoose.Document { | |
| name: string; | |
| power: string; |
| function OnBlurComponent({ onBlur }) { | |
| const handleBlur = (e) => { | |
| const currentTarget = e.currentTarget; | |
| // Check the newly focused element in the next tick of the event loop | |
| setTimeout(() => { | |
| // Check if the new activeElement is a child of the original container | |
| if (!currentTarget.contains(document.activeElement)) { | |
| // You can invoke a callback or add custom logic here | |
| onBlur(); |
All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Most sections are broken up into two parts: