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
@echo off | |
:nextfile | |
if "%~s1"=="" goto end | |
if exist tmp_frames/ (del /q tmp_frames) else (mkdir tmp_frames) | |
if exist out_frames/ (del /q out_frames) else (mkdir out_frames) | |
if exist %~s1 ffmpeg -i "%~s1" -qscale:v 1 -qmin 1 -qmax 1 -vsync 0 tmp_frames/frame%%08d.jpg | |
"./realesrgan-ncnn-vulkan.exe" -i tmp_frames -o out_frames -n realesr-animevideov3 -s 2 -f jpg | |
if exist %~s1 FOR %%i IN ("%~s1") DO ( ffmpeg -framerate 24 -i out_frames/frame%%08d.jpg -i "%~s1" -map 0:v:0 -map 1:a:0 -c:a copy -c:v libx265 -pix_fmt yuv420p %%~di%%~piconv_%%~ni%%~xi ) | |
shift | |
goto nextfile |
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
var ExcelApp = new ActiveXObject("Excel.Application"); | |
ExcelApp.Visible = true; | |
ExcelApp.DisplayAlerts = false; | |
var WB = ExcelApp.Workbooks.Open("[Excelファイルのパス]"); | |
var WS = WB.Worksheets(1); | |
WS = WB.Worksheets("シート名"); |
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
@echo off | |
setlocal enabledelayedexpansion | |
:: hk03neさんの桁数指定バージョン : 複数ファイルを一括で連番付きファイル名にリネームするバッチファイル | |
:: https://gist.github.com/hk03ne/3edd7b5c6a276c2bf6268a9248c8b484 | |
:: 連番(整数) | |
set /a INT_INDEX=1 | |
:: 連番を0で桁揃えする長さ | |
set /p PAD_LENGTH="0で桁揃えする長さ : " |
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
$ sudo apt install g++ |
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
using UnityEngine; | |
public class LookChange : MonoBehaviour { | |
private bool fMaterial = false; | |
[SerializeField] | |
private Material mat01; | |
[SerializeField] | |
private Material mat02; |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using VRTK.Highlighters; //usingは忘れがちなので忘れずに | |
public class SetOutline : MonoBehaviour { | |
VRTK_OutlineObjectCopyHighlighter vrtk_outline; | |
void Start () |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class TileController : MonoBehaviour { | |
public GameObject tilePrefab; | |
public GameObject[,] tile; | |
private int tileX,tileY; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
using UnityEngine; | |
public class MouseMover : MonoBehaviour { | |
public float speed; // 大きい程早く動く | |
private GameObject obj; | |
private Rigidbody2D rb; | |
void Start () |
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
using System; // DateTimeに必要 | |
using System.Collections; | |
using UnityEngine; | |
public class clockController : MonoBehaviour { | |
public bool sec; // 秒針の有無 | |
public bool secTick; // 秒針を秒ごとに動かすか | |
public GameObject hour; |
NewerOlder