Skip to content

Instantly share code, notes, and snippets.

@myo-shi
myo-shi / .bash_profile
Created January 3, 2018 13:36 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@myo-shi
myo-shi / a
Created November 10, 2016 07:37
a
#!/bin/sh
CURRENT_MIN=`date '+%M'`
CURRENT_HOUR=`date '+%H'`
FIN_HOUR=18
FIN_MIN=60
min_diff=`printf '%02d' $((FIN_MIN - $CURRENT_MIN))`
if [ $min_diff -eq "0" ]; then
@myo-shi
myo-shi / chap-3.py
Last active September 18, 2016 16:17
入門 python3
# coding: utf-8
# 3-1. 誕生年から5歳までの年
years_list = [1991, 1992, 1993, 1994, 1995, 1996]
# 3-2. 3歳の誕生日
print years_list[3]
# 3-3. もっとも年長の年
print years_list[-1]