値の挿入は%vを使う
fmt.Printf("ウ・ル・ト・ラ・%v! \%v/", "ソウッ!", "ハーイ!")
4文字幅でパディング&アライメントするときは、%4vのように正の値なら左側に空白を置いでパディングされ、%-4vのように負の値なら空白を右側に置くようにパディングされる
| # TOPAZ Video Enhance AI Document | |
| # https://help.topazlabs.com/hc/en-us/articles/360046455552-Command-Line-Interface-Documentation | |
| $INPUT_VIDEO = "input.mp4" | |
| $OUTPUT = "output.mp4" | |
| New-Item -Name "images" -ItemType "directory" | |
| # オリジナル動画のフレームレートの取得(小数点第三位以下切り捨て) | |
| (ffprobe -loglevel quiet -show_streams -print_format json "input.mp4" | ConvertFrom-Json).streams[0].r_frame_rate -match "(.*)\/(.*)" | |
| $FRAME_RATE = [Math]::Truncate(([double]$Matches[1] / [double]$Matches[2]) * 100)/100 |
| { | |
| "filters": {}, | |
| "rules": { | |
| "preset-ja-engineering-paper": true, | |
| "preset-ja-spacing": true, | |
| "preset-ja-technical-writing": { | |
| "ja-no-mixed-period": { | |
| "periodMark": "." | |
| }, | |
| "max-kanji-continuous-len": { |
| // This file was initially generated by Windows Terminal 1.1.2021.0 | |
| // It should still be usable in newer versions, but newer versions might have additional | |
| // settings, help text, or changes that you will not see unless you clear this file | |
| // and let us generate a new one for you. | |
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", |
| # ビットレートが半分のh265にエンコードして、.\done\に出力するスクリプト | |
| # NVENC使うのでGeForce系のグラボないとダメ | |
| $items = Get-ChildItem; | |
| Write-Output $lines; | |
| foreach($i in $items){ | |
| if($i.PSIsContainer -or [System.IO.Path]::GetExtension($i) -eq "ps1"){ | |
| continue; | |
| } |
| #!/usr/bin/env perl | |
| # 日本語原稿の設定例 | |
| @default_files=('main.tex'); | |
| # LaTeX | |
| $latex = 'platex -synctex=1 -halt-on-error -file-line-error %O %S'; | |
| $max_repeat = 5; | |
| # BibTeX | |
| $bibtex = 'pbibtex %O %S'; |
はてなブックマークからSlackに記事をシェアするBotです.
各自がGoogle App Scriptで特定のチャンネルに投稿することを想定してます.
こういうことがやりたくて作ってみました.
雑談のタネにどうぞ.
POST_URL: SlackのIncoming Webhookでchannelごとに発行されるURL| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| updateChannel: 'stable', |