Это вольный перевод, упрощенный местами Angular commit style
Каждое сообщение коммита состоит из заголовка, тела и колонтитула. Заголовок имеет специальный формат, который включает тип и тему:
<type>: <subject>
<BLANK LINE>
<body>
<BLANK LINE>
Это вольный перевод, упрощенный местами Angular commit style
Каждое сообщение коммита состоит из заголовка, тела и колонтитула. Заголовок имеет специальный формат, который включает тип и тему:
<type>: <subject>
<BLANK LINE>
<body>
<BLANK LINE>
Each YouTube video has 4 generated images. They are predictably formatted as follows: | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg | |
The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is: | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg | |
For the high quality version of the thumbnail use a url similar to this: |
<? | |
$res = CIBlockSection::GetList( | |
Array('name' => 'asc'), | |
Array('IBLOCK_ID' =>'5' , 'ACTIVE' => 'Y') | |
); | |
while ($row = $res->GetNext()) | |
{ | |
echo $row['NAME'].'<br>'; | |
$rsParentSection = CIBlockSection::GetByID($row['ID']); | |
if ($arParentSection = $rsParentSection->GetNext()) |
gource -1280x720 --seconds-per-day 0.1 --key --hide dirnames, -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -crf 1 -threads 0 -bf 0 output.mp4 |
import os, codecs | |
for (dir, _, files) in os.walk("./"): | |
for f in files: | |
path = os.path.join(dir, f) | |
if f.endswith(('php')): | |
if os.path.exists(path): | |
data = open(path, "rb").read() | |
print(path) | |
if data.startswith(codecs.BOM_UTF8): | |
continue |
find ./ -type f -name "*.py" | xargs wc -l |
alter user 'root'@'localhost' identified with mysql_native_password by 'PASS'; |
docker rmi $(docker images -f “dangling=true” -q) |
function getSslPage($url) | |
{ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); | |
curl_setopt($ch, CURLOPT_HEADER, false); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_REFERER, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
$result = curl_exec($ch); |
<? | |
public function actionExportNumbersData() | |
{ | |
ini_set("memory_limit", "-1"); | |
set_time_limit(0); | |
$numbers = Numbers::find()->all(); | |
$spreadsheet = new Spreadsheet(); |