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
[{ | |
"command": "array.replace", | |
"args": { | |
"info": "replace array() with []", | |
"find": "([\s\r\n])array\(([\s\r\n]*[^()\s](?:[^()]*[^()\s])?[\s\r\n]*)\)", | |
"replace": "$1[$2]", | |
"all": true, | |
"reg": true, | |
"flag": "gm" | |
} |
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
version: "3" | |
# Defines which compose version to use | |
services: | |
# Services line define which Docker images to run. In this case, it will be MySQL server and WordPress image. | |
db: | |
image: mysql:5.7 | |
# image: mysql:5.7 indicates the MySQL database container image from Docker Hub used in this installation. | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: MyR00tMySQLPa$$5w0rD |
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
version: "3" | |
# Defines which compose version to use | |
services: | |
# Services line define which Docker images to run. In this case, it will be MySQL server and WordPress image. | |
db: | |
image: mariadb:latest | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: MyR00tMySQLPa$$5w0rD | |
MYSQL_DATABASE: MyWordPressDatabaseName |
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
version: "3" | |
# Defines which compose version to use | |
services: | |
# Services line define which Docker images to run. In this case, it will be MySQL server and WordPress image. | |
db: | |
image: mariadb:10.4 | |
restart: always | |
environment: | |
MARIADB_ROOT_PASSWORD: MyR00tMySQLPa$$5w0rD | |
MYSQL_DATABASE: wordpress |
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
/* DEVSENSE */ | |
"[php]": { | |
"editor.defaultFormatter": "DEVSENSE.phptools-vscode" | |
}, | |
"php.format.codeStyle": "PSR-2", | |
"php.format.rules.arrayInitializersNewLineAfterLastElement": true, | |
"php.format.rules.callParametersNewLineBeforeRightParen": true, | |
"php.format.rules.spaceBeforeColonInControlStatements": true, |
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
const style = document.createElement('style'); | |
document.haad.appendChild(style); | |
const styleSheet = style.sheet; | |
styleSheet.insertRule('h1{font-size:123px;}'); |
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
Storage of `DECIMAL(_m_,_d_)` can be calculated with this function: | |
```sql | |
DELIMITER $$ | |
CREATE FUNCTION `fn_DECIMAL_SIZE`(`M` INT, `D` INT) RETURNS int(11) | |
DETERMINISTIC | |
BEGIN | |
set @m = m; | |
set @d = d; |
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 NotificationAlert asks for notification | |
* permission and shows notifications or alerts | |
*/ | |
class NotificationAlert { | |
#title | |
constructor(title) { | |
this.#title = title; | |
this.#askNotificationPermission(); | |
} |
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 | |
if( !defined( 'ROOT' ) ) { | |
define( 'ROOT', $_SERVER[ 'DOCUMENT_ROOT'] . '/' ); | |
} | |
if(!defined( 'SETTINGS_FILE' ) ) { | |
define('SETTINGS_FILE', ROOT . 'settings.ini' ); | |
} | |
if( !defined( 'SETTINGS') ) { |
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
| method | response code | reason | | |
| - | - | - | | |
| * | 500 | internal error, the request is not processd, the response paylood might include more detail | | |
| * | 502 | request validated but upstream service were not available. Request was not fullfilled| | |
| * | 405 | request not validated or allowed | | |
| * | 403 | the request validated but was not allwowed, reason in payload | | |
| HEAD | 200 | success | | |
| POST | 201 | rsourcce created,payload contains the id and a identifying url | | |
| POST | 303 | resource is availabel unique url| |
OlderNewer