Skip to content

Instantly share code, notes, and snippets.

@Inazuma110
Inazuma110 / init.vim
Created September 11, 2019 01:14
init.vim sample
" reset augroup
augroup MyAutoCmd
autocmd!
augroup END
if &compatible
set nocompatible
endif
" install dein.vim
@Inazuma110
Inazuma110 / main.py
Last active September 2, 2019 04:51
Bingo
import random
bingo = [i for i in range(1, 76)]
used = set([])
while len(bingo) > 0:
c = input()
if c == 'd':
print(used)
elif c == 'q':
@Inazuma110
Inazuma110 / A_func.cpp
Last active December 4, 2018 06:06
XMLPro C++Part3 講義用
#include <iostream>
using namespace std;
// int my_max(int a, int b){
// if(a > b) return a;
// else return b;
// // return (a > b) ? a : b;
// }
int main(){
@Inazuma110
Inazuma110 / classical_cipher.py
Last active October 19, 2018 08:23
シーザー暗号 シフト数3
cipher = 'fsdz{Fdhvdu_flskhu_lv_fodvvlfdo_flskhu}'
flag = ''
for asc in cipher:
asc = ord(asc)
if 64 < asc < 91 or 96 < asc < 123:
flag += chr(asc-3)
else:
flag += chr(asc)
@Inazuma110
Inazuma110 / main.py
Created September 23, 2018 06:12
XOR 演算
from sklearn import svm
xor_date = [
[0, 0, 0],
[0, 1, 1],
[1, 0, 1],
[1, 1, 0]]
data = []
label = []