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
awk -F "_" '{for(i=1; i<=NF; i++) $i=toupper(substr($i,1,1)) substr($i,2)} 1' OFS="" input.csv > output.csv |
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
exiftool '-FileName<CreateDate' -d "%Y%m%dT%H%M%S_%%f.%%le" -r ./ |
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
# 余白を短辺にのみ設ける場合 | |
magick mogrify -filter Lanczos -distort Resize 1280x1280 -extent 1280x1280 -gravity center -background white -path converted *.jpg *.png | |
# 上下左右に少なくとも30pxの余白を設ける場合 | |
magick mogrify -filter Lanczos -distort Resize 1000x1000 -extent 1060x1060 -gravity center -background white -path converted *.jpg |
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
for file (*.JPG) { (avifenc -j all $file -o $file:r.avif) & } |
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
#install.packages("tidyverse")#ライブラリのインストール(初回のみ) | |
library(haven) | |
print(getwd())# 作業ディレクトリ | |
l <- list.files(pattern=".csv")# CSVファイルを検索、リスト化 | |
for (e in l) { | |
print(paste0(e, ".sav")) | |
df <- read.csv(e)#CSV読み込み | |
write_sav(df, paste0(e, ".sav"))#SAV書き出し |
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
--- | |
BasedOnStyle: Microsoft | |
AccessModifierOffset: '-4' | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveMacros: 'true' | |
AlignOperands: 'true' | |
AlignTrailingComments: 'true' | |
AllowAllArgumentsOnNextLine: 'false' | |
AllowAllConstructorInitializersOnNextLine: 'false' | |
AllowAllParametersOfDeclarationOnNextLine: 'false' |
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 <cstdint> | |
#include <cstddef> | |
#include <array> | |
//std::array<std::byte, N>を生成する | |
//std::array<std::byte, 2> b = {0x00, 0xFF}; はintからstd::byteへの暗黙キャストでエラーになる | |
//std::array<std::byte, 2> b = {std::byte{0x00}, std::byte{0xFF}}; はエラーにならないが、面倒なのでmake_bytes(0x00, 0xFF) で生成できるようにした | |
template<typename... Ts> | |
constexpr std::array<std::byte, sizeof...(Ts)> make_bytes(Ts&&... args) noexcept { |
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
#pragma once | |
//============================================================================== | |
template <typename FloatType> | |
class MinimumDspModule | |
{ | |
public: | |
MinimumDspModule() noexcept = default; | |
//============================================================================== |
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
/* | |
i.MX RT1020のAudio PLLの最適設定を求めるコード | |
PLLFreq = ref * (div + ( num / denom )) | |
*/ | |
package main | |
import ( | |
"fmt" | |
"math" | |
) |
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
#!/bin/sh | |
echo "Installing commands" | |
brew install git | |
brew install ffmpeg | |
brew install sox | |
brew install cmake | |
brew install doxygen | |
brew install graphviz | |
brew install cppcheck | |
brew install clang-format |
NewerOlder