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
Show hidden characters
{ | |
"env": { | |
"es2021": true, | |
"node": true | |
}, | |
"extends": [ | |
"airbnb-base" | |
], | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { |
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
Я как и вы постоянно искал ключики, активаторы, пропиcывал в hosts так же блокировал трафик фаерволом . На последних версиях phpstorm-e все равно слетала активация. На сайте vebs.ru самый простой и эффективный способ продление триала. Итак: | |
Windows 10 | |
удаляем папку eval | |
C:\Users\User\AppData\Roaming\JetBrains\webstorm2021\eval | |
Отредактируем файл others.xml | |
C:\Users\User\AppData\Roaming\JetBrains\webstorm2021\options\others.xml | |
удалить все строки с «<property name=„evlsprt.2** ……/>“ | |
В ветке реестра удаляем мусор: | |
HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\webstorm |
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
const mongoose = require('mongoose') | |
const dbConfig = (req, res, next) => { | |
mongoose.connect('mongodb+srv://gunaevart:[email protected]/app?retryWrites=true&w=majority',{ | |
useNewUrlParser: true | |
}) | |
.then(() => console.log('connect ok')) | |
.catch(err => console.log(err)) | |
next() |
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
// Быстро поменять цветовую схему и много другое | |
Ctr + `~` | |
// sout | |
System.out.println(); | |
// просмотр сокращений команд | |
C+J | |
// Строчная I вызов цикла |
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
Map<String, String> mp = new HashMap<>(); | |
mp.put("ключ1", "значение1"); | |
mp.put("ключ2", "значение2"); | |
mp.put("ключ3", "значение3"); | |
mp.forEach((k,v) -> System.out.println(k + v)); | |
//------------------------------------- | |
ArrayList<String> name = new ArrayList<>(); | |
name.add("1"); |
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
package javaapp; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import java.sql.*; |
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
using CsQuery; // подключаем и качаем | |
// https://github.com/jamietre/CsQuery/blob/master/distribution/CsQuery.dll | |
string val = textBox2.Text; // 1-параметр запроса | |
string val2 = textBox1.Text; // 2-параметр запроса | |
var web = CQ.CreateFromUrl($"https://www.avito.ru/rossiya?s_trg=3&q={val}+{val2}"); | |
var data = web.Select(".data"); //проходим по всем классам "data" | |
var about = web.Select(".about"); //проходим по всем классам "about" | |
if (data != null) | |
{ |
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 | |
// если в массиве $_POST есть ключ name и его значение не равно пустоте, то | |
if ((isset($_POST['name'])) && (!empty($_POST["name"]))) { | |
// присвоить $result['name'] значение $_POST['name'] | |
$result['name'] = $_POST['name']; | |
} else { | |
// иначе, $result['name'] присвоить указанную строку | |
$result['name'] = 'Вы не ввели поле name!'; | |
} | |
// если в массиве $_POST есть ключ message и его значение не равно пустоте, то |
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
<div class="rating"> | |
<div class="rating-item active" data-rate="1"></div> | |
<div class="rating-item" data-rate="2"></div> | |
<div class="rating-item" data-rate="3"></div> | |
<div class="rating-item" data-rate="4"></div> | |
<div class="rating-item" data-rate="5"></div> | |
</div> | |
-------------------------- | |
*{ |
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
$(function() { | |
$('.contacts__btn').click(function(){ | |
$('html, body').animate({scrollTop:0}, 'slow'); | |
}); | |
}) |
NewerOlder