This file contains hidden or 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
Param([string]$FileFilter = "*.*") | |
function Start-Changed-Watcher() { | |
Param ( | |
[string]$Path, | |
[String]$Filter = "*.*" | |
) | |
$watcher = New-Object System.IO.FileSystemWatcher |
This file contains hidden or 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"> | |
<title>A simple clock</title> | |
<style> | |
@import url('https://fonts.googleapis.com/css?family=Graduate&display=swap'); | |
div { | |
font-family: 'Graduate', cursive; |
This file contains hidden or 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
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
import cgi | |
import logging | |
import json | |
logging.basicConfig(level=logging.DEBUG) | |
class RecognizeTextHandler(SimpleHTTPRequestHandler): | |
FILE_NAME = "recognized.txt" |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.1) | |
project(gacha_yen_simulate) | |
find_package(OpenMP REQUIRED) | |
add_executable(gacha main.cpp) | |
target_link_libraries(gacha OpenMP::OpenMP_CXX) | |
This file contains hidden or 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
Get-ChildItem -Path *.png -File | foreach { | |
if ( $_.name -match "(.+_)(\d+)(.+)" ) { | |
$digit = [int]($Matches[2]) | |
[string]$format = "{0}{1:0000}{2}" -f $Matches[1], $digit, $Matches[3] | |
Rename-Item $_ -NewName $format | |
} | |
} |
This file contains hidden or 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 -i '.\2021-08-07 05-38-37.mkv' -vf "drawtext=fontfile=meiryo.ttc:text=%{n}:x=(w-tw)/2:y=h-(2*1h):fontcolor=white:box=1:boxcolor=0x00000099:fontsize=72" -y -c:v h264_nvenc test.mkv |
This file contains hidden or 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
#include <iostream> | |
#include <random> | |
#include <algorithm> | |
#include <cmath> | |
#include <cassert> | |
#include <utility> | |
#include <vector> | |
#include <omp.h> | |
struct Person { |
This file contains hidden or 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
foreach ($ss in Get-ChildItem 'ffxiv_*_*_*.png') { | |
Write-Host $ss.Name | |
if ($ss.Name -match 'ffxiv_([0-9]+)_.+_.+\.png') { | |
$n_d = "ss_" + $Matches.1 | |
if (!(Test-Path $n_d)) { | |
Write-Host "mkdir: " + $n_d | |
New-Item -Path . -Name ($n_d) -ItemType "directory" | |
} | |
Write-Host "Move: " $ss.Name " to: " $n_d | |
Move-Item -Path ($ss.Name) -Destination ($n_d) |
This file contains hidden or 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
foreach ($ss in Get-ChildItem 'ffxiv_*_*_*.png') { | |
Write-Host $ss.Name | |
if ($ss.Name -match 'ffxiv_([0-9]+)_.+_.+\.png') { | |
$n_d = "ss_" + $Matches.1 | |
if (!(Test-Path $n_d)) { | |
Write-Host "mkdir: " + $n_d | |
New-Item -Path . -Name ($n_d) -ItemType "directory" | |
} | |
Write-Host "Move: " $ss.Name " to: " $n_d | |
Move-Item -Path ($ss.Name) -Destination ($n_d) |
This file contains hidden or 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
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.10.6/dayjs.min.js"></script> | |
<!-- ここから追加 --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.10.6/plugin/utc.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.10.6/plugin/timezone.js"></script> | |
<!-- ここまで追加 --> | |
<link rel="preconnect" href="https://fonts.gstatic.com"> | |
<script language="JavaScript"> | |
// *ここから追加* |