This file contains 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 | |
#[\Attribute(Attribute::TARGET_CLASS)] | |
class Route | |
{ | |
public function __construct( | |
public string $path | |
) | |
{} | |
} |
This file contains 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
function Person() { | |
this.age = 0; | |
function growUp() { | |
console.log('Function', this.age); | |
} | |
const growUpArrow = () => console.log('Arrow function', this.age); | |
growUp(); |
This file contains 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
npx -p @angular/cli ng new hello-world-project | |
then locally can run | |
npx ng g c hello-world-component | |
This file contains 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 | |
// This is the Stats class I wanted to create. It lives in app/Stats.php, but could be anywhere that the AutoLoader will recognise it | |
namespace App; | |
use App\Action; | |
use Carbon\Carbon; | |
/** |
This file contains 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
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/bholland/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="random" | |
# Uncomment the following line to use case-sensitive completion. |
This file contains 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
[ | |
{ name_pl: "Afganistan", name_en: "Afghanistan", code: "AF" }, | |
{ name_pl: "Albania", name_en: "Albania", code: "AL" }, | |
{ name_pl: "Algieria", name_en: "Algeria", code: "DZ" }, | |
{ name_pl: "Andora", name_en: "Andorra", code: "AD" }, | |
{ name_pl: "Angola", name_en: "Angola", code: "AO" }, | |
{ name_pl: "Anguilla", name_en: "Anguilla", code: "AI" }, | |
{ name_pl: "Antarktyka", name_en: "Antarctica", code: "AQ" }, | |
{ name_pl: "Antigua i Barbuda", name_en: "Antigua and Barbuda", code: "AG" }, | |
{ name_pl: "Arabia Saudyjska", name_en: "Saudi Arabia", code: "SA" }, |