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
// ==UserScript== | |
// @name Who has talked? | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Show a list of attendees to see who has already talked. Click on a name to remove it. Double click on the list to remove the overlay. | |
// @author You | |
// @match https://meet.google.com/* | |
// @grant none | |
// ==/UserScript== |
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
#!/bin/bashPARAMS=""while (( "$#" )); do | |
case "$1" in | |
-a|--my-boolean-flag) | |
MY_FLAG=0 | |
shift | |
;; | |
-b|--my-flag-with-argument) | |
if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then | |
MY_FLAG_ARG=$2 | |
shift 2 |
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
#!/bin/sh | |
php bin/console doctrine:database:drop --if-exists --force && \ | |
php bin/console doctrine:database:drop --env=test --if-exists --force && \ | |
php bin/console doctrine:database:create && \ | |
php bin/console doctrine:migrations:migrate --no-interaction && \ | |
php bin/console hautelook:fixtures:load --quiet |
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
#!/bin/php | |
<?php | |
function getGitBranches(?string $criteria = null) | |
{ | |
if ($criteria) { | |
$branches = explode("\n", `git branch | grep {$criteria}`); | |
} else { | |
$branches = explode("\n", `git branch`); | |
} |
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
.switch-display | |
{ | |
display: none; | |
} | |
.switch-display-trigger:hover .switch-display, .switch-display-trigger:focus .switch-display | |
{ | |
display: inline; | |
} |
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
while (notDone()) { | |
if (isPathLeft()) { | |
turnLeft(); | |
moveForward(); | |
} else { | |
if (isPathForward()) { | |
moveForward(); | |
} else { | |
if (isPathRight()) { | |
turnRight(); |
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 | |
namespace App\DataFixtures; | |
use App\Entity\Customer; | |
use App\Entity\Invoice; | |
use App\Entity\User; | |
use Doctrine\Bundle\FixturesBundle\Fixture; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Faker\Factory; |
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 | |
echo "Password: "; | |
fscanf(STDIN, "%s\n", $password); | |
echo "$password\nHash using password_hash() and PASSWORD_DEFAULT: "; | |
echo password_hash($password, PASSWORD_DEFAULT); |
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"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" | |
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" |
NewerOlder