Skip to content

Instantly share code, notes, and snippets.

var request = require("request");
request('https://slack.com/api/chat.postMessage?'+
'token=token&channel=C024R44D8&text='+
encodeURIComponent('모닝모닝')+
'&as_user=true');
@scarfunk
scarfunk / test.js
Created June 23, 2017 08:19
test created by scarfunk - https://repl.it/Iyv4/0
test
<!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">
@scarfunk
scarfunk / git-up.sh
Last active July 2, 2024 08:15 — forked from 0x-2a/git-up.sh
Replacement for Git-Up ruby gem
# 1) user root(~/) 에 해당 파일 놓는다.
# 2) ~/.gitconfig 에 아래를 추가한다
# [alias]
# up = !zsh ~/git-up.sh
#!/bin/zsh
# Add the following to your ~/.gitconfig
#
# 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