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
class BaseClass { | |
constructor() { | |
return { | |
baseRequest: this.baseRequest.bind(this), | |
postRequest: this.postRequest.bind(this), | |
}; | |
} | |
baseRequest(url) { |
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 | |
class Animal { | |
public $name; | |
function __construct($name){ | |
$this->name = $name; | |
} | |
public function getName (){ | |
return $this->name; |
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
# vim ~/.toolboxrc | |
TOOLBOX_BIND="--bind=/:/media/root/ --bind=/var/:/media/root/var/ --bind=/home:/media/root/home/" |
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
core@ip-171-32-5-64 ~ $ /usr/bin/toolbox | |
Spawning container core-fedora-latest on /var/lib/toolbox/core-fedora-latest. | |
Press ^] three times within 1s to kill container. | |
[root@ip-171-32-5-64 ~]# |
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
поздравляю любовь Встретил радость Будет | |
поздравляю любовь Пусть радость Будет | |
в этот праздник день Встретил слава Настанет | |
поздравляю день Пусть защитник Будет | |
в этот праздник сила Пусть радость Будет | |
в этот праздник жизнь Встретил отечество Настанет | |
поздравляю дружба Встретил слава Будет | |
поздравляю день Встретил отечество Будет | |
поздравляю жизнь Пусть радость Будет |
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
{ | |
"id": "571f80037bec2", | |
"pnr": "4BK60O", | |
"name": "CHERNYSHEVA TATIANA", | |
"amount": "14313.2", | |
"currency": "UAH", | |
"email": "[email protected]", | |
"phone": "380939914238", | |
"payment": { | |
"payment_variant": "payture", |
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 | |
//в vardefs.php внука (Платежное требования) | |
//Заявка (дочерняя сущность) | |
'sl_request_id'=>array( | |
'type' => 'id', | |
'required' => false, | |
'name' => 'sl_request_id', | |
'vname' => 'LBL_REQUEST_NAME', | |
'massupdate' => 0, | |
'comments' => '', |
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 | |
// Чтобы добавить отношение между двумя модулями в sugarcrm нужно описать это отношение в сооствествующем файле. | |
// Например что бы добавить связь между мудулями Звонки и Проекты заявок, нужно совершить следующие действия. | |
// | |
//Создать файл custom/Extension/modules/Calls/Ext/Vardefs/sl_<module_name>.php если его еще нет. | |
// на самом деле название файла может быть любое, но рекомендуется называть его таким образом, | |
// что бы было понятно что он создан не через студию и его можно править. | |
// В даном конкретном случае название файла может быть | |
// custom/Extension/modules/Calls/Ext/Vardefs/sl_calls.php либо sl_Сalls.php либо просто sl_vardefs.php | |
// в файле описать метаданные |
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
// ==UserScript== | |
// @name hideImages | |
// @namespace hideImages | |
// @description hideImages | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var pic = 'http://i.imgur.com/BkygUho.png'; | |
var a = '-1'; | |
while (a < document.images.length) { |
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
RegExp для обработки метаданных | |
Перейти к: навигация, поиск | |
Для использования в файлах типа vardefs.php | |
Первая строка: регулярка поиска, | |
вторя строка: регулярка замены. | |
array переносится в ту же строку, где знак = или => |
NewerOlder