Skip to content

Instantly share code, notes, and snippets.

@maze1230
maze1230 / env_constructor_mac.sh
Last active November 8, 2023 15:09
Env_constructor_mac.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew upgrade
brew tap homebrew/cask-fonts
brew install font-fira-code-nerd-font
brew install starship
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
#include <bits/stdc++.h>
using namespace std;
#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for(int64 i = 0;i < (n);i++)
#define FOR(i, a, b) for(int64 i = (a);i < (b);i++)
#define all(x) x.begin(),x.end()
#define fs first
#define sc second
#!/bin/bash
for i in ${@:3}
do
cp "template/lang/template."$2 $1"/"$i"."$2
done
@maze1230
maze1230 / .vimrc
Created September 12, 2015 11:00
.vimrc
set encoding=utf-8
scriptencoding utf-8
set nocompatible
set splitbelow
set splitright
set number
set cursorline
@maze1230
maze1230 / .zshrc
Created September 7, 2015 14:33
.zshrc
export EDITOR=vim
export LANG=ja_JP.UTF-8
setopt correct
setopt magic_equal_subst
setopt notify
autoload -U compinit; compinit
setopt auto_list
setopt auto_menu
@maze1230
maze1230 / create_printable_shellcode.cpp
Created June 5, 2015 09:31
create_printable_shellcode.cpp
#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <string>
#include <fstream>
#include <vector>
#include <random>
using namespace std;
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <sstream>
#include <chrono>
#include <wiringPi.h>
using namespace std;
@maze1230
maze1230 / lifegame.c
Last active January 1, 2016 23:39
ライフゲームC言語バージョン とりあえず読み込むファイルは1が生きてて0が死んでる
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define SIZE 20
void write_life(int life[][SIZE]){
int i,j;
int life_temp[SIZE][SIZE];
@maze1230
maze1230 / fraction_calc.c
Created December 17, 2012 11:35
分数の四則演算、ほぼ最終バージョン
#include <stdio.h>
#include <stdlib.h>
//分数
typedef struct{
int deno; //分母
int nume; //分子
}function_t;
//関数のプロトタイプ宣言