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
import {spawn} from "child_process"; | |
const yarn_path = process.env.npm_execpath; | |
const node_path = process.env.npm_node_execpath; | |
const create_process = function(name, args) { | |
let child = spawn(node_path, [yarn_path, ...args], {stdio: 'inherit'}); | |
child.on('close', (code) => console.log(`child process ${name} exited with code ${code}`)); |
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
curl --silent "https://symfony.com/doc/current/index.html?$(Get-Random -minimum 0)" | htmlq '.thanks strong:first-child' --text | sed -E 's/ +//g' | php -r "echo trim(file_get_contents('php://stdin'));" |
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 | |
class RawObjectMapper | |
{ | |
public static function mapObjects(string $targetClassName, object $sourceObject): object | |
{ | |
$sourceClass = \get_class($sourceObject); | |
$targetObject = (new \Doctrine\Instantiator\Instantiator())->instantiate($targetClassName); | |
$setter = \Closure::bind(static function (string $property, $value) use ($targetObject, $targetClassName): void { |
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 App\DataFixtures\Tools; | |
use Doctrine\Common\Collections\ArrayCollection; | |
trait GetObjectsFromData | |
{ | |
abstract public static function getStaticData(): iterable; |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
activism attitude of changing things | |
activists people that want to change things | |
advocacy backing | |
advocate backer | |
advocates backs | |
barrier blocker | |
barriers blockers | |
biased partisan | |
biased toward partisan toward | |
biases incorrect views |
OlderNewer