⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
export const extend = (deep: boolean, target: any, ...args: any[]): any => { | |
if (!_isClass(deep, 'Boolean')) { | |
args.unshift(target); | |
[target, deep] = [deep || {}, false]; | |
} | |
// Handle case when target is a string or something (possible in deep copy) | |
target = _isPrimitiveType(target) ? {} : target; | |
for (const options of args) { |
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
#!/bin/bash | |
# Function to display usage information | |
usage() { | |
echo "Usage: $0 [--extension <file_extension>] --audio <audio_directory> --subtitle <subtitle_directory> <source_directory> <destination_root_directory>" | |
exit 1 | |
} | |
# Function to check write permission | |
check_write_permission() { |
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
extends includes/layout | |
block content | |
:coffeescript | |
images_srcs = [ | |
'http://st.gdefon.ru/wallpapers_original/wallpapers/241906_kotenok_mordochka_trava_pushistyj_1920x1200_(www.GdeFon.ru).jpg' | |
'http://www.allfons.ru/pic/201112/1920x1080/allfons.ru-967.jpg' | |
'http://st.gdefon.ru/wallpapers_original/wallpapers/155879_kotyonok_vzglyad_kotye_1920x1200_(www.GdeFon.ru).jpg' | |
'http://st.gdefon.ru/wallpapers_original/wallpapers/17769_kotenok_ryzhij_pushistyj_fortepiano_1280x1024.jpg' | |
'http://catfoto.com/uploads/images/00/00/18/2011/02/12/7999cc.jpg' |
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
doctype html | |
html | |
head | |
meta(charset='utf-8', http-equiv='X-UA-Compatible', content='IE=edge,chrome=1') | |
title Project name | |
link(rel='stylesheet', href = 'css/style.css') | |
script(src='vendor/mock.js') |
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
[user] | |
name = | |
email = | |
[core] | |
autocrlf = input | |
safecrlf = true | |
whitespace = fix, -indent-with-non-tab, trailing-space, cr-at-eol | |
pager = less -R |
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
# 1) to save all frames from (-i INPUT_VIDEO) input video file, | |
# (-ss 00:10:00) started at 10 minute and (-t 10) stop after 10 seconds, | |
# (-same_quant) use same quantizer as source (-f image2) with image2 muxer and | |
# (img-%04d.jpg) img-0001.jpg pattern | |
# | |
# - you get bunch of files | |
ffmpeg -i INPUT_VIDEO -ss 00:10:00 -t 10 -same_quant -f image2 img-%04d.jpg | |
# 2) to save (-r 6) 6 frames in second |
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
TravelMate:bin meettya$ ./ab -n 10000 -c 480 -k http://192.168.1.2:3000/?url=$RANDOM | |
This is ApacheBench, Version 2.3 <$Revision: 1178079 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 192.168.1.2 (be patient) | |
Completed 1000 requests | |
Completed 2000 requests | |
Completed 3000 requests | |
Completed 4000 requests |
NewerOlder