// Built-in types
$variable = null; // null type
// Scalar types
$boolVar = true; // bool type
$intVar = 42; // int type
$floatVar = 3.14; // float type
This file contains hidden or 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
| format = """ | |
| [](#5e81ac)\ | |
| $os$username[@](bg:#5e81ac fg:#2e3440)$hostname\ | |
| [](bg:#81a1c1 fg:#5e81ac)\ | |
| $directory\ | |
| [](bg:#88c0d0 fg:#81a1c1)\ | |
| $git_branch$git_commit$git_state$git_metrics$git_status\ | |
| [](bg:#8fbcbb fg:#88c0d0)\ | |
| $package$c$cmake$cobol$daml$dart$deno$dotnet$elixir$elm$erlang$fennel$gleam\ | |
| $golang$guix_shell$haskell$haxe$helm$java$julia$kotlin$gradle$lua$nim$nodejs\ |
This file contains hidden or 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 | |
| namespace Tests; | |
| use Illuminate\Contracts\Auth\Authenticatable; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| use Illuminate\Validation\ValidationException; | |
| use Illuminate\Validation\Validator; | |
| use Symfony\Component\HttpFoundation\ParameterBag; | |
| use function PHPUnit\Framework\assertFalse; |
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.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
This file contains hidden or 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
| # Shell options | |
| setopt autocd # automatically cd to a directory if not cmd | |
| setopt autopushd # automatically pushd directories on dirstack | |
| setopt nopushdsilent # print dirstack after each cd/pushd | |
| setopt pushdignoredups # don't push dups on stack | |
| setopt correct # try to correct spelling... |