@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).
Here we go with the explanations:
(function(x, f = () => x) {@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).
Here we go with the explanations:
(function(x, f = () => x) {| # SYMFONY | |
| _symfony() { | |
| local cur cmd | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[${COMP_CWORD}]}" | |
| command="${COMP_WORDS[1]}" | |
| if [ ${COMP_CWORD} == 1 ]; then | |
| cmds="$(symfony list --no-ansi | grep -e '^\s\s[a-z]' | awk '{ print $1}')" |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| private function getAllFormErrors($children, $template = true) { | |
| foreach ($children as $child) { | |
| if ($child->hasErrors()) { | |
| $vars = $child->createView()->getVars(); | |
| $errors = $child->getErrors(); | |
| foreach ($errors as $error) { | |
| $this->allErrors[$vars["name"]][] = $this->convertFormErrorObjToString($error); | |
| } | |
| } |