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
CREATE OR REPLACE FUNCTION public.get_data_jsonb(prod_t product_template) | |
RETURNS jsonb | |
LANGUAGE sql | |
STABLE | |
AS $function$ | |
SELECT convert_from(prod_t.data, 'UTF-8')::jsonb | |
$function$ |
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
import type Test1 from './Test1' // export default class | |
import type Test2 from './Test2' // export default class | |
type TValueOf<T> = T[keyof T] | |
type ClassRecord = { | |
Test1: typeof Test1 | |
Test2: typeof Test2 | |
} | |
type ClassInstanceRecord = { |
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
function transformWindows1251ToUTF8(response) { | |
const transformedBody = response.body | |
.pipeThrough(new TextDecoderStream("windows-1251")) | |
.pipeThrough(new TextEncoderStream("utf-8")); | |
return new Response(transformedBody); | |
} | |
fetch('https://vk.com/al_im.php', { | |
credentials: 'include', | |
method: 'POST', |
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
import React, {FunctionComponent} from "react"; | |
import MainLayout from "../components/layouts/MainLayout"; | |
import {IComponentProps} from "../components/declarations"; | |
import { GetStaticProps, GetServerSideProps } from 'next' | |
import {randomInt} from "crypto"; | |
export default function Login({children, rand}: IComponentProps) { | |
console.log(arguments,rand); | |
return ( | |
<> |
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 | |
/** | |
* @link http://www.yiiframework.com/ | |
* @copyright Copyright (c) 2008 Yii Software LLC | |
* @license http://www.yiiframework.com/license/ | |
*/ | |
namespace yii\validators; | |
use Yii; |
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
{ | |
"name": "yiisoft/yii2-app-advanced", | |
"description": "Yii 2 Advanced Project Template", | |
"keywords": ["yii2", "framework", "advanced", "project template"], | |
"homepage": "http://www.yiiframework.com/", | |
"type": "project", | |
"license": "BSD-3-Clause", | |
"support": { | |
"issues": "https://github.com/yiisoft/yii2/issues?state=open", | |
"forum": "http://www.yiiframework.com/forum/", |
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 | |
namespace common\modules\news\models; | |
use Yii; | |
use yii\base\Model; | |
use yii\data\ActiveDataProvider; | |
/** | |
* NewsSearch represents the model behind the search form of `common\modules\news\models\News`. |
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 | |
namespace common\modules\news\models; | |
use common\modules\backend\components\behaviors\UploadImageBehavior; | |
use himiklab\sortablegrid\SortableGridBehavior; | |
use Yii; | |
use common\modules\user\models\User; | |
use common\modules\category\models\Category; | |
use yii\behaviors\TimestampBehavior; |
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 | |
use Bitrix\Main; | |
use Proj\EventEmitter; | |
use Proj\Utils\Log; | |
class DataManager extends Main\Entity\DataManager { | |
/** | |
* | |
* send onAfterBeforeEvent |