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
| kill -9 $(lsof -t -i:3000) |
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
| <template> | |
| <div @click="onClick"> | |
| <span :class="{checked}" class="icon icon--checkbox"/> | |
| </div> | |
| </template> | |
| <script> | |
| export default { | |
| model: { | |
| prop: 'allSelected', | |
| }, |
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\Policies; | |
| class AllowAllForNova | |
| { | |
| public function viewAny() | |
| { | |
| return $this->sameForAll(); | |
| } |
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
| #!/bin/sh | |
| function dkc() { | |
| docker-compose $@ | |
| } | |
| function dkcU() { | |
| dkc up -d $@ | |
| } |
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 | |
| $parseUrl = function ($config, $default = null) { | |
| return data_get(parse_url(env("DB_URL", env("DATABASE_URL"))), $config) ?: $default; | |
| }; | |
| return [ | |
| /* | |
| |-------------------------------------------------------------------------- |
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
| git reset --hard; git clean -df |
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
| export interface PackageJSON extends Object { | |
| name: string | |
| version?: string | |
| description?: string | |
| keywords?: string[] | |
| homepage?: string | |
| bugs?: string | Bugs | |
| license?: string | |
| author?: string | Author | |
| contributors?: string[] | Author[] |
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 { Nuxt } = require('nuxt') | |
| const https = require('https') | |
| const { readFileSync } = require('fs') | |
| const port = 443 | |
| const config = require('./nuxt.config.js') | |
| const nuxt = new Nuxt(config) | |
| const options = { | |
| key: readFileSync('/home/store/certs/store.key'), |
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
| <!doctype html> | |
| <html lang="fr"> | |
| <head> | |
| <title>jQuery example</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <!-- Bootstrap CSS --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"> |
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
| module.exports = { | |
| parser: '@typescript-eslint/parser', | |
| extends: ['airbnb', 'plugin:@typescript-eslint/recommended'], | |
| plugins: ['@typescript-eslint/eslint-plugin', 'react-hooks'], | |
| env: { | |
| browser: true, | |
| node: true, | |
| jest: true, | |
| }, | |
| rules: { |