web116 Split file by minute using ffmpeg with shell script ```sh inc=5 if [ $# -lt 1 ] ; then echo "Usage: ff2 file_name sec loop_count" exit 1 elif [ $# -lt 2 ] ; then inc=5 else inc=$2 fi loop=5 if [ "$3" != "" ] ; then loop=$3 fi convertsecs() { ((h=${1}/3600)) ((m=(${1}%3600)/60)) ((s=${1}%60)) printf "%02d:%02d:%02d\n" $h $m $s } # echo loop $loop; # ffmpeg -ss 01:00:00 -i $1.mp4 -t 00:15:00 -c copy $1_05.mp4 fromSec=0 toSec=0 fromMin=0 toMin=0 fro.. 2023. 6. 2. 화면 스크롤 로드 체크 - new IntersectionObserver const io = new IntersectionObserver((entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { var sectionName = $(entry.target).attr("class"); var subGubun = sectionName.split(" ")[1]; //console.log( "active.class", subGubun ); $(entry.target).addClass('active').trigger("activeClass"); onSearch(subGubun); } }); }); document.querySelectorAll("section").forEach((item) => { io.. 2023. 5. 30. react url .htaccess apache #### # .htaccess ```sh checkURL On ServerEncoding EUC-KR ClientEncoding UTF-8 Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.html [QSA,L] ``` 2022. 11. 21. Axios in Typescript 원본 : https://bobbyhadz.com/blog/typescript-http-request-axios 2022. 9. 4. Fetch in TypeScript 원본 : https://www.delftstack.com/howto/typescript/typescript-fetch/ Fetch in TypeScript The fetch is a globally available native browser function that can be used to fetch resource over an HTTP connection. In TypeScript, we can use the fetch function to consume typed response data. www.delftstack.com // Todo type interface interface Todo { userId: number; id: number; title: string; completed: boo.. 2022. 9. 4. 화면 활성화 비활성화 active deactive , visibilitychange document.addEventListener('visibilitychange', function() { if (document.hidden) { if ( handleInterval > 0 ) clearInterval(handleInterval); } else { if ( handleInterval > 0 ) clearInterval(handleInterval); console.log("============== ACTIVE ============="); handleInterval = setInterval(()=>{ },intervalTime); } }, false); 2022. 8. 19. 이전 1 2 3 4 ··· 20 다음