Skip to content

Instantly share code, notes, and snippets.

View kjunichi's full-sized avatar

Junichi Kajiwara kjunichi

View GitHub Profile
cannot import name '_check_savefig_extra_args' from 'matplotlib.backend_bases'
!pip uninstall -y matplotlib
!python -m pip install --upgrade pip
!pip install matplotlib

JuliaでWindowsでWin32APIを呼び出すをC++コードから実行

jl_eval_string("@ccall \"user32\".MessageBoxA(0::Int32, \"Hello, world!\"::Cstring,\"Hoge\"::Cstring,0x0040::Int32)::Int32");
#include <stdio.h>
#include <julia/julia.h>
#include <pthread.h>
JULIA_DEFINE_FAST_TLS
extern "C" double __stdcall c_func(int i);
extern "C" double __stdcall c_func(int i)
{

if文と関数の戻り値

foo() {
    return 0
}

foo2() {
    return 1
}
fbat=true
floop=true
i=0
if [ $fbat ]; then
echo "a0"
else
echo "a1"
fi
while $floop; do
# fi
@kjunichi
kjunichi / arrayAndIndex.c
Created December 18, 2023 07:11
配列の初期化状況とインデックスとインクリメントの関係の確認
// This file is a "Hello, world!" in C language by gcc for wandbox.
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int array[5];
int arrayB[5];
int i=0;
#include <stdio.h>
#include <string.h>
int main() {
char *test_str="ou=Groups,dc=lan_ab,dc=co,dc=jp:cn=jun:123";
char buf[1024];
char *tmpStr;
char param[10][1024];
int cnt;

シェルスクリプトでファイルを一行ごとに読み込む

#!/bin/sh

IFS_BACKUP=$IFS
IFS=$'\n'

i=0
for line in `cat fileRead.sh`

New PC Plan

AMD 5000シリーズ

チップセット

B550

AMD 7000シリーズ

Docker以外のコンテナ系

  • CRI

CRI

Container Runtime Interface

Link