This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# master > stage > dev 체크아웃+머지+푸쉬하기 | |
#!/bin/sh | |
set -e | |
# Function to check the status of the last command and exit if it failed | |
check_status() { | |
if [ $? -ne 0 ]; then | |
echo "Error: $1" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) user root(~/) 에 해당 파일 놓는다. | |
# 2) ~/.gitconfig 에 아래를 추가한다 | |
# [alias] | |
# up = !zsh ~/git-up.sh | |
#!/bin/zsh | |
# Add the following to your ~/.gitconfig | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require("request"); | |
request('https://slack.com/api/chat.postMessage?'+ | |
'token=token&channel=C024R44D8&text='+ | |
encodeURIComponent('모닝모닝')+ | |
'&as_user=true'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//app.js | |
import angular from 'angular'; | |
//1) sub 모듈 생성(모듈에서 라우터 사용). 하지만 ui.router 모듈이 없으므로 fail | |
angular.module('app.sub', ['ui.router']); | |
//2) 모듈생성만 하고, sub.js 에서 인젝션한다면. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
// A Chain adding function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function zero(exp) { return numberExpression(0, exp); } | |
function one(exp) { return numberExpression(1, exp); } | |
function two(exp) { return numberExpression(2, exp); } | |
function three(exp) { return numberExpression(3, exp); } | |
function four(exp) { return numberExpression(4, exp); } | |
function five(exp) { return numberExpression(5, exp); } | |
function six(exp) { return numberExpression(6, exp); } | |
function seven(exp) { return numberExpression(7, exp); } | |
function eight(exp) { return numberExpression(8, exp); } | |
function nine(exp) { return numberExpression(9, exp); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
function chained(functions) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for folder color | |
export TERM="xterm-color" | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
# maven | |
export M2_HOME=/usr/local/apache-maven-3.2.3 | |
export M2=$M2_HOME/bin | |
export PATH=$M2:$PATH |
NewerOlder