Skip to content

Instantly share code, notes, and snippets.

View Kenta11's full-sized avatar

Kenta Arai Kenta11

View GitHub Profile
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
# Download directory
DOWNLOAD=~/Downloads/tree
# create a tree directory
mkdir tree
cd tree
@Kenta11
Kenta11 / myconstr.xdc
Last active May 9, 2020 10:56
XDC file for Vivado
# Original xdc file is https://github.com/Digilent/digilent-xdc/blob/master/Basys-3-Master.xdc
# Clock signal
set_property PACKAGE_PIN W5 [get_ports clk]
set_property IOSTANDARD LVCMOS33 [get_ports clk]
create_clock -add -name sys_clk_pin -period 10.00 -waveform {0 5} [get_ports clk]
# Buttons
set_property PACKAGE_PIN U18 [get_ports rst]
set_property IOSTANDARD LVCMOS33 [get_ports rst]
@Kenta11
Kenta11 / controler.v
Created May 9, 2020 10:52
VGA controler
// Copyright (c) 2020 Kenta Arai
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
@Kenta11
Kenta11 / uninstall.sh
Created March 3, 2020 02:45
Vim uninstaller for Ubuntu
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
echo "vim install" | sudo dpkg --set-selections
sudo apt remove --purge vim -y
@Kenta11
Kenta11 / install.sh
Last active June 6, 2020 06:29
Vim installer for Ubuntu
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
make clean; make distclean
./configure --with-features=huge \
--disable-darwin \
--disable-selinux \
--enable-fail-if-missing \
--enable-python3interp=dynamic \
--enable-cscope \
#!/usr/bin/env bash
# install tools
echo "========== installing tools =========="
sudo apt install texlive-luatex texlive-lang-cjk lmodern texlive-xetex texlive-math-extra nodejs npm -y
curl -sSL https://get.haskellstack.org/ | sh
# install pandoc
# last version(2018/11/13): 2.4
echo "========== installing pandoc =========="