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
<!-- отправка десктопа --> | |
<script> | |
document.addEventListener("DOMContentLoaded", function(event) { | |
let title = "{{ resources['client_order_title'] }} №{{ order.id }}"//Заявка номер 111 | |
let name = "{{ order.user_name }}"//Alexey | |
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
<!-- отправка десктопа --> | |
<script> | |
document.addEventListener("DOMContentLoaded", function(event) { | |
let title = "{{ resources['client_order_title'] }} №{{ order.id }}"//Заявка номер 111 | |
let name = "{{ order.user_name }}"//Alexey | |
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
<!-- отправка десктопа --> | |
<script> | |
document.addEventListener("DOMContentLoaded", function(event) { | |
let title = "{{ resources['client_order_title'] }} №{{ order.id }}"//Заявка номер 111 | |
let name = "{{ order.user_name }}"//Alexey | |
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->Laravel | |
$office_get = json_decode($request->autoSelectedOffice,true); | |
js->front | |
JSON.stringify(carLibrary.offices[{{ $region_get }}]) |
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
pgsql: | |
image: postgres:13 | |
ports: | |
- '${FORWARD_DB_PORT:-5432}:5432' | |
environment: | |
PGPASSWORD: '${DB_PASSWORD:-secret}' | |
POSTGRES_DB: '${DB_DATABASE}' | |
POSTGRES_USER: '${DB_USERNAME}' | |
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}' | |
volumes: |
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
$array_final = preg_replace('/"([a-zA-Z]+[a-zA-Z0-9_]*)":/','$1:',$array_final); |
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
SELECT ocptc.category_id, | |
ocp.product_id, | |
ocp.attribute_id, | |
ocp.language_id, | |
ocp.text, | |
oagd.attribute_group_id, | |
oagd.name | |
FROM `oc_category_path` | |
RIGHT JOIN `oc_product_to_category` ocptc | |
on ocptc.category_id = oc_category_path.category_id |
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 | |
// Creates vQmod xml file from git diff output stored in a text file "git.txt" | |
// NOTE: Works only with SINGLE line changes. | |
$diffs = fopen('diffs.txt', 'r'); | |
$modifications = "<modification>"; | |
$fileIsOpen = $operationIsOpen = $searchIsOpen = false; | |
while($line = fgets($diffs)){ | |
if(preg_match('/^diff --git ([^ ]+) ([^ ]+)/', $line, $files)){ | |
if($operationIsOpen){ |
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 < 5.3.6 | |
foreach (debug_backtrace() as $trace) | |
{ | |
echo sprintf("\n%s:%s %s::%s", $trace['file'], $trace['line'], $trace['class'], $trace['function']); | |
} | |
die; | |
// PHP >= 5.3.6 | |
debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); | |
die; |
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
$myNewJsonString = preg_replace('/"([^"]+)":\s*(\d+)/', '"\1": "\2"', $myJsonString); |
NewerOlder