Skip to content

Instantly share code, notes, and snippets.

View tamamu's full-sized avatar
😇
living

Eddie tamamu

😇
living
View GitHub Profile
@tamamu
tamamu / nmoku.js
Created May 1, 2020 13:50
N-moku written in JavaScript (p5.js)
const Player = {
NONE: 0,
RED: 1,
BLUE: 2,
}
let global = {
size: {x: 5, y: 5},
left: 640/2 - 300/2,
top: 10,
@tamamu
tamamu / PKGBUILD
Created November 27, 2019 07:41
Godot_v3.2_beta2 for ArchLinux
# Maintainer: Eddie <tamamu dot 1r1s at gmail dot com>
# Contributor: Ivan Fonseca <[email protected]>
pkgname=godot-beta-bin
pkgver=3.2_beta2
pkgrel=1
pkgdesc="The latest official beta release of the Godot game engine"
url="https://godotengine.org"
license=("MIT")
arch=("i686" "x86_64")
@tamamu
tamamu / RESUME.md
Last active November 8, 2019 12:26

プロフィール

  • 23歳
  • 情報学系大学院生M1(21卒予定)
  • 岩手在住

研究

  • 時系列クラス分類
  • A Proposal for Shape Aware Feature Extraction for Time Series Classification
@tamamu
tamamu / reactive.js
Last active January 7, 2021 16:50
Reactive Element
const createSVGElement = tag => document.createElementNS('http://www.w3.org/2000/svg', tag)
const createHTMLElement = tag => document.createElement(tag)
const svgTags = [
"a",
"altGlyph",
"altGlyphDef",
"altGlyphItem",
"animate",
"animateColor",
@tamamu
tamamu / astar.cpp
Created June 30, 2019 11:57
A* Algorithm in C++
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<vector<ll> > matrix;
map<ll, float> cost2d(const matrix &conn, const ll goal) {
ll h = conn.size();
ll w = conn[0].size();
float x = goal % w;
@tamamu
tamamu / solution.py
Last active May 6, 2019 10:50
板取り計画
import matplotlib.pyplot as plt
import matplotlib.patches as patches
class Plane:
def __init__(self, width, height):
self.width = width
self.height = height
self.spaces = [(0, 0, width, height)]
self.used = []
@tamamu
tamamu / lib.rs
Created April 30, 2019 12:37
Cross product with Levi-Civita symbol in Rust
/// Levi-Civita symbol
///
/// ```
/// use levicivita::eps;
/// let v = vec![1, 2, 3];
/// assert_eq!(eps(v), 1);
/// let v = vec![1, 3, 2];
/// assert_eq!(eps(v), -1);
/// let v = vec![1, 1, 2];
/// assert_eq!(eps(v), 0);
@tamamu
tamamu / check.sh
Last active April 10, 2019 11:35
Check testcases for AtCoder
#/bin/sh
cd `dirname $0`
cnt=0
ac=0
if [ -z "$1" ]; then
echo "Not set executable file"
else
echo "Running exec $1:"
fi
@tamamu
tamamu / cpp.snippets
Last active April 5, 2019 17:35
My UltiSnips for C++
snippet atcoder "Template for AtCoder" b
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
$1
return 0;
}
@tamamu
tamamu / alc.vim
Created April 2, 2019 14:26
Look the inputed word up in Eijiro on the WEB from Vim
"
" Required:
" $ pip3 install bs4
"
function! s:alc()
python3 << EOF
import os
import tempfile