recursal/Fanatic-Fandom huggingface dataset:
Aoibheann

## Backstory

Aoibheann originates from the Elemental Plane of Air, where he lives amongst his tribe. Having come of age, he went into military service as is expected of him. During an expedition into the material plane to test and develop manoeuvrability for his squadron, they were forced to land and take shelter due to unfavourable conditions. Subsequently, they were captured by bandits, their flight feathers torn from their bodies, the squadron sold apart as oddities or slaves.

Months later, Aoibheann was liberated from the camp at which he was held after a militia raided the bandits' camp. Furious, his mind addled having been flightless and caged for so long, not one bandit survived to see a prison cell. Owing a debt to those who freed him, Aoibheann went into the service of the militia, vowing to liberate captives of any kind, reunite his squadron, and put to death any who would unjustly confine another.

## Trivia

* Aoibheann still can't fly since his flight feathers were pulled out of him, and he is awaiting their regrowth. He can flap his wings for a momentary gain to aid climbing, but he cannot generate meaningful continuous upward thrust.

* Aoibheann likes shiny things. Aoibheann takes shiny things. Shiny things make Aoibheann and the places Aoibheann lives pretty.

* Aarakocra punctuate speech with chirps as non-verbal language. Aoibheann can tend to caw, squawk or screech when emotional.

* Aarakocra are not unlike birds. Aoibheann will ruffle his feathers, stretch his wings broadly, preen, sleep on one leg, and toy with things at his whim. When more excited or agitated, he may also tear things to pieces, roll around on the ground, hang upside down from things, yell, or bob up and down.
Psychodelique

## Psychodelique

### Заслуги

Полуфиналист V Официального баттла Hip-Hop.ru

## Список баттлов

### **2004**

* **Psychodelique vs Ist Sam (Поражение, 11:14)**
* **Psychodelique vs Dikto Val (Поражение, 2:3)**
* **Psychodelique vs Mazim (Победа, 1:0)**
* **Psychodelique vs Jerr (Победа, 1:0)**
* **Psychodelique vs V.Kord (Победа, 1:0)**
* **Psychodelique vs DMS (Победа, 1:0)**
Vetal

## Список Баттлов

### Заслуги

Чемпион I Официального баттла баттла hip-hop.ruФиналист III Официального баттла баттла hip-hop.ru

### **2002**

* **Vetal vs $an (Поражение, 2:5)**
* **Vetal vs Ghostrida (Победа, 3:2)**
* **Vetal vs House (Победа, 3:2)**
* **Vetal vs Jerr (Победа, 2:1)**
* **Vetal vs SID (Победа, 1:0)**
* **Vetal vs Dest (Победа, 1:0)**
* **Vetal vs Dot (Поражение, 0:1)**
* **Vetal vs Olven (Победа, 1:0)**

### **2001**

* **Vetal vs Radj (Победа, 3:2)**
* **Vetal vs Emsiom (Победа, 2:1)**
* **Vetal vs Alex (Победа, 1:0)**
* **Vetal vs Radj (Поражение, 0:1)**
* **Vetal vs Миф (Победа, 1:0)**
Загубный Майк

### Заслуги

Финалист VI Официального баттла Hip-hop.ru

## Список баттлов

### **2005**

* **Загубный Майк vs Леша GS (Поражение, 2:3)**
* **Загубный Майк vs Raymean (Победа, 1:0)**
* **Загубный Майк vs T-Ram (Победа, 1:0)**
* **Загубный Майк vs Мц Всех Мц (Победа, 1:0)**
* **Загубный Майк vs Raymean (Поражение, 0:1)**
* **Загубный Майк vs T-Ram (Победа, 1:0)**
* **Загубный Майк vs Isla De Muerta (Победа, 1:0)**
* **Загубный Майк vs Odinnadcatiy (Победа, 1:0)**
* **Загубный Майк vs Владимир Могилов (Победа, 1:0)**

### **2003**

* **Загубный Майк vs DMITRY 29 RUS (Поражение, 0:1)**
* **Загубный Майк vs Шумм (Победа, 1:0)**
* **Загубный Майк vs Dot (Победа, 1:0)**
* **Загубный Майк vs Chet (Поражение, 0:1)**
Insert clone

INSERT INTO models\_technical\_data\_values (model\_id, data\_id, option\_id, value, hint, display\_value, description)

```
 SELECT
   "1244" AS model_id ## модель для переноса
 , mtdv.data_id, mtdv.option_id, mtdv.value, mtdv.hint, mtdv.display_value, mtdv.description FROM models_technical_data_values mtdv

```

```
 WHERE mtdv.model_id = 747 ## модель для переноса

```

```
 INSERT INTO models_structure (
 active,

 structure_id,
 code,
 additional_code,
 name,
 link_group,
 model_year,
 sortorder,
 main_model,
 linked_model_id,
 testdrive,
 exists_body,
 exists_doors,
 me_code,
 use_in_cars,
 parent_id
 )
 SELECT ms.active,

 ms.structure_id,
 ms.code,
 ms.additional_code,
 ms.name, ms.link_group,
 ms.model_year,
 ms.sortorder,
 ms.main_model,
 ms.linked_model_id,
 ms.testdrive,
 ms.exists_body,
 ms.exists_doors,
 ms.me_code,
 ms.use_in_cars,
   "1241" AS parent_id

   FROM models_structure ms

 WHERE ms.parent_id = 746;

```
Emsiom

### Заслуги

Бронзовый Призер I Официального баттла Hip-hop.ruФиналист II Официального баттла Hip-hop.ru

## Список Баттлов

### **2002**

* **Emsiom vs House (Поражение, 0:1)**
* **Emsiom vs Sil-A (Победа, 1:0)**
* **Emsiom vs Jerr (Поражение, 0:1)**
* **Emsiom vs CoolB (Победа, 1:0)**
* **Emsiom vs Hose (Поражение, 0:5)**
* **Emsiom vs Rada (Победа, 2:1)**
* **Emsiom vs CoolB (Победа, 1:0)**
* **Emsiom vs Zerno (Победа, 1:0)**
* **Emsiom vs Hose (Поражение, 0:1)**

### **2001**

* **Emsiom vs LX (Победа, 4:1)**
* **Emsiom vs Vetal (Поражение, 1:2)**
* **Emsiom vs МС Клин (Победа, 1:0)**
* **Emsiom vs Sly J (Победа, 1:0)**
* **Emsiom vs LX (Поражение, 0:1)**
Laraver как поставить Windows

1. Поставить openServer 5.2.2
2. Вызвать коммандную строку openServer
3. Зайти modules/php/PHP\_7.3-64/
4. Написать php -r "readfile('https://getcomposer.org/installer');" | php
5. Потом composer
6. composer global require "laravel/installer=~1.1"
7. зайти на сайт w:\domains\мой сайн
8. php artisan migrate:make create\_posts
9. Создать базу
10. Настроить app\config\database.php
11. app'config\app.php поставить debug = true
12. Добавить конфиг таблицы
14. W:\domains\my-test.ru\app\database\migrations\2019\_09\_30\_170803\_create\_posts.php
16. Андрей@АНДРЕЙ-ПК w:\domains\my-test.ru $ php artisan migrate
Htaccess

Переадресация
RewriteRule ^cars/ /mercedes/ [L,R=301]

Исключение в переадресации
RewriteRule ^cars/promo /mercedes/promo/ [L,R=301]
RewriteRule ^cars/ /mercedes/ [L,R=301]

Переадресация, чтобы не сменяло url, но показывал другую страницу
RewriteRule ^cars/promo /mercedes/promo/ [L]

Если набираешь в браузере site.ru/qr/32211/ , ,php будет думать что набрано site.ru/cars/qr/32211/ и url останется не будет перезагружатся:

```
RewriteRule ^qr\/(.*)\/$ /cars/qr/$1/ [L]

```
新幹線變形機器人 The Animation

**新幹線變形機器人 The Animation**（日文名：新幹線変形ロボシンカリオン THE ANIMATION）是一個2018年日本機器人動畫系列。

## 故事大綱

鐵道博物館、京都鐵道博物館、磁浮·鐵道館的地下深處潛藏著特務機關「新幹線超進化研究所」。該研究所為了從「黑色新幹線」誕生出的巨型怪物體手中守護日本，開發出了「新幹線變形機器人」，只有讓與新幹線變形機器人合適率較高的孩子們駕駛，才能發揮出機體最大的力量打退強敵，而「黑色新幹線」目的是什麼，孩子們能否守護好日本的未來!?變形！新幹線變形機器人！

## 主要角色

* 速杉隼人
* 男鹿秋田
* 大門山貫
* 車長寶
* 速杉北斗
* 出水新平
* 三原雙葉
* 上田梓
* 青龍
* 白虎
* 玄武
* 朱雀

## 製作人員

* 導演：池添隆博（第1集～第64集）、板井寬樹（第65集～）
* 總導演：池添隆博（第65集～）
* 助導演：山岸大悟（第1集～第52集）、板井寬樹（第53集～第64集）、加藤大貴（第65集～）
* 劇本統籌：下山健人
* 人物設定：青野祐果
* 機械設定：服部惠大
* 道具設定：永作友克、青野祐果
* 巨大怪物體設定：統月剛
* 世界觀設定：コレサワシゲユキ、燈夢
* CG總監：安田兼盛
* CG演出：大畑晃一
* 色彩設定：村田惠理子
* 美術監督：古賀徹
* 攝影監督：村上展之
* 編輯：沖田秀樹
* 音樂：渡邊俊幸
* 音響監督 ：三間雅文
* 音樂制作：Face Music
* 動畫制作 ：OLM
* 動畫制作協力 ：亞細亞堂
* CG動畫制作 ：SMDE
* 制作 ：小學館集英社Productions
* 制作著作：超進化研究所、TBS

歌曲
--

### 主題曲

#### 片尾曲

* 進化理論（第1、64、76集）
* Go One Step Ahead（第2集-第25集、第76集）
* I WANNA BE WITH YOU（第26集-第38集）
* Go Way!（第39集-第51集）
* STARTRAiN（第51集-第63集）
* スタートライン（第65集-第75集）
* ガッタンゴットンGO! (劇場版)
Использование UTF-8 в cmd.exe

```
По умолчанию cmd.exe использует кодировку cp866. Текущую кодировку можно посмотреть командой chcp. Иногда возникает необходимость использовать в терминале юникод. Для этого необходимо использовать шрифт "Lucida Console" и переключить кодировку командой
>chcp <codepage>
Где параметр <codepage> для UTF-8 равен 65001

```
IDNM

## IDNM

### Заслуги

Бронзовый Призер II Официального баттла Hip-hop.ru

## Список Баттлов

### **2003**

* **Dot vs Загубный Майк (Поражение, 0:1)**
* **Dot vs Raymean (Поражение, 0:1)**

### **2002**

* **Dot vs House (Поражение, 1:2)**
* **Dot vs $an (Поражение, 1:2)**
* **Dot vs Vetal (Победа, 1:0)**
* **Dot vs Boiler (Победа, 1:0)**
* **Dot vs Rada (Победа, 3:2)**
* **Dot vs Hose (Поражение, 1:2)**
* **Dot vs Rada (Поражение, 0:1)**
* **Dot vs МС Клин (Победа, 1:0)**
* **Dot vs Aspid (Победа, 1:0)**
Select in select

```
SELECT
m.id,
m.name,
m.inet_name,
m.url_code AS `code`,
m.count,
m.inet_name,
em.seo_description,
em.counter,
em.id AS expert_id,
em.code AS expert_code,
em.name AS expert_name,
eb.name AS expert_brand
, sof.actions_count
, exclusive_news.exclusive_count
,newst_news.newest_count
FROM import_cars_models m
LEFT JOIN import_cars_brands b ON b.id = m.brand_id
LEFT JOIN import_mapping_models mm ON mm.exists_code = m.code AND mm.exists_brand = b.code AND mm.expert_id IS NOT NULL
LEFT JOIN carsexpert_models em ON mm.expert_id = em.id
LEFT JOIN carsexpert_brands eb ON em.brand_id = eb.id
LEFT JOIN import_cars ic ON ic.model_id = m.id
LEFT JOIN (SELECT som.model_id, COUNT(so.id) as actions_count
FROM spec_offers_models AS som
LEFT JOIN spec_offers so ON som.spec_offer_id = so.id
WHERE so.active = 1
GROUP BY model_id

) sof ON sof.model_id = em.id
LEFT JOIN (
SELECT nm.model_id, COUNT(n.id) AS exclusive_count
FROM news n
LEFT JOIN news_groups ng ON ng.id = n.group_id
LEFT JOIN news_models nm ON nm.news_id = n.id
WHERE ng.code = 'exclusive' AND n.actual = 1

GROUP BY nm.model_id
) exclusive_news ON exclusive_news.model_id = em.id
LEFT JOIN (
SELECT nm.model_id, COUNT(n.id) AS newest_count
FROM news n
LEFT JOIN news_groups ng ON ng.id = n.group_id
LEFT JOIN news_models nm ON nm.news_id = n.id
WHERE ng.code = 'new_auto' AND n.actual = 1

GROUP BY nm.model_id
) newst_news ON newst_news.model_id = em.id
WHERE m.url_code = 'c-ws205' AND m.brand_id = 40 AND ic.is_fleet = 0
GROUP BY m.id
ORDER BY em.id DESC
LIMIT 1

```
T-Ram

## T-Ram

### Заслуги

Полуфиналист VI Официального баттла Hip-hop.ru

## Список баттлов

### **2005**

* **T-Ram vs Загубный Майк (Поражение, 0:1)**
* **T-Ram vs Plane Dead (Победа, 1:0)**
* **T-Ram vs Диктатор UAV (Победа, 1:0)**
* **T-Ram vs Emodji (Победа, 1:0)**
* **T-Ram vs Загубный Майк (Поражение, 0:1)**
* **T-Ram vs Lazarev\_ZH (Победа, 1:0)**
* **T-Ram vs PLVY BLVCK (Победа, 1:0)**
* **T-Ram vs Керамбит (Победа, 1:0)**
Jerr

## Список баттлов

### **2004**

* **Jerr vs Psychodelique (Поражение, 0:1)**
* **Jerr vs Fit Telepaty (Победа, 1:0)**
* **Jerr vs Слог (Победа, 1:0)**

### **2003**

* **Jerr vs PLVY BLVCK (Поражение, 0:1)**
* **Jerr vs Скуб (Поражение, 0:1)**

### **2002**

* **Jerr vs Vetal (Поражение, 1:2)**
* **Jerr vs Ghostrida (Поражение, 0:3)**
* **Jerr vs Emsiom (Победа, 1:0)**
* **Jerr vs SID (Победа, 1:0)**
Баттлос вики

## Помощь участникам

**Фэндом** — это сообщество интернет-энциклопедий на разные темы. Любой пользователь может редактировать страницы на этой вики: просто нажмите кнопку «Править» в верхней части любой страницы. Посетите Вики Сообщества и задайте любой вопрос на форуме.

Вот список некоторых служебных страниц, которые пригодятся любому участнику вики:

* Все статьи вики
* Шаблоны
* Активные участники
* Категории
* Свежие правки
* Новые изображения на вики
* Справка

## Галерея

С изображениями и видео на вашу вики будет приятно посмотреть.

Файл:Placeholder

## Создать страницу

Вы можете улучшить эту вики. Создайте новую статью!
<createbox>
width=24
break=no
buttonlabel=Создать новую страницу
</createbox>
Так же вы можете улучшать уже созданные страницы
Gulp

gulp

D:\Sites\test\test-sheremetevo.major-design\cms\gulp>gulp test - посмотерь что покажет

переезд

проверить есть ли ярлык: D:\Sites\test\test-sheremetevo.major-design\cms\gulp\"node\_modules"

если  нет, запусить symlink

в файле livereload.js - поменять порт

D:\Sites\test\test-sheremetevo.major-design\cms\gulp\codes\lr\_port.txt  - поменять порт

проверка:

D:\Sites\test\test-sheremetevo.major-design\cms\gulp\"gulp.bat" можно с параметром, написанном в bat
Генерация XML

```
<?php

class XMLLib{

   /* @var $writer XMLWriter */

   private static $writer;

   private static function createWriter(){

      if(empty(self::$writer)){

         self::$writer = new XMLWriter();

      }

   }

   public static function generateXML($data,$key_rules,$version = "1.0",$encoding = "UTF-8",$header = true){

      self::createWriter();

      self::$writer->openMemory();

      self::$writer->setIndent(false);

      self::$writer->setIndentString('');

      if($header){

         self::$writer->startDocument($version, $encoding);

      }

      if (is_array($data)) {

         self::getXMLTree($data,null,$key_rules);

      }

      return self::$writer->outputMemory();

   }

   private static function getXMLTree($data,$parent,$key_rules){

      foreach ($data as $key => $val) {

         if (is_numeric($key)) {

            if(isset($key_rules[$parent])){

               $key = $key_rules[$parent];

            }

            else{

               $key = 'key_'.$key;

            }

         }

         if (is_array($val)) {

            self::$writer->startElement($key);

            self::getXMLTree($val,$key,$key_rules);

            self::$writer->endElement();

         }

         else {

            self::$writer->writeElement($key, $val);

         }

      }

   }

}

```

```
$data_for_xml =

    [

        [

            "test" => 1,

            "test2" => 2

        ],

        [

            "test" => 2,

            "test2" => 3

        ]

    ]

;

$procedure_params = [

    'OID' => \XMLLib::generateXML(['Root' => $data_for_xml], ["Root" => "Work"])

];

```
Drago

### Заслуги

Чемпион IV Официального баттла Hip-hop.ru

## Список баттлов

### **2003**

* **Drago vs Ghostrida (Победа, 8:7)**
* **Drago vs Корот (Победа, 2:1)**
* **Drago vs SPY (Победа, 2:1)**
* **Drago vs SID (Победа, 1:0)**
* **Drago vs Poizone (Победа, 1:0)**
* **Drago vs Knownaim (Победа, 1:0)**

### **2002**

* **Drago vs SID (Поражение, 0:1)**
* **Drago vs $an (Поражение, 0:1)**
* **Drago vs Aspid (Победа, 1:0)**
People of Trest

#### Grand Arcanist Corana Freewind

Corana is an elven sorcerer and currently leads the Arcane Academy of Trest. She is likely the most powerful sorcerer in Trest and perhaps the entire Easthold. Corana reluctantly accepted her position as Grand Arcanist after the tragic death of her predecessor at the hands of the rogue wizard, Tressla.

### Merchants and Craftspeople

#### Dex Poel

Dex is the owner and proprietor of The Armoured and a skilled armour smith. Dex savours opportunities to create artworks instead of weapons. They are non-binary and use they/them pronouns.

#### The Addled Merchant

This merchant's mind is so befuddled that he has forgotten his name. He lives and "operates" his herbarium, The Arboremporitum. This merchant likes to give his customers good deals.

#### Kasmina

Kasmina is the half-elven owner of Library and is well regarded for her penchant for quoting obscure literature to unsuspecting customers.
IOS кнопка для теста

**override** **func** viewDidLoad() {

**super**.viewDidLoad()

**let** button = UIButton(frame: CGRect(x: 100, y: 100, width: 100, height: 50))

button.backgroundColor = .green

button.setTitle("Test Button", for: .normal)

button.addTarget(**self**, action: **#selector**(buttonAction), for: .touchUpInside)

**self**.view.addSubview(button)

}

**@objc** **func** buttonAction(sender: UIButton!) {

print("Button tapped")

}
DemonsOfZahar Wiki

**Welcome, to the fight against the Demons of Zahar**
Demons of Zahar is an ongoing campaign in Dungeons & Dragons between friends. It has spurred the creation of an alternate universe story line, multiple one-shot adventures, detailed lore, geography and too many characters. This Fandom Wiki is a amateur central repository recording those details and stories, for reference, archiving and enjoyment.

## Categories

PlaceholderPlaceholderPlaceholder

*Need help building out this community?*

* Getting Started
* How to Contribute
* Managing your new community
* Guides
* All Help articles

You can also be part of the larger Fandom family of communities. Visit Fandom's Community Central!
API

https://test.api2.ma.ru/api/docs/ - документация

https://docs.google.com/document/d/19\_ZxeYwMeQWirNJwdyhNh\_t9jWLvfBsxTXTO50EpVQc/edit#

Примеры скратча

POST https://api2.ma.ru/api/user/register/service/

*Content-Type*: application/json

*Authorization*: Bearer NjBJMGlvNEJpUWV2S1pYNVNBVHBFbXBsb3llZWpsMUtSVFNUR0FiZA==

*{*

*"webAddress"*: "https://sales.mercedes-sheremetevo.ru/"

*}*

POST https://api2.ma.ru/api/forms/get-lead-by-id/

Content-Type: application/json

Authorization: Bearer NjBJMGlvNEJpUWV2S1pYNVNBVHBFbXBsb3llZWpsMUtSVFNUR0FiZA==

{

  "id": "203"

}
Eloosha Clearshot

### Physical Description

Eloosha Clearshot is a female loxodon aged approximately 170 years. She stands quite short for a loxodon at 191cm, has relatively fair greyish skin, and has a notable scar on her upper left arm.

### The Clearshot Inn

She is the current proprietor of the Clearshot Inn, a modest establishment on the commercial docks of Espa. Eloosha commissioned the construction of the inn in 10NZE after territorial disputes in the Easthold were resolved and Espa began the process of entering the New Zahar Union. The land on which the Clearshot Inn was built was purchased from Elias Storne in 9NZE when he emigrated to Kystar after his home was destroyed during the disputes.

### The War

Eloosha served during the Zaharan Liberation War in an elite strike team called the Stonetusks, a group of six highly skilled warriors who were able to commit insurgent strikes into territory still held by Isperian forces. Contrary to common belief, Eloosha's iconic name, "Clearshot", was not bestowed upon her during the war and in fact predates The Occupation entirely.

During the war, Eloosha proved herself an uncannily skilled archer on many occasions.

*"There are a great many more talented warriors in whose shadows I am privileged to live and whose footsteps I am honoured to walk".* — Eloosha Clearshot, 21NZE

Eloosha is a decorated war hero and close friends with fellow veterans Alathar Seaswept and the Evermeades, Beyla and Arnan.

### Motherhood

Eloosha is the adopted mother of Mayja Clearshot. Eloosha has never spoken publicly about how Mayja came to be adopted by her but it is generally understood that loxodon maternity is as much a matter of choice as it is biology.

It is known that Eloosha had a biological son at some point before the war, but his fate is unknown.
Php debug function

```
/**

 * Выводит в консоль браузера переменную, не работает на ajax

 * @param $variable переменная которую он выводит

 * @return null

 * @author Андрей Мокров <mokrov_a@info.local>

 */

function dc($variable)

{

    echo '<script>';

    echo 'console.log('. json_encode( $variable ) .')';

    echo '</script>';

}

/**

 * Выводит в консоль браузера стек вызовов функций, не работает на ajax

 * @return null

 * @author Андрей Мокров <mokrov_a@info.local>

 */

function dcd()

{

    echo '<script>';

    echo 'console.log('. json_encode( debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT) ) .')';

    echo '</script>';

}

```

Для ajax методов:

в функции debugShow()

вместо текста:

'message' => "<div class='debug\_info'><h2>". $msg . "</h2> $backtrace </div> "

Написать текст:

'message' => "<div class='debug\_info'><h2><script>console.log(".json\_encode( $value ).")</script>". $msg . "</h2> $backtrace </div> "
Процедуры вывод данных

https://docs.microsoft.com/ru-ru/sql/relational-databases/stored-procedures/return-data-from-a-stored-procedure?view=sql-server-2017

DECLARE @oid oid;

EXEC dbo\_Car\_Geaaaaaa @vin =  "JMZBMasdaa", @OID = @oid OUTPUT;

PRINT @oid

```
SELECT *

FROM INFORMATION_SCHEMA.ROUTINES

WHERE ROUTINE_TYPE = 'PROCEDURE' and SPECIFIC_NAME like '%ReadFilterParamMM%'; - вывод всех процедур

SELECT name,

       type

FROM dbo.sysobjects

WHERE (type = 'P')

select

   'Parameter_name' = name,

   'Type'   = type_name(user_type_id),

   'Length'   = max_length,

   'Prec'   = case when type_name(system_type_id) = 'uniqueidentifier'

                      then precision

                   else OdbcPrec(system_type_id, max_length, precision) end,

   'Scale'   = OdbcScale(system_type_id, scale),

   'Param_order'  = parameter_id,

   'Collation'   = convert(sysname,

                            case when system_type_id in (35, 99, 167, 175, 231, 239)

                                    then ServerProperty('collation') end)

from sys.parameters where object_id = object_id('dbo_AULot_ReadDictMM') - вывод параметров процедуры

```
Class javaScript 2 простой пример

```
var _TABS = function () {

    this.selector_wrapper;

    this.init = function (selector_wrapper) {

        this.selector_wrapper = selector_wrapper;

        selector_wrapper.find('.js_tabs_buttons_wrapper .js_tabs_button').click(function () {

            var active_tab = $(this).data('tab-name');

            window.location.hash = active_tab;

            selector_wrapper

                .find('.js_tabs_buttons_wrapper .js_tabs_button')

                .removeClass('active');

            selector_wrapper

                .find('.js_tabs_content_wrapper .js_tabs_content')

                .removeClass('active');

            selector_wrapper

                .find('.js_tabs_buttons_wrapper .js_tabs_button[data-tab-name=' + active_tab + ']')

                .addClass('active');

            selector_wrapper

                .find('.js_tabs_content_wrapper .js_tabs_content[data-tab-name=' + active_tab + ']')

                .addClass('active');

        });

        this.selectFirst();

    }

    this.selectFirst = function () {

        var selected_tab =   window.location.hash.replace('#', '');

        var selecter_baner = this.selector_wrapper

            .find('.js_tabs_buttons_wrapper .js_tabs_button[data-tab-name=' + selected_tab + ']')

        if (selecter_baner.length > 0){

            selecter_baner.trigger('click');

        }else {

            this.selector_wrapper

                .find('.js_tabs_buttons_wrapper .js_tabs_button:eq(0)')

                .trigger('click');

        }

    }

}

var tabs = new _TABS();

tabs.init($(".js_tabs_wrapper"));

```
Delegate swift ios xCodel

https://www.youtube.com/watch?v=0OfpfKui2iQ

class AboutTableViewController: UIViewController

{

@IBOutlet weak var tableView: UITableView!

let tvdd = TableViewDD()

override func viewDidLoad (){

super.viewDidLoad()

tablewView.dataSource = tvdd

tableView.reloadData()

}

}

class TableViewDD: NsObject, UITableViewDataSourc{

Func tableView(\_ tableView: uiTalbeView ){

}

func tableVIew{

}

}
O Patriota

## Biografia

O Patriota é a figura heróica mais importante e mais lucrativa dentro do universo de The Boys, um humano geneticamente modificado pelo composto V para que se tornasse um dos seres mais poderosos do mundo. O tratamento com composto V que O Patriota recebeu foi diferente de outros heróis, recebendo este composto enquanto ainda era um feto dentro do ventre de sua mãe o que o levou a assassina-la enquanto ainda era um bebê, passando a ficar sob os cuidados da corporação Vough American que o mantinha sob vigilância e com uma bomba de hidrogênio presa a ele para caso ele se tornasse uma ameaça, após se tornar um adulto formado O Patriota trilhou sua "carreira" como o maior super herói do mundo possuindo provavelmente a imagem mais lucrativa para a corporação, porém nunca foi verdadeiramente um herói sendo uma pessoa completamente imoral e maldosa.

## Personalidade

O Patriota é alguém extremamente ruim e maldoso, normalmente utilizando de sua imponência para amedrontar aqueles que vão contra ele ou até mesmo apelando para a violência mesmo que seja com seus próprios companheiros, no geral O Patriota consegue se manter calmo a quase todo momento, porém quando extremamente tentado e levado ao seu limite ele finalmente se revela um completo psicopata é extremamente violento e arrogante e trata todos ao seu redor como menos que nada.

## Poderes e Habilidades

Força Sobre Humana, Velocidade Sobre Humana, Resistencia Sobre Humana, Voo, Super audição, Visão de Calor, Visão de Raio X

### Capacidade Destrutiva

Edifício Médio (Capaz de destroçar a parte de trás de um avião com um Speedblitz, Capaz de arremessar um jato com um braço como se não fosse nada)

### Velocidade

Sobre Humana (Capaz de acompanhar a velocidade de um avião facilmente)

### Resistencia

Edifício Médio (aparentemente lutou de forma equilibrada contra Black Noir que era tão poderoso quanto ele mesmo)
Ios выгрузка

1 Выставить в устройствах(где выбираешь на каком iphone посмотреть) Any Ios Device

2 Product Archive и все время далее

3 Оно должно появить в Test Flight на сайте(В течении 15 минут) - и на телефонах тоже

4 https://appstoreconnect.apple.com/

5 Нажать на плюсик в первом экране приложения(не должно быть других отправляемых)
Ассинхронная(async) javascript(js) функция

```
 при нажатии на кнопку происходит async загрузка(обратить внимание на слово async и await)

$(document).ready(function (){
    $('[name=CarBrandOID]').click(function () {
        var data = {'brand_code': $(this).find('option:selected').data('code')};
        async function aaaaa(){
            var cars_in = await axios ({
                method: 'POST',
                url: '/ajax/form/getBrandAjax',
                data: data,
            });
            $('[name=CarModelOID]').html('');
            var html = '<option value="" selected="" disabled="">Модель</option>';
            for (var i=0; i < cars_in.data.length; i++) {
                html = html + '<option value="'+cars_in.data[i].code+'" selected="">' + cars_in.data[i].name + '</option>';
                console.log( cars_in.data[i]);

            }
            $('[name=CarModelOID]').html(html);
        }
        aaaaa();
    });

$('[name=CarBrandOID] option:eq(2)').prop('selected', true);
    $('[name=CarBrandOID]').trigger('click');
    $('[name=year] option:eq(2)').prop('selected', true);
    $('[name=run] option:eq(2)').prop('selected', true);
    $('[name=ClientFullName]').val('test');
    $('[name=ClientPhone]').val('+7-911-111-11-11');

})

```
IOS swift color to image

**let** rect = CGRect(x: 0, y: 0, width: 40, height: 40)

UIGraphicsBeginImageContext(rect.size)

**let** context = UIGraphicsGetCurrentContext()

**if** **#available**(**iOS** 10.0, \*) {

context!.setFillColor(UIColor(displayP3Red: 1.0, green: 0.0, blue: 0.0, alpha: 1.0).cgColor)

} **else** {

// Fallback on earlier versions

}

context!.fill(rect)

**let** img = UIGraphicsGetImageFromCurrentImageContext()
Работа с процедурами

declare @SummWithConsumables1 NUMERIC(16,2)

exec dbo\_CHService\_WEBReadWorkTime

@ServiceOID          = 281668250240155

,@CarOID              = 282935265722127

,@WorkXML             = '<Root>

<Work>

<WorkOID>282406984614805</WorkOID>

<PacketOID>283953172842260</PacketOID>

</Work>

</Root>'

,@SummWithConsumables = @SummWithConsumables1 out

select @SummWithConsumables1
Spider-Man (disambiguation)

This is the disambiguation page for Spider-Man. You may be looking for:

* Spider-Man- the series following Peter Parker and his career as Spider-Man.
* Peter Parker- the high school student who protects Queens as Spider-Man.
* Spider-Man's Suit/Spider-Suit- the suit used by Peter Parker while being Spider-Man.
Update select

```
UPDATE
  `pages` p
LEFT JOIN structure s_1 ON p.structure_id = s_1.id
SET
  p.`mini_content` = REPLACE(p.`mini_content`, '/accesories/', CONCAT(s_1.url, 'multimedia/'))
WHERE p.`id` <> 4174 AND s_1.code IS NOT NULL AND p.structure_id IN (
SELECT s1.id
FROM
  `structure` s1
  LEFT JOIN `structure` s2 ON `s2`.`parent_id` = s1.id
WHERE
  `s2`.`name` = 'Обзор'
)

UPDATE
  `pages`
  INNER JOIN `structure` ON (`pages`.`structure_id` = `structure`.`id`)
  INNER JOIN `structure` `structure1` ON (`structure`.`id` = `structure1`.`parent_id`)
SET
  `mini_content` = REPLACE(`mini_content`, 'Аксессуары', 'Фото')
WHERE
`structure1`.`name` = 'Обзор'
```

### Если нам необходимо полностью скопировать данные:

```
INSERT INTO `table_1` SELECT * FROM `table_2`;

```

Такой простой запрос возьмет данные с таблицы `table_2` и вставит их в `table_1`

### Если нужно сделать копию данных из одной таблицы MySQL в другую с условием:

```
INSERT INTO `table_1` SELECT * FROM `table_2` WHERE `row`='1';

```

Данный запрос возьмет все данные с таблицы `table_2` у которых столбец `row=1` и вставит их в `table_1`

### Если необходимо скопировать только нужные столбцы:

```
INSERT INTO `table_1`(`row_1`, `row_2`, `row_3`) SELECT `row_1`, `row_2`, `row_3` FROM `table_2`;

```
Ios swift xcode swipe

```
@objc func handleGesture(gesture: UISwipeGestureRecognizer) -> Void {

    if gesture.direction == .right {

        print("Swipe Right")

    }

    else if gesture.direction == .left {

        print("Swipe Left")

    }

    else if gesture.direction == .up {

        print("Swipe Up")

    }

    else if gesture.direction == .down {

        print("Swipe Down")

    }

```

}

```
let swipeLeft = UISwipeGestureRecognizer(target: self, action: #selector(handleGesture))

swipeLeft.direction = .left

self.view.addGestureRecognizer(swipeLeft)

let swipeRight = UISwipeGestureRecognizer(target: self, action: #selector(handleGesture))

swipeRight.direction = .right

self.view.addGestureRecognizer(swipeRight)

let swipeUp = UISwipeGestureRecognizer(target: self, action: #selector(handleGesture))

swipeUp.direction = .up

self.view.addGestureRecognizer(swipeUp)

let swipeDown = UISwipeGestureRecognizer(target: self, action: #selector(handleGesture))

swipeDown.direction = .down

self.view.addGestureRecognizer(swipeDown)

```
Spectahman's Special Motorcycle!!!?!!!

Spectahman's Special Motorcycle is the second episode of Spectahman series and the second in the Spectahman Pilot trilogy.

## Plot

Spectahman gets out his motorcycle to start the chase for his the Spectahmobile

## Trivia

* This is the first episode to feature only Spectahman.
* At 0:18 seconds, it is the shortest episode.
Insert last id Mysql как сохранить вставляемый id, для связанной вставки

```
BEGIN;

```

```
insert into clinic (name, code, phone, sortorder, is_active) value ('test', 'mezd', '123111', 22, 2);

```

```
insert into clinic_data(clinic_id, metro) value (LAST_INSERT_ID(), '123123');

```

```
COMMIT;

```

#INSERT INTO forms\_groups (name, code, form\_id, sortorder)

 # VALUES ('Адрес фактического проживания', 'address\_actual\_residence', 9, 200);

#INSERT INTO forms\_groups (name, code, form\_id, sortorder)

 # VALUES ('Адрес временной регистрации', 'address\_temp\_residence', 9, 300);

INSERT INTO forms\_groups (name, code, form\_id, sortorder)

 VALUES ('Адрес прописки, указанный в паспорте', 'registration\_address\_in\_passport', 9, 100);

SET @last\_id\_in\_table1 = LAST\_INSERT\_ID();

INSERT INTO forms\_fields

  (name, type, form\_id, sortorder, validation, message, group\_id, label, placeholder, pattern, value, lead\_assoc, link\_type\_code)

  VALUES ('region\_in\_passport', 'text', 9, 125, 'w', '',  @last\_id\_in\_table1, 'Регион', '', '', '', '', 0);

INSERT INTO forms\_fields

  (name, type, form\_id, sortorder, validation, message, group\_id, label, placeholder, pattern, value, lead\_assoc, link\_type\_code)

  VALUES ('district\_in\_passport', 'text', 9, 126, 'w', '',  @last\_id\_in\_table1, 'Район', '', '', '', '', 0);

INSERT INTO forms\_fields

  (name, type, form\_id, sortorder, validation, message, group\_id, label, placeholder, pattern, value, lead\_assoc, link\_type\_code)

  VALUES ('city\_in\_passport', 'text', 9, 127, 'w', '',  @last\_id\_in\_table1, 'Город', '', '', '', '', 0);

INSERT INTO forms\_fields

  (name, type, form\_id, sortorder, validation, message, group\_id, label, placeholder, pattern, value, lead\_assoc, link\_type\_code)

  VALUES ('locality\_in\_passport', 'text', 9, 127, 'w', '',  @last\_id\_in\_table1, 'Населенный пункт', '', '', '', '', 0);

INSERT INTO forms\_fields

  (name, type, form\_id, sortorder, validation, message, group\_id, label, placeholder, pattern, value, lead\_assoc, link\_type\_code)

  VALUES ('street\_in\_passport', 'text', 9, 128, 'w', '',  @last\_id\_in\_table1, 'Улица', '', '', '', '', 0);

INSERT INTO forms\_fields

  (name, type, form\_id, sortorder, validation, message, group\_id, label, placeholder, pattern, value, lead\_assoc, link\_type\_code)

  VALUES ('house\_number\_in\_passport', 'text', 9, 129, 'w', '',  @last\_id\_in\_table1, '№ дома', '', '', '', '', 0);

INSERT INTO forms\_fields

  (name, type, form\_id, sortorder, validation, message, group\_id, label, placeholder, pattern, value, lead\_assoc, link\_type\_code)

  VALUES ('housing\_in\_passport', 'text', 9, 130, 'w', '',  @last\_id\_in\_table1, 'Корпус', '', '', '', '', 0);

INSERT INTO forms\_fields

  (name, type, form\_id, sortorder, validation, message, group\_id, label, placeholder, pattern, value, lead\_assoc, link\_type\_code)

  VALUES ('apartment\_number\_in\_passport', 'text', 9, 130, 'w', '',  @last\_id\_in\_table1, '№ квартиры', '', '', '', '', 0);
Простая сортировка на PHP

```
<?php
$tmp = [3,4,2,33,22,1,17,16];

function getMinimal($arr){
    //$min = $arr[0];
    //$min_id = 0;
    $i = 0;
    foreach ($arr as $id => $val){
        if ($i==0){
            $min = $val;
            $min_id = $id;
        }
        if ($val < $min ){
            $min = $val;
            $min_id = $id;
        }
        $i++;
    }
    return $min_id;
}

$sorted_arr = [];

echo "test".count($tmp)."aaa";

$i = 0;
 while (count($tmp) <> 0 /*||  $i <= 10*/){
     //$i++;
     $min_id = getMinimal($tmp);
     $sorted_arr[] = $tmp[$min_id];
     unset($tmp[$min_id]);

 }

//unset($tmp[getMinimal($tmp)]);
//echo count($tmp);
//$new =

print_r($sorted_arr);

```
ActiveRecord

Нормальная документация:

https://yiiframework.com.ua/ru/doc/guide/2/db-active-record/

Все хорошие примеры на major-clinic.ru

Долго искал:

Как собрать приджоинную таблицу, (чтобы в одном запросе несколько), можно делать условия, на разные страницы:

$current\_department\_id = 40

```
$feedback_list = Question::*find*()

```

```
    ->joinWith(['feedbackdeparment'])

```

```
    ->where(['active'=>'1'])

```

```
    ->andWhere(['department_id'=>$current_department_id])

```

```
    ->all();

```

Сложный пример:

```
$departments = aaaaaaDepartmentRelations::*find*()

```

```
    ->joinWith([

```

```
        'связь' => function (ActiveQuery $query) {

```

```
            $query

```

```
                ->with('imageInfo')//можно заменить joinWidth

```

```
                ->where(['active' => 1])

```

```
                ->orderBy(['active' => *SORT\_DESC*, 'sortorder' => *SORT\_ASC*]);

```

```
        },

```

```
    ])

```

```
    ->where([класс::*tableName*() . '.department_id' => $id])

```

```
    ->all();

```

With как селект в селекте:

```
Services::*find*()

```

```
    ->with('data')

```

```
    ->with(['clinicRelations' => function(ActiveQuery $query){

```

```
        $query

```

```
            -> joinWith(['clinic' => function(ActiveQuery $query){

```

```
                $query->where(['is_active' => 1]);

```

```
            }]);

```

```
    }])

```

```
    ->where([Services::*tableName*() . '.id' => $id])

```

```
    ->one();

```

Если заменить joinWith на with, то будут возвращатся все элементы , из clinicRelations, а в случае joinWith - возращаюся только is\_active = 1

Вычисляемое поле

```
public function getLink()

```

```
{

```

```
    $specialization = Specializations::*findOne*(['id' => $this->specialization_id]);

```

```
   return "/" . DoctorsConf::*$prefix* . "/" . $specialization->code . "/" . $this->id . "/";

```

```
}

```

переменной $link - в классе недолжно быть

Вызывать ->Link (тоесть с большой буквы)

Транзакции:
`$transaction = Yii::$app->db->beginTransaction();`

`try {`

`$user = new User();`

`$user->name = 'Name';`

`$user->save();`

`$ua = new UserAddress();`

`$ua->city = 'City';`

`$user->link('userAddress', $ua); // <-- it creates new record in UserAddress table with ua.user_id = user.id`

`$transaction->commit();`

`}`

`catch (Exception $e) {`

`$transaction->rollBack();`

`}`

Использование алиас(alias), копии имен

```
$department = \Modules\Departments\Models\Department::*find*()

```

```
    ->alias('d')

```

```
    ->joinWith(['clinicRelations' => function(\yii\db\ActiveQuery $query){

```

```
        $query

```

```
            ->joinWith(['clinic' => function(\yii\db\ActiveQuery $query){

```

```
                $query->alias('c');

```

```
            }])

```

```
        ;

```

```
    }] )

```

```
    ->where(['d.name' => $data['department']])

```

```
    ->andWhere(['c.is_active' => 1])

```

```
    ->one();

```

Как выставить неравно:

$result = LocationsSalons::*find*()

```
    ->where(['code'=>$salone_code])

```

```
    ->andWhere(['<>', 'not_active', 1])

```

```
    ->one();

```
Swift xCode повесить событие и найти элемент

```
override func viewDidLoad() {

      super.viewDidLoad()

      nextButton.addTarget(self, action: #selector(buttonClicked), for: .touchUpInside)

      if let edit = self.view.viewWithTag(2222) as? FormTextField { //таг элемента

          print("edit")

          edit.addTarget(self, action: #selector(editedid), for: .allEditingEvents)

      }

      if let swith = self.view.viewWithTag(55550) as? UISwitch {

          print("aasfs")

          swith.addTarget(self, action: #selector(swithCleck), for: .valueChanged)

      }

      if let theLabel = self.view.viewWithTag(7770) as? UILabel {

          theLabel.text = "some text"

          //theLabel.addTarget(self, action: #selector(buttonClicked), for: .touchUpInside)

      }

}

@objc func buttonClicked(sender:UIButton)

  {

      if(sender.tag == 5){

          var abc = "argOne" //Do something for tag 5

      }

      print("hello")

  }

@objc func swithCleck(sender:UISwitch){

      if sender.isOn {

          print("on")

      }else {

          print("off")

      }

  }

@objc func editedid(sender:FormTextField){

      print(sender.text)

  }

```
Elijah

```

## Eljiah

 ### Directed by

 Sam Nichols

 ### Produced by

 Sam Nichols Peter Stone

 ### Written by

 Sam Nichols Donny Bailey

 ### Based on

 Characters by Sam Nichols

 ### Starring

 Donny BaileySam Nichols

Brooke Paquin

 ### Release date

 December 25, 2019

```

## Basis

Elijah is an upcoming movie in the Spectahman franchise. Set in 1975, the film focuses on the downfall of a poor man named Elijah Ward, the main character, who becomes criminal after being fired from his TV show. The film stars Donny Bailey as a younger version of The Scientist . Supporting Cast includes Vinny Yang as a new version of Negative Spectahman, Holly Nunnery as Love Potion No. 9, and Sam Nichols reprising his role as Spectahman, the only cast member to do so, while Peter Stone, who portrayed The Scientist in Negative Spectahman and the Spectahman short plays Elijah's boss at his restaurant. The film The film is currently in the development for a release date of December 2019.
Редирект в nginx

Файл nginx.conf

```
index index.php;

server_name 127.0.0.1 localhost;

client_max_body_size 20m;

```

```
rewrite ^/files/resources/(.*)$ https://sales.mercedes-sheremetevo.ru/files/resources/$1 permanent;
rewrite ^/files/images/(.*)$ https://sales.mercedes-sheremetevo.ru/files/images/$1 permanent;
rewrite ^/images/(.*)$ https://sales.mercedes-sheremetevo.ru/images/$1 permanent;

```

```
if (!-e $request_filename) {
    rewrite ^.*$ /index.php last;
}

```
Добавление MySQL

```
INSERT INTO templates(name, hint, file)
  SELECT name, hint, file
    FROM db_name.blocks

INSERT INTO db_name(
  id,
  name,
  code,
  additional_code,
  active,
  parent_id,
  structure_id,
  testdrive,
  main_model
  )
  SELECT
    mm.id,
    mm.name,
    mm.code,
    mm.additional_code ,
    mm.main_model,
    mm.parent_id,
    mm.page_id,
    mm.testdrive,
    mm.main_model

FROM db_name mm

 INSERT INTO db_name (id, login, hash, name, mail, phone, signature, creator_id, create_date, last_editor_id, last_edit_date)

 SELECT
    u.id,
    u.login,
    u.hash,
    u.name,
    u.mail,
    u.phone,
    u.signature,
    u.creator_id,
    u.create_date,
    u.last_editor_id,
    u.last_edit_date

    FROM `db_name`.users u
  LEFT JOIN faq_advisors fa ON fa.user_id = u.id
WHERE u.login NOT IN(SELECT login FROM users) AND
  u.id NOT IN(SELECT id FROM users)

  GROUP BY u.id

```
Тест calltouch

window.test = true;

        window.ctw = {'createRequest': function (key, phone, data, func) {

            var  data = {

                 'callbackRequestId': 123123123,

                 'sessionId': 1231,

                'type': 'test'

            };

            console.log(window.test);

            func(window.test, data);

            window.test = false;

        }};
Mokrosoft вики

## Помощь участникам

**Фэндом** — это сообщество интернет-энциклопедий на разные темы. Любой пользователь может редактировать страницы на этой вики: просто нажмите кнопку «Править» в верхней части любой страницы. Посетите Вики Сообщества и задайте любой вопрос на форуме.

Вот список некоторых служебных страниц, которые пригодятся любому участнику вики:

* Все статьи вики
* Шаблоны
* Активные участники
* Категории
* Свежие правки
* Новые изображения на вики
* Справка

## Галерея

С изображениями и видео на вашу вики будет приятно посмотреть.

Файл:Placeholder

## Создать страницу

Вы можете улучшить эту вики. Создайте новую статью!
<createbox>
width=24
break=no
buttonlabel=Создать новую страницу
</createbox>
Так же вы можете улучшать уже созданные страницы
Самый простой tab

```
$(document).ready(**function** () {

```

```
   $('.tab_buttons_wrap .button').click(**function** () {

```

```
      **var** open_tab = $(**this**).data('open-tab');

```

```
      $('.tab_buttons_wrap .button').removeClass('active');

```

```
      $(**this**).addClass('active');

```

```
      $('.tabs_content .tab_item').removeClass('active');

```

```
      $('.tabs_content [data-tab='+open_tab+']').addClass('active');

```

```
   });

```

```
});

```

```
<div class="models_list_wrapper">

```

```
   <div class="tab_buttons_wrap">

```

```
      <div class="button active" data-open-tab="tab1">Легковые автомобили</div>

```

```
      <div class="button"  data-open-tab="tab2">Коммерческий транспорт</div>

```

```
   </div>

```

```
   <div class="tabs_content">

```

```
      <div class="tab_item active" data-tab="tab1">

```

```
         <div class="item_model">

```

```
            <div class="link">

```

```
               <div class="img">

```

```
                  <img src="/images/models/zafiralife_pic.png" alt="Opel Zafira Life" title="Opel Zafira Life">

```

```
               </div>

```

```
               <a href="/model/zafira-life/"><h2 class="model_name">Zafira Life</h2></a>

```

```
            </div>

```

```
            <p class="price_from"> От 2 599 900 руб.</p>

```

```
            <ul class="menu content_menu">

```

```
               <li><a href="/model/zafira-life/">Описание</a></li>

```

```
            </ul>

```

```
         </div>

```

```
         <div class="item_model">

```

```
            <div class="link">

```

```
               <div class="img">

```

```
                  <img src="/images/models/opel_grandland_x_hero_side_my20.png" alt="Opel Grandland X" title="Opel Grandland X">

```

```
               </div>

```

```
               <a href="/model/grandland-x/"><h2 class="model_name">Grandland X</h2></a>

```

```
            </div>

```

```
            <p class="price_from"> От 2 127 000 руб.</p>

```

```
            <ul class="menu content_menu">

```

```
               <li><a href="/model/grandland-x/">Описание</a></li>

```

```
            </ul>

```

```
         </div>

```

```
      </div>

```

```
      <div class="tab_item" data-tab="tab2">

```

```
         <div class="item_model">

```

```
            <div class="link">

```

```
               <div class="img">

```

```
                  <img src="/images/models/vivaro3.png" alt="Opel Vivaro" title="Opel Vivaro">

```

```
               </div>

```

```
               <a href="/model/vivaro/"><h2 class="model_name">Vivaro</h2></a>

```

```
            </div>

```

```
            <p class="price_from"> От 1 787 000 руб.</p>

```

```
            <ul class="menu content_menu">

```

```
               <li><a href="/model/vivaro/">Описание</a></li>

```

```
            </ul>

```

```
         </div>

```

```
      </div>

```

```
   </div>

```

```
</div>

```
MySQL PHP поиск по всем таблицам БД

```
<?php

function createPDOInstance($db, $server_and_port, $user_name, $pass)
{
    //$db = 'db_name';
//    $link = new PDO(
//        "mysql:host=192.168.21.45:375; dbname=" . $db,
//        "roa",
//        "dsADFSASDFASDF");
    $link = new PDO(
        "mysql:host=$server_and_port; dbname=" . $db,
        $user_name,
        $pass);
    $link->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
    return $link;
}

function searchAllDB($search, $mysqli, $file_name = '1.csv')
{
    $out = array();
    $sql = "show tables";
    $query = $mysqli->query("show tables");
    $query->execute();
    //print_r( $query -> fetchAll());
    $result = [];
    $fp = fopen($file_name, 'w');
    foreach ($query->fetchAll() as $item) {
        foreach ($item as $table_name) {
            echo $table_name."\n";
            $query = $mysqli->query("SHOW COLUMNS FROM `" . $table_name."`");

            $query->execute();
            $table = $query->fetchAll();
            foreach ($table as $field) {
                if (//no search
                    $table_name == 'mail'*/
                ) {
                    continue;
                }
                if ($field['Type'] == "text" || strpos($field['Type'], 'varchar') !== false) {

                    $query = $mysqli->query("select * from `" . $table_name . "`
                        where
                            `" . $field['Field'] . "` like '%facebook.com%'".
                        "|| `" . $field['Field'] . "` like '%instagram.com%' ;"

                    );
                    $query->execute();
                    $facebooks = $query->fetchAll();
                    foreach ($facebooks as $item_facebook) {
                        $result[] = [
                            'id' => $item_facebook['id'],
                            'field' => $field['Field'],
                            'table_name' => $table_name,
                            'text' => $item_facebook[$field['Field']],
                        ];
                        fputcsv($fp,
                            [
                                'id' => $item_facebook['id'],
                                'field' => $field['Field'],
                                'table_name' => $table_name,
                                'text' => $item_facebook[$field['Field']]
                            ],
                            ';'
                        );

                    }
                }
            }
        }
    }

    fclose($fp);
   // print_r($result);

    return $out;
}

searchAllDB('', createPDOInstance('avto','192.168.41.52:33','aaaR','asdf'),'avto.csv');

```
Как скопировать cookies

В консоле написать:

document.cookie

сопировать

"PHPSESSID=ndn5qpphqk4vruv106jtd4prs7; mymajorsession\_key=743025ad676442a24aa4ff2d91076205; mymajoridentifier=c7ccdca45589371de2750875987af6ab; tmr\_detect=0%7C1597744509431"

в соседнем окне написать:

document.cookie = "PHPSESSID=ndn5qpphqk4vruv106jtd4prs7; mymajorsession\_key=743025ad676442a24aa4ff2d91076205; mymajoridentifier=c7ccdca45589371de2750875987af6ab; tmr\_detect=0%7C1597744509431"