- BlackHoleを入れて、仮想オーディオデバイスを作る
- 「Audio MIDI設定」を開く
- 「複数出力装置を作成」して、内蔵出力とBlackHoleの仮想デバイス(BlackHole 2chとか)を設定する
- マスター装置は「内蔵出力」
- オーディオ装置の順番は「内蔵出力」→「仮想デバイス」
- 作成した複数出力装置を「このサウンド出力装置を使用」に指定する
- BlackHoleの仮想デバイスを「このサウンド入力装置を使用」に指定する
- Discordを開く
- 「ユーザー設定」→「音声・ビデオ」を開く
- 入力デバイスにBlackHoleの仮想デバイス(BlackHole 2chとか)を指定
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
FROM ubuntu:18.04 | |
USER root | |
RUN apt-get update | |
RUN apt-get -y install locales && \ | |
localedef -f UTF-8 -i ja_JP ja_JP.UTF-8 | |
ENV LANG ja_JP.UTF-8 | |
ENV LANGUAGE ja_JP:ja | |
ENV LC_ALL ja_JP.UTF-8 |
This is a SCRIPT-8 cassette.
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
Sub Macro1() | |
' 挿入/変更/削除以外の変更履歴を一括承諾する | |
' https://docs.microsoft.com/ja-jp/office/vba/api/word.wdrevisiontype | |
For Each myRev In ActiveDocument.Revisions | |
myType = myRev.Type | |
Select Case myType | |
Case _ | |
wdRevisionDisplayField, _ | |
wdRevisionParagraphNumber, _ | |
wdRevisionParagraphProperty, _ |
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
def my_round(source_list, threshold=0.1, ratio_threshold=0.8): | |
""" | |
リストの最大値を基準に、最大値との比率が閾値の範囲かどうかで値を1,0で二値化します。 | |
:param source_list: 対象のリスト | |
:type source_list: List[float] | |
:param threshold: 最大値の閾値(これより小さい値の場合、すべて0になる) | |
:param ratio_threshold: 最大値との比率の閾値(この範囲内の値は1になる)) | |
:return: 二値化したリスト | |
""" | |
max_value = max(source_list) |
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
#!/bin/sh | |
echo 1 > /media/debug.txt | |
#link the usb drive dirs into the /gaadata | |
cd /media/games | |
for D in *; do | |
if [ -d "${D}" ]; then | |
ln -s /media/games/${D} /gaadata/${D} | |
ln -s /media/games/${D} /data/AppData/sony/pcsx/${D} | |
mkdir -p /media/games/${D}/.pcsx | |
cp -n /media/games/${D}/pcsx.cfg /media/games/${D}/.pcsx |
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
/: | |
total 66 | |
drwxr-xr-x 21 root root 1024 Sep 9 2018 . | |
drwxr-xr-x 21 root root 1024 Sep 9 2018 .. | |
drwxr-xr-x 2 root root 3072 Sep 9 2018 bin | |
drwxr-xr-x 2 root root 1024 Sep 1 14:49 boot | |
drwxr-xr-x 5 root root 1024 Sep 1 2018 data | |
drwxr-xr-x 15 root root 4500 Sep 1 14:56 dev | |
drwxr-xr-x 24 root root 2048 Sep 9 2018 etc | |
drwxr-xr-x 27 root root 4096 Sep 1 14:56 gaadata |
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
import com.intellij.ide.script.IDE | |
import com.intellij.openapi.diagnostic.Logger | |
import com.intellij.openapi.actionSystem.ActionManager | |
import com.intellij.openapi.actionSystem.AnAction | |
import com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.openapi.actionSystem.KeyboardShortcut | |
import com.intellij.openapi.keymap.KeymapManager | |
import com.intellij.openapi.project.ProjectManager | |
import org.jetbrains.ide.script.IdeScriptEngineManager | |
import javax.swing.KeyStroke |
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
import com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.openapi.command.WriteCommandAction | |
import java.util.function.Consumer | |
import static com.intellij.openapi.actionSystem.LangDataKeys.* | |
////////////////////////////////////////////////////////////////////////////////////////////// | |
metaClass.propertyMissing = {name -> | |
switch (name) { |
NewerOlder