Skip to content

Instantly share code, notes, and snippets.

View genzouw's full-sized avatar
🦎
slow life

Toshiaki Wakabayashi genzouw

🦎
slow life
View GitHub Profile
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o noclobber
/bin/bash -c "$(
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh
)"
brew install brew-cask-completion
@genzouw
genzouw / vpn
Last active May 13, 2020 12:55
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o noclobber
# How to use this script.
# Connect :
# - case1) vpn your_vpn_name
# - case2) DEFAULT_VPN_NAME=your_vpn_name vpn
# - case3) export DEFAULT_VPN_NAME=your_vpn_name; vpn
@genzouw
genzouw / css-tags.markdown
Last active August 22, 2019 23:49
CSS tags

CSS tags

These are created with CSS only. However, the result is pretty limited if you want to take it any further with transitions and stuff.

To do

  • Make the left side pointy instead of the right
  • Toy around with transitions and other CSS3 stuff
  • Test cross browser :>
@genzouw
genzouw / MainActivity.java
Created March 30, 2018 04:29
Androidアプリケーション開発入門(ボタンの配置とイベントの設定) ref: https://qiita.com/genzouw/items/412b0c91ce9566586c7f
package com.genzouw.helloworld;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity {
@genzouw
genzouw / file0.sh
Last active March 22, 2017 03:48
Robocodeによるロボットバトル入門(環境構築編) ref: http://qiita.com/genzouw/items/08107d2d10f3c5436fc2
$ cd robocode-start/
# 結構時間がかかりますが、コーヒーでも飲みながら待つ
## 途中で何度かrobocodeのインストーラーがダイアログを表示しますので YES ボタンをクリックする
$ ./gradlew installRobocode
@genzouw
genzouw / file0.txt
Last active October 15, 2019 14:26
ER図を書くのに疲れたら ref: https://qiita.com/genzouw/items/23cd0119715403e6e110
$ echo '''\
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos7.1"
config.ssh.insert_key = false
config.vm.network "private_network", ip: "192.168.33.41"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
end
snippet blog
options head
prev_word '^'
## 環境
\`\`\`sh
$ uname -a
`system("uname -a")`
$ zsh --version
$ set -- `date '+%Y %m %d'`
$ year="$1"
$ month="$2"
$ day="$3"
$
$ echo $year
2013
$ echo $month
04
$ echo $day
@genzouw
genzouw / .vimrc
Created August 31, 2012 14:25
~/.vimrc
syntax on
" Bundle
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'mattn/zencoding-vim'
@genzouw
genzouw / griffon-installer.sh
Created August 30, 2012 00:23
griffon installer
#!/bin/bash
install_dir_home=/opt
version=
if [[ $# -eq 0 ]]; then
echo -n "Please input version(ex 1.0.1) :"
read version
else
version="${1}"
fi