Skip to content

Instantly share code, notes, and snippets.

View KennethanCeyer's full-sized avatar
🤣
Making freaking awesome stuff

Sungmin Han KennethanCeyer

🤣
Making freaking awesome stuff
View GitHub Profile
@KennethanCeyer
KennethanCeyer / setting_zsh.sh
Created February 3, 2017 16:51
setting zsh to default shell
# Find zsh current path.
which zsh
# > /usr/local/bin/zsh
# Change shell to zsh.
# Do not use this command line with sudo.
chsh -s /usr/local/bin/zsh
@KennethanCeyer
KennethanCeyer / install_oh_my_zsh_from_curl.sh
Created February 3, 2017 17:25
Installation oh my zsh from curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@KennethanCeyer
KennethanCeyer / edit_zshrc_with_vi.sh
Created February 3, 2017 17:28
Edit zshrc with vi editor.
vi ~/.zshrc
@KennethanCeyer
KennethanCeyer / open_zshrc_on_mac.sh
Created February 3, 2017 17:29
Open zshrc file to note on Mac
open ~/.zshrc
@KennethanCeyer
KennethanCeyer / .zshrc
Created February 3, 2017 17:30
zshrc configuration file.
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@KennethanCeyer
KennethanCeyer / delete_query.sql
Last active February 17, 2017 06:25
MySQL_CAST_ISSUE When using in `where` clause of delete.
DELETE
FROM `data_tbl_0`
WHERE
CAST(`col_37` AS DECIMAL(15, 6)) = 0 AND
ISNULL(`col_37`) <> TRUE
;
# The error will be occured.
# @ERROR Message: '(1366) Incorrect DECIMAL value: '0' for column '' at row -1
@KennethanCeyer
KennethanCeyer / main.py
Created March 4, 2017 20:13
Python module definition
from math import sum
print(sum(1, 2))
@KennethanCeyer
KennethanCeyer / main.rb
Created March 4, 2017 20:25
Ruby module definition
require './math'
puts Math.sum(1, 2)
@KennethanCeyer
KennethanCeyer / main.js
Last active March 4, 2017 20:40
Node.js module definition
var math = require('./math');
console.log(math.sum(1, 2));
@KennethanCeyer
KennethanCeyer / index.html
Created March 4, 2017 20:43
Javascript like-module definition.
<script src="math.js"></script>
<script src="main.js"></script>