- ./package.json
{
"private": true,
"workspaces": {
"packages": [
"./packages/*"
]
},| { | |
| "React Component": { | |
| "prefix": "rc", | |
| "body": [ | |
| "interface ${1:${RELATIVE_FILEPATH/.+[\\\/]([^\\\/]+)(?:\\\/index\\.tsx$)|.+[\\\/]([^\\\/]+)\\.tsx$/${1:/pascalcase}${2:/pascalcase}/}}Props { $2}", | |
| "", | |
| "export function ${1}({ $3}: ${1}Props) {", | |
| " return (<>${4:${1}}</>);", | |
| "}", | |
| "", |
| export const statusList = [ | |
| "enable", | |
| "disable", | |
| ] as const; | |
| export type Status = (typeof statusList)[number]; | |
| export const Status = Object.fromEntries(statusList.map(v => [v, v])) as { | |
| [K in Status]: K; | |
| }; | |
| // |
{
"private": true,
"workspaces": {
"packages": [
"./packages/*"
]
},| const handler = | |
| <K extends keyof Struct>(prop: K) => | |
| <V extends Struct[K]>(value: V) => { | |
| onChange({ | |
| ...struct, | |
| [prop]: v, | |
| }); | |
| }; |
| @startuml | |
| !define table(x) class x << (T,#CCCCFF) >> | |
| !define view(x) class x << (V,#CCFFCC) >> | |
| !define pk(x) #<u><b>x</b></u> | |
| !define un(x) -<b>x</b> | |
| !define ix(x) +<b>x</b> | |
| !define fk(x,y) ~x <i>references y</i> | |
| !define pfk(x,y) #<u><b>x</b></u> <i>references y</i> | |
| !define ifk(x,y) +<b>x</b> <i>references y</i> |
| [core] | |
| autocrlf = true | |
| [credential] | |
| helper = manager-core | |
| [color] | |
| ui = auto | |
| [alias] | |
| st = status --branch --short | |
| df = diff | |
| ck = checkout |
# dossier .ssh
drwxr-xr-x 2 myuser mygroup 4096 oct. 18 20:11 .
drwx------ 21 myuser mygroup 4096 déc. 30 10:59 ..
-rw-r--r-- 1 myuser mygroup 803 oct. 18 20:11 authorized_keys
-rw------- 1 myuser mygroup 1675 oct. 16 15:43 id_rsa
-rw-r--r-- 1 myuser mygroup 404 oct. 16 15:43 id_rsa.pub
| composer require --dev phpunit/phpunit | |
| composer require --dev squizlabs/php_codesniffer | |
| composer require --dev phpstan/phpstan | |
| composer require --dev ocramius/package-versions | |
| wget "https://gist.github.com/fzed51/1ad76506ce5dd47a88efda449723750a/archive/ab318f190a80008262cd01b4627b4e6aabbe8b3b.zip" -OutFile ./gist.zip | |
| 7z e .\gist.zip -o'.' */*.xml | |
| 7z e .\gist.zip -o'.' */*.neon | |
| 7z e .\gist.zip -o'.' */*.php | |
| del ./gist.zip | |
| php ./add-composer-scripts.php |
| /** | |
| * génère un nnombre aléatoire | |
| * @param minmax | |
| * seul argument : limite max de nombre aléatoire | |
| * 1er argumet : limite minimum | |
| * @param max limite maximum | |
| **/ | |
| const randomInt = (minmax: number, max = 0): number => { | |
| let min: number; | |
| if (max !== undefined) { |
| [xDebug] | |
| zend_extension = php_xdebug-2.4.0-7.0-vc14-x86_64.dll | |
| xdebug.remote_enable=on | |
| xdebug.remote_handler=dbgp | |
| xdebug.remote_host=localhost | |
| xdebug.remote_port=9000 | |
| xdebug.collect_params=4 | |
| xdebug.collect_assignments=1 |