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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
// type app struct { | |
// Name string |
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
id | name | age | |
---|---|---|---|
1 | koyo | 24 | |
2 | maimai | 23 | |
3 | tomozo | 20 |
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
DROP DATABASE `mick_sample`; | |
CREATE DATABASE IF NOT EXISTS `mick_sample` DEFAULT CHARACTER SET utf8mb4; | |
USE mick_sample; | |
CREATE TABLE IF NOT EXISTS `sisya` ( | |
sisya_code VARCHAR(191), | |
sisya_name VARCHAR(191), | |
PRIMARY KEY (sisya_code) | |
); |
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 random | |
hand = {0:"グー", 1:"チョキ", 2:"パー"} | |
judge = {0:"負け", 1:"あいこ", 2:"勝ち"} | |
direction = {0:"↑", 1:"→", 2:"↓", 3:"←"} | |
# じゃんけんをする | |
# 勝ち 2 | |
# あいこ 1 | |
# 負け 0 | |
def rock_paper_scissors(player_hand): |
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 flask import Flask, request, redirect, url_for | |
import mysql.connector | |
import numpy as np | |
import json | |
import datetime | |
from datetime import timedelta | |
import sys | |
# pip install python-dateutil | |
from dateutil.relativedelta import relativedelta |
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
// 構造体使用ver | |
import java.lang.Math; | |
public class Angle_average{ | |
public static void main(String[] args){ | |
final class vector{ | |
double x; | |
double y; |
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
/* | |
fft_conv_corr.cpp : 高速フーリエ変換、畳み込み和、自己相関を求めるプログラム | |
author : Koyo Miyamura | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <climits> | |
#include <iostream> |
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
/* | |
Viterbi.cpp : ビタビ複号を行うプログラム | |
author : Koyo Miyamura | |
*/ | |
#include <stdio.h> | |
#include <math.h> | |
#include <string.h> | |
// 確保する配列の長さ(とりあえず多めに) |
NewerOlder