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
# To learn more about how to use Nix to configure your environment | |
# see: https://developers.google.com/idx/guides/customize-idx-env | |
{pkgs}: { | |
# Which nixpkgs channel to use. | |
channel = "stable-23.11"; # or "unstable" | |
# Use https://search.nixos.org/packages to find packages | |
packages = [ | |
pkgs.php82 | |
pkgs.php82Packages.composer | |
pkgs.nodejs_20 |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Content-Security-Policy</title> | |
<meta name="viewport" content="width=device-width"> | |
<meta http-equiv="Content-Security-Policy" | |
content="default-src 'self' data: gap: 'unsafe-eval' ws: ; | |
style-src 'self' 'unsafe-inline'; | |
script-src https: *.example.com ; |
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 | |
class Person | |
{ | |
private $firstName; | |
private $lastName; | |
private $age; | |
public function __construct(string $firstName, string $lastName, int $age) | |
{ |