type:: flashcards tags:: english, english learning
# this config is for zsh | |
# iterm | |
bindkey "\e\e[D" backward-word # ⌥← | |
bindkey "\e\e[C" forward-word # ⌥→ | |
# kitty | |
bindkey "\e[1;3D" backward-word # ⌥← | |
bindkey "\e[1;3C" forward-word # ⌥→ |
FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
I've been developing Flutter apps for two years, and until this month did so exclusively on OS X. I decided to move my development environment entirely to Windows, troubled by Apple's recent behavior with the App Store, put off by being forced to buy an overpriced Mac to develop apps for iOS, and tired of wrestling with OS X's non-standard BSD-like Linux environment and Homebrew package manager. This document describes the various approaches I tried, and how to set up the one I liked the best.
FROM php:7.4-fpm-alpine | |
# @see https://hub.docker.com/r/jpswade/php7.4-fpm-alpine | |
MAINTAINER Agent Software <[email protected]> | |
# Install gd, iconv, mbstring, mysql, soap, sockets, zip, and zlib extensions | |
# see example at https://hub.docker.com/_/php/ | |
RUN apk add --update \ | |
$PHPIZE_DEPS \ | |
freetype-dev \ | |
git \ |
À A | |
Á A | |
Ả A | |
Ạ A | |
 A | |
Ấ A | |
Ầ A | |
Ẩ A | |
Ậ A | |
Ẫ A |
Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.
I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).
try { | |
var response = (HttpWebResponse) request.GetResponse(); | |
} catch (Exception e) { | |
var response = (HttpWebResponse) e.Response; | |
} |
<?php | |
$comments = [ | |
1 => ['content' => "The first comment", 'parent' => 0], | |
2 => ['content' => "The second comment", 'parent' => 0], | |
3 => ['content' => "Reply of first comment", 'parent' => 1], | |
4 => ['content' => "Another reply of first comemnt", 'parent' => 1], | |
5 => ['content' => "Reply of a reply of the first comment", 'parent' => 4] | |
]; |
<?php | |
// http://php.net/manual/en/language.references.php | |
$flat = array( | |
"7" => array( | |
"id" => 7, | |
"parent" => 6 | |
), | |
"6" => array( | |
"id" => 6, |