Skip to content

Instantly share code, notes, and snippets.

View ppeeou's full-sized avatar
๐ŸŽฏ
Focusing

hyunwoo jo ppeeou

๐ŸŽฏ
Focusing
View GitHub Profile
@ppeeou
ppeeou / html tooltip
Last active July 20, 2017 12:29
html tooltip
/* css */
/* Start Body */
body{
margin: auto;
padding: 20px 50px;
}
@ppeeou
ppeeou / html Accordion menu
Created July 21, 2017 09:11
html Accordion menu
/* CSS */
$maincolor: #8aa8bd;
$accent: #A8CC96;
.expand {
float: right;
display: inline;
transition: all .2s ease;
-webkit-transition: all .2s ease;
margin: 0 10px;
@ppeeou
ppeeou / webpack react
Created July 21, 2017 17:41
webpack react
/* webpack js */
var webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
path: __dirname + '/public/',
filename: 'bundle.js'
@ppeeou
ppeeou / html marquee
Created August 3, 2017 10:51
html marquee
html
<div className="marquee">
<div>
<span> {summary}</span>
<span> {summary}</span>
</div>
</div>
css
@ppeeou
ppeeou / websocket
Created August 7, 2017 06:48
websocket
(function (nameSpace) {
function createMethod(method, options, stateCallback) {
var that = this;
this[method] = function () {
if (stateCallback && stateCallback.apply) {
stateCallback(method);
}
if (options[method] && options[method].apply) {
//CasperJS ๊ฐ์ฒด ์ƒ์„ฑ
var express = require('express');
var app = express();
var casper_nodejs = require('casper-nodejs');
app.get('/auth/github/callback', (req, res, next) => {
console.log('server callback ok')
res.json('callback')
})
app.get('/', (req, res, next) => {
@ppeeou
ppeeou / debounce
Created February 9, 2018 05:28
debounce
var _ = {};
var restArgs = function (func, startIndex) {
startIndex = startIndex == null ? func.length - 1 : +startIndex;
return function () {
var length = Math.max(arguments.length - startIndex, 0),
rest = Array(length),
index = 0;
for (; index < length; index++) {
rest[index] = arguments[index + startIndex];
{
// https://github.com/Microsoft/TypeScript/tree/master/tests/cases/compiler
// https://github.com/Microsoft/TypeScript/tree/master/tests/baselines/reference
// ๊ณต์‹๋ฌธ์„œ ์™ธ์—๋„ ์œ„ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ๋ฅผ ์ฐธ๊ณ ์‹œ ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค.
"compilerOptions": {
"allowJs": false, // ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํŒŒ์ผ ์ปดํŒŒ์ผ ํ—ˆ์šฉ ์—ฌ๋ถ€.
// import add from './add.js' ์™€ ๊ฐ™์ด jsํŒŒ์ผ import ํ—ˆ์šฉ
"allowSyntheticDefaultImports": false, // export default ๋ฅผ export ํ•œ ๊ฐ’๋“ค์„ ๊ฐ€์ง€๋Š” ๊ฐ์ฒด๋กœ ์„ค์ •
@ppeeou
ppeeou / docker_cheat.md
Created December 23, 2018 02:50 — forked from nacyot/docker_cheat.md
๋„์ปค(Docker) ์น˜ํŠธ ์‹œํŠธ

Docker ์น˜ํŠธ ์‹œํŠธ

ํ•œ๊ตญ์–ด ๋ฒˆ์—ญ(์ดˆ๋ฒŒ) : nacyot

์™œ Docker๋ฅผ ์‚ฌ์šฉํ•ด์•ผํ•˜๋Š”๊ฐ€?

Why Should I Care (For Developers)

"๋‚˜์—๊ฒŒ Docker์˜ ๋งค๋ ฅ์€ ๊ฐ„๋‹จํžˆ ๊ฒฉ๋ฆฌ๋œ ํ™˜๊ฒฝ์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒƒ๊ณผ, ๊ทธ๋Ÿฌํ•œ ํ™˜๊ฒฝ์„ ์žฌ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ์ ์ด๋‹ค."๋Ÿฐํƒ€์ž„ ํ™˜๊ฒฝ์„ ํ•œ ๋ฒˆ ๋งŒ๋“ค์–ด ํŒจํ‚ค์ง€๋กœ ๋งŒ๋“ค๋ฉด, ์ด ํŒจํ‚ค์ง€๋ฅผ ๋‹ค๋ฅธ ์–ด๋–ค ๋จธ์‹ ์—์„œ๋„ ๋‹ค์‹œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. ๋˜ํ•œ ์—ฌ๊ธฐ์„œ ์‹คํ–‰๋˜๋Š” ๋ชจ๋“  ๊ฒƒ์€ ๋งˆ์น˜ ๊ฐ€์ƒ๋จธ์‹ ๊ณผ ๊ฐ™์ด ํ˜ธ์ŠคํŠธ๋กœ๋ถ€ํ„ฐ ๊ฒฉ๋ฆฌ๋˜์–ด์žˆ๋‹ค. ๋ฌด์—‡๋ณด๋‹ค๋„ ์ด๋Ÿฐ ๋ชจ๋“  ์ผ๋“ค์ด ๋น ๋ฅด๊ณ  ๊ฐ„๋‹จํžˆ ๊ฐ€๋Šฅํ•˜๋‹ค.

```
sysadminctl -addUser testuser -fullName "hello world" -password testuser -hint testuser
```