Skip to content

Instantly share code, notes, and snippets.

View maekawatoshiki's full-sized avatar
🙃
Pursuing a master's degree

uint256_t maekawatoshiki

🙃
Pursuing a master's degree
View GitHub Profile
#include <cstdio>
#include <cstring>
#include <winsock2.h>
#include <ctime>
#include <iostream>
#include <string>
#pragma comment(lib, "ws2_32.lib")
using namespace std;
#define Years70 2208988800
@maekawatoshiki
maekawatoshiki / RpnCalculater.cpp
Last active August 29, 2015 14:14
Light_RPN_calc
#define _CALC_Calculator_B
#ifdef _CALC_Calculator_B
// C++ Libaries
#include <iostream>
#include <string>
#include <stack>
#include <vector>
#include <sstream>
#include <iomanip>
@maekawatoshiki
maekawatoshiki / EaD.cpp
Created February 3, 2015 09:00
Encrypt amd Decrypt
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
using namespace std;
char pass[1024] = "Password";
unsigned sb[12] = {
@maekawatoshiki
maekawatoshiki / gene.cpp
Last active August 29, 2015 14:14
Genetic_Algorithm
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
using namespace std;
#define MAX 20
#define MAX_S 0xFFFF
@maekawatoshiki
maekawatoshiki / Main.c
Last active March 20, 2019 13:43
Hello world! for Genetic Algorithm
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define I 15/***/
#define Q memcpy
#define PZ printf
int AG[I] [13];/**/
int C[13] ;;;;;;;;;;;;
int W[13] ;;;;;;;;;;;
@maekawatoshiki
maekawatoshiki / NN.cpp
Last active August 29, 2015 14:16
Neural Networks
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#define ARR_SZ 36//6x6ドットの文字
#define STD_SZ 9//学習回数
using namespace std;
struct nn
@maekawatoshiki
maekawatoshiki / NNhi.cpp
Created March 8, 2015 05:04
Hierarchical neural network
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <iostream>
using namespace std;
#define NUM_LEARN 20000 //学習の繰り返し回数
#define NUM_SAMPLE 4 //トレーニングデータのサンプル数(ここでは論理回路なので4個、学習1回の中でのループ回数)
#define NUM_INPUT 2 //入力層の数(論理回路の入力)
#define NUM_HIDDEN 5 //中間層の数(適当)
@maekawatoshiki
maekawatoshiki / main.cpp
Last active August 29, 2015 14:17
NeuralNetworks_Weather
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <iostream>
#include <unistd.h>
using namespace std;
#define NUM_LEARN 80000000
#define NUM_SAMPLE 310
#define NUM_INPUT 3
@maekawatoshiki
maekawatoshiki / likeeditor.cpp
Last active April 5, 2018 14:27
like editor
#include <iostream>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <termios.h>
#include <unistd.h>
using namespace std;
static struct termios t_orig;
void begin_getch(void)
@maekawatoshiki
maekawatoshiki / con.cpp
Last active August 29, 2015 14:18
Interpreter "CON"
/*
Interpreter "CON"
Using:
fizzbuzz.a :
i = 0
:loop
if i < 40
if i % 15 == 0
print "FizzBuzz"