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
import {chromium, devices} from 'playwright'; | |
import ora from 'ora'; | |
import inquirer from 'inquirer' | |
import {createWriteStream} from 'node:fs' | |
import {mkdir} from 'node:fs/promises' | |
import {get} from 'node:https' | |
/** | |
* Download music from jetsetradio.live | |
* |
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
[ | |
{ | |
"key": "alt+1", | |
"command": "multiCommand.makeRoom" | |
}, | |
{ | |
"key": "ctrl+d", | |
"command": "editor.action.smartSelect.expand", | |
"when": "editorTextFocus" | |
}, |
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 | |
// Ajouter ce code dans boot() | |
if ($this->app->isLocal() && ($_SERVER['PHP_SELF'] ?? null) !== 'artisan') { | |
$k = 0; | |
\Illuminate\Support\Facades\DB::listen(function (\Illuminate\Database\Events\QueryExecuted $q) use (&$k) { | |
$k++; | |
file_put_contents('php://stdout', "[{$k}] \e[34m{$q->sql}\t\e[37m]".json_encode($q->bindings)."\t\e[32m{$q->time}ms\e[0m\n"); | |
}); | |
} |
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" /> | |
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>CSSBattle canvas</title> | |
<style> | |
:root { |
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: Grafikart | |
! description: Rerank results to remove unaccessible content. | |
! public: true | |
! author: Grafikart | |
! avatar: #4869ee | |
! https://search.brave.com/goggles/create?nav=site | |
! Boost docs | |
$boost=3,site=developer.mozilla.org |
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
import { paths } from "../types/generated-schema"; | |
/** | |
* Utility types | |
*/ | |
// Filtre un objet en retirant les clefs qui ne satisfont pas la condition C | |
type Filter<T, C> = Pick< | |
T, | |
{ | |
[Key in keyof T]: T[Key] extends C ? Key : never; |
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
class DOMAnimations { | |
/** | |
* Masque un élément avec un effet de repli | |
* @param {HTMLElement} element | |
* @param {Number} duration | |
* @returns {Promise<boolean>} | |
*/ | |
static slideUp (element, duration = 500) { | |
return new Promise(function (resolve, reject) { | |
element.style.height = element.offsetHeight + 'px' |
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
{ | |
"PresetList": [ | |
{ | |
"AudioCopyMask": [ | |
"copy:aac", | |
"copy:ac3", | |
"copy:dtshd", | |
"copy:dts", | |
"copy:mp3", | |
"copy:truehd", |
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 AppBundle\Command; | |
use AppBundle\Entity\Departement; | |
use AppBundle\Entity\Region; | |
use AppBundle\Entity\Ville; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputArgument; |
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
" Use exclude option if you don't want the full Layer, | |
" e.g., Layer 'better-defaults', { 'exclude': 'itchyny/vim-cursorword' } | |
function! Layers() | |
" Default layers, recommended! | |
Layer 'fzf' | |
Layer 'unite' | |
Layer 'airline' | |
Layer 'better-defaults' | |
Layer 'syntax-checking' |
NewerOlder