This gist is a follow-up to this Lando issue, updated for Docker Composer and Windows (but might also help macOS and Linux users).
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 | |
/** | |
* @file src/Kernel.php | |
*/ | |
<?php | |
namespace App; |
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
C:\xampp-7.3.3\php\php.exe C:\ProgramData\ComposerSetup\bin\composer.phar create-project symfony/website-skeleton my_project_name |
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
const fs = require('fs'); | |
const file = JSON.parse(fs.readFileSync('./my-file.har')).log; | |
const targetMimeType = 'application/font-woff'; | |
let count = 0; | |
for (const entry of file.entries) { | |
if (entry.response.content.mimeType === targetMimeType) { | |
let fileName = entry.request.url.split('/').pop(); | |
// Ensure output directory exists before running! | |
fs.writeFileSync(`./output/${fileName}`, new Buffer(entry.response.content.text, 'base64'), 'binary'); |
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
/* | |
* POINT3D CLASS Copyright (c) Brandon Williams - 3/3/2001 - [email protected] - use freely with accreditation. | |
* | |
* | |
* CONSTRUCTOR: point3d (px, py, pz, pcx, pcy, MC, psize, D) | |
* | |
* -- creates a new 3d point (can be used for 2d by making pz=0). The arguements "px", "py", | |
* and "pz" is the point's ordered triplet (x,y,z). Arguements "pcx" and "pcy" is where on | |
* the stage you want the origin to be. Since (0,0) on a computer screen is in the top left | |
* hand corner those variables are used to center the point's rotations/movements. This way |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
$couleur-bandeau: (fr: blue, en: red, es: #f0f); | |
@mixin lang-color($prop, $color-name) { | |
@each $lang, $val in $color-name { | |
#{'.lang-' + $lang} & { |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
/** | |
* Gros caca kilométrique | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
class Entity { | |
/** | |
* @var ArrayCollection | |
* @ORM\OneToMany( | |
* targetEntity="PlaceThemePresence", | |
* mappedBy="place", | |
* cascade={"persist"}, | |
* orphanRemoval=true | |
* ) |
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
/** | |
* Basel;ne fixes | |
*/ |