プログラミング
This is my MEMO for coding materials in Fortran 90. Append data to the existing file Sequential names for output files Output with the fixed filename Save-and-load routine Random-number generator according to the date and time Recording th…
職場で新しいPCを使い始めたのにともない、色々と記録を残しておこうと思います。 全般的なメモ ファイル&アプリ操作 in Ubuntu(というかLinux系全般) エディタソフト"Emacs" Python関連 Git関連 LaTeX & Texlive BLAS & LAPACK メモ・複数窓使いたいとき…
前提 使っているPCのOSはWindows10、WSL(Ubuntu)自体は導入済み。Emacsも導入しているが、CUI(ターミナル上ですべての作業を行う)版のみ。 VcXsrvのインストール まずWindows上でGUI型アプリを動作させるため、以下のURLからVcXsrvのインストーラーをダウ…
【初心者はこれ】UbuntuにGitをインストール・設定方法 | Inno-Tech-Life 最低限覚えておくgitコマンド(Ubuntu) | エンジニアの自由な遊び場 個人用アクセス トークンの作成 - GitHub Docs GitHubにPushできない!?GitHubアクセストークン作成を画像で分…
start dir これでとにかく二番目の窓が開く。Windows 10 Home ver. 22H2にて。 参考↓ https://www.javadrive.jp/command/command/index1.html
This is the f90 code to compute the B_{EJ} or B_{MJ} between the single-nucleon initial and final states. Source code "SPEM.f90" Input file "SPEM_PARAM.inp" Source code "SPEM.f90" !//////////////////////////////////////////////////////////…
#--- Code in Python 3.6.9 or after:from __future__ import print_functionimport random num_iteration = 200 #--- Max. number of times to try.num_games = 9 #--- Max. number of games per one trial.win_prob = 0.55gem_start = 20000gem_cost_premi…
環境はWindows 10 with Python-3.10、まずはターミナル上で pip install pyautogui と打ってPyAutoGUIというライブラリーを取得。その後は例えば以下のようなプログラムが動くようになる。 --- import pyautogui pyautogui.moveTo(200,200,1)pyautogui.click…
※2023年5月24日加筆。 新しい研究室に移ったので、またやってみた。ただし今回は、まず支給されたWindows11-PCにwsl-Ubuntuをインスコして、そこに実装。 実際に実行したコマンド全文 まずはOSのバージョンを確認。cat proc/version --> check the OS versio…
Windows Subsystem for Linux (wsl)でUbuntuを入れたはいいが、いざUbuntuを起動したら、どのディレクトリに居るのかが判らなかったときの忘備録。 (1)WSL-Ubuntu起動。 (2)"explorer.exe ."と入力。最後のドットも忘れずに。
MTGにおいて、マリガン判断は最も(運ではなく)実力によって勝敗をコントロールできる部分の一つでしょう。すべてのMTGプレイヤーはマリガン判断に迷うもの。しかし実際のところ、自分のキープ基準に対して、マリガンするべき割合の適正値を計算して知るの…
ずいぶん昔にお遊びで組んだコードとノートを発掘した。せっかくなので公開。 ソースコード↓(Fortran 90) ******************************** program MAIN !PROGRAM to integrate the complex function on the closed-circle contour. implicit none integ…