- Последние файлы
Ctrl+E
- Последние места (внутри файлов)
Ctrl+Shift+E
- Список родительских директорий
Ctrl+Alt+F12
- Перейти к реализации (определению) сущности
Ctrl+B
- Лог последних изменений проекта
Alt+Shift+C
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 | |
// Run from the command line, so we'll grab arguments from there | |
// input arguments: 0=>script, 1=>file_name, 2=>temp_file | |
$file_name = $argv[1]; | |
$temp_file = $argv[2]; | |
$uploads = '/opt/lampp/htdocs/user_uploads/'; | |
// Set up file location strings |
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
/* @lang VKScript */ | |
var items = []; | |
var result = API.newsfeed.get( | |
{"filters": "video,post,photo,wall_photo" } | |
); | |
if(!result.items) { | |
return false; | |
} | |
var totalPlanned = parseInt(result.count); | |
var total = result.items.length; |
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
Небольшая помощь в Smali | |
(Будет дополняться) | |
# | |
Общая информация | |
# | |
Smali | |
Виды(Types) | |
Байт-код Dalvik имеет два основных класса типов, примитивные типы и ссылочные типы. Типы ссылок - это объекты и массивы, все остальное является примитивным. |
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 DEFINER=`grs`@`localhost` PROCEDURE `ads_archive_updater`() | |
LANGUAGE SQL | |
NOT DETERMINISTIC | |
CONTAINS SQL | |
SQL SECURITY DEFINER | |
COMMENT 'Ads archive updater' | |
BEGIN | |
START TRANSACTION; | |
SELECT COUNT(*) FROM Ads INTO @adsTotal; |
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
/** | |
* Logger.class.js: Simple logger based on console wrapper with colors | |
* and multiple levels | |
* | |
* @copyright Copyright (c) 2018 Sergey Petrenko <[email protected]> | |
* @homepage https://gist.github.com/digitalhitler | |
* @license MIT | |
* @version 2.1.0 | |
* | |
* @history |
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 | |
DATE(`A`.`PublishedAt`) AS `Date`, | |
COUNT(`A`.`ID`) AS `TotalEntries`, | |
`A`.`BoardID` AS `Board`, | |
(SELECT `Label` AS `BoardLabel` FROM `Boards` `BR` WHERE `ID` = `A`.`BoardID` LIMIT 1) AS `BL` | |
FROM `Ads` `A` | |
WHERE | |
`A`.`PublishedAt` | |
BETWEEN | |
TIMESTAMP( |
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
ffmpeg -vcodec libx264 -movflags +faststart -threads 0 -r 25 -g 50 -crf 25 -me_method hex -trellis 0 -bf 8 -acodec aac -strict -2 -ar 44100 -ab 128k -f mp4 |
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 numericPlural(number, titles, prependNumber) { | |
prependNumber = prependNumber || false; | |
var cases = [2, 0, 1, 1, 1, 2]; | |
return (prependNumbers === true : number + " " : "") + titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ]; | |
} | |
/** | |
usage: | |
numericPlural(count, ['найдена', 'найдено', 'найдены'], true); | |
*/ |
NewerOlder