Skip to content

Instantly share code, notes, and snippets.

@gasyoh
gasyoh / BrewBundle.md
Last active October 11, 2023 03:48
Brew Bundle

概要

HomeBrewの各種ライブラリを設定ファイルにて管理するやつHomeBrew Bundle

事前設定

HomeBrewのインストール /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

対象を全てインストール

$ brew bundle 以上

.for : if it is true
ANY → for item in $expr$:
.if : if it is true
ANY → if $expr$:
.ifn : if it is None
ANY → if $expr$ is None:
.ifnn : if it is not None
ANY → if $expr$ is not None:
.int : cast as int
ANY → int($expr$)
@gasyoh
gasyoh / file0.txt
Created January 18, 2018 05:38
fishでcondaの環境切替時にエラーが出るときの覚書 ref: https://qiita.com/gasyoh/items/65e4d10c4806bca017f9
$fish --version
fish, version 2.7.1
$conda --version
conda 4.4.7
@gasyoh
gasyoh / select_from_mysql.py
Created August 26, 2014 05:23
Database access to SQL Server and MySQL using Python
#pip install pymysql
import pymysql
import pymysql.cursors
data_config = { "host":'DATABASE_SERVERNAME', "port":3306, "user":'LOGIN_USERNME', "passwd":'PASSWORD', "db":'DATABASE_NAME',"charset":'utf8', "use_unicode":'true' }
select_sql= "select item_name,item_value from m_item"
result = []
@gasyoh
gasyoh / gist:6508638
Created September 10, 2013 12:22
EXCEL format. Time include mili-second. Excelでミリ秒まで表示するセルの書式設定。
yyyy/mm/dd hh:mm:ss.000