Skip to content

Instantly share code, notes, and snippets.

View yangniao23's full-sized avatar

Yushima Kouki yangniao23

View GitHub Profile
@yangniao23
yangniao23 / config
Created April 19, 2024 05:37
i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@yangniao23
yangniao23 / gist:dc199c49196ca37c401daa476c751359
Created April 19, 2024 03:39
dbus 経由で fcitx5 でアクティブな入力メソッドを取得する
dbus-send --print-reply=literal --session --dest=org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.CurrentInputMethod
@yangniao23
yangniao23 / Makefile
Created January 15, 2024 02:06
リバーシ Makefile メモ
NAME = reversi
TARGET = $(NAME).exe
SRCS = cpu.c hashmap.c mapio.c mapmanager.c tools.c $(NAME).c
OBJS = $(SRCS:.c=.o)
CC = gcc
CFLAGS = -Wall -O3 -march=native
RM = del /F /Q
all: $(TARGET)
@yangniao23
yangniao23 / tph-info.cgi
Last active January 26, 2023 03:17
実験のやつ
#!/usr/bin/python3
import board
from adafruit_bme280 import basic as bme280
import requests
def get_defaultpressure():
return 1013.25
url = 'https://api.openweathermap.org/data/2.5/weather'
payload = {'lat': '37.432713',
@yangniao23
yangniao23 / README.md
Last active October 30, 2023 06:51
replacelist のものを統合して消す

Usage

置換したい列を headers から探して,headers の行番号(元データの列番号-1)を入力する. replacelist には配列を入れて,[0] に挿入先,[1] に追加データの位置を指定する.

前から順に実行するので,ある行番号で表されるものを追加データとして指定した後に挿入先として指定すると不具合が発生してしまう.

ex: 1, 3, 5 をひとつにまとめるとき, NG: [[1, 3], [3, 5]] OK: [[1, 3], [1, 5]]

@yangniao23
yangniao23 / config.py
Created October 25, 2022 17:52
xkeysnail で skk 有効時のみ SandS を効かせる & Firefox のタブ切り替えを Ctrl+[1-9] で行わせるルール ${USER}や${UID}は要置換
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import subprocess
from xkeysnail.transform import *
# something remap
def is_enable_ime(_):
command = "sudo -u ${USER} DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/${UID}/bus' dbus-send --print-reply=literal --session --dest=org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.CurrentInputMethod"

解体見積もりプレラボ

プレラボの目的

建物の解体にかかる見積もりは現場担当者が手動で算出していていました. しかし,それは時間もかかり誤差も大きいものでした. そこで,本プレラボでは統計やプログラミングの知識を用いて見積もりの効率化&最適化を実現ことを目的としました.

作ったソフトの解説

本プレラボでは見積書の作成を行う Excel ファイルと,構造・坪数から見積もり金額を表示する Web アプリの開発を実施しました.

/Program Files (x86)/ASUS/GPU\ TweakII/Win7/IOMap64.sys
/Program Files (x86)/ASUS/GPU\ TweakII/IOMap64.sys
/Windows/System32/drivers/IOMap64.sys
@yangniao23
yangniao23 / 個人課題1-5.c
Created May 16, 2022 15:46
M3 の皆さんに公開 入力部とか適宜いじってね
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int min, max, temp;
char buf[255], err=0;
printf("最低温度: ");
if (fgets(buf, sizeof(buf), stdin) != NULL) {
min = atoi(buf);
@yangniao23
yangniao23 / quiz.c
Last active October 23, 2021 01:05
学園祭のやつをリファクタリング
#include <stdio.h>
#include <stdbool.h>
#define STATEMENT_LENGTH 127
#define CHOICES_ELEMENTS 4
#define CHOICES_LENGTH 63
#define MAX_POSSIBILITY_ANSWER 10
#define MIN(a, b) ((a) > (b) ? b : a)