Skip to content

Instantly share code, notes, and snippets.

View rk76feWF's full-sized avatar

FUKUMOTO Yuki rk76feWF

View GitHub Profile
@rk76feWF
rk76feWF / docker-compose.yml
Created March 15, 2021 12:47
PythonのDocker環境を作成する
version: '3'
services:
app:
image: python:latest
volumes:
- ./:/var/www/html
working_dir: /var/www/html
tty: true
@rk76feWF
rk76feWF / docker-compose.yml
Created March 18, 2021 17:25
Nginxの環境をDockerでサクッと実装
version: '3'
services:
nginx:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./public:/usr/share/nginx/html
working_dir: /usr/share/nginx/html
tty: true
@rk76feWF
rk76feWF / main.c
Last active November 26, 2021 14:47
PWM1~4(PLL ON)
#include <xc.h>
#include "config.h"
#define FCY 16000000
#include <libpic30.h>
#include <math.h>
void setup() {
OSCCON = 0x0000;
CLKDIV = 0x0000;
AD1PCFG = 0xffff;
@rk76feWF
rk76feWF / config.h
Created November 21, 2021 06:30
pic24fj64gb002-config
/*
* File: config.h
* Author: fukumotoyuki
*
* Created on 2021/11/21, 15:30
*/
#ifndef CONFIG_H
#define CONFIG_H
@rk76feWF
rk76feWF / main.c
Last active March 31, 2022 15:14
4輪オムニベクトル計算
// ----------
// created: FUKUMOTO Yuki
// date: 2021/12/09 ~ 2021/12/25
// ----------
#include <stdio.h>
#include <math.h>
typedef struct{
double m1power;
double m2power;
@rk76feWF
rk76feWF / main.py
Last active January 26, 2022 15:30
1328_assignment11
# 学生番号: 1328
# 氏名: 福本 悠貴
# レベル: 3
!pip install japanize-matplotlib
import pandas as pd
import japanize_matplotlib
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
@rk76feWF
rk76feWF / main.py
Last active February 1, 2022 14:21
たぐちのやつの修正
import pandas as pd
import numpy as np
import folium
import statistics
import openpyxl
#入力データ設定
prefix1 = "https://www.opendata.metro.tokyo.lg.jp/suisyoudataset/" # 東京都
input_csv1 = prefix1 + "130001_public_wireless_lan.csv"
prefix2 = "http://www.city.shinjuku.lg.jp/content/" # 新宿区
@rk76feWF
rk76feWF / main.py
Created February 9, 2022 15:49
prokiso-final-nino
!pip install japanize-matplotlib
import pandas as pd
import japanize_matplotlib
import matplotlib.pyplot as plt
input_csv = "https://www.e-stat.go.jp/stat-search/file-download?statInfId=000031524010&fileKind=1"
df = pd.read_csv(input_csv, encoding="shift-jis")
year = int(input("年を入力してね~~~~~: "))
@rk76feWF
rk76feWF / config.h
Last active June 15, 2022 13:15
Lチカ
#ifndef CONFIG_H
#define CONFIG_H
// PIC24FJ64GB002 Configuration Bit Settings
// 'C' source line config statements
// CONFIG4
#pragma config DSWDTPS = DSWDTPSF // DSWDT Postscale Select (1:2,147,483,648 (25.7 days))
#pragma config DSWDTOSC = LPRC // Deep Sleep Watchdog Timer Oscillator Select (DSWDT uses Low Power RC Oscillator (LPRC))
#pragma config RTCOSC = SOSC // RTCC Reference Oscillator Select (RTCC uses Secondary Oscillator (SOSC))
@rk76feWF
rk76feWF / .zshrc
Last active July 8, 2022 15:10
dotfiles(一旦)
alias ls='ls -GF'
alias ll='ls -GF -l'
alias grep='grep --color=auto'
alias ..='cd ..'
alias vim='nvim'
alias x='exit'
alias g++='g++-11'
alias pip='pip3'
alias g='git'