Skip to content

Instantly share code, notes, and snippets.

@jinhoyim
jinhoyim / index.html
Last active August 25, 2022 14:11
js delegation sample
<!DOCTYPE html>
<html>
<head>
<title>Parcel Sandbox</title>
<meta charset="UTF-8" />
<script defer src="src/index.js"><script>
</head>
<body>
<div id="app">
<table id="table">
@jinhoyim
jinhoyim / docker-compose.yml
Last active January 4, 2021 15:14
docker-compose for SqlServer(MSSQL)
version: '3.9'
services:
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
hostname: mssql
ports:
- "1433:1433"
environment:
- ACCEPT_EULA=Y
@jinhoyim
jinhoyim / .env
Last active November 8, 2020 12:40
docker-compose for postgres with kr locale
DB_USER=user_id
DB_PASSWORD=password
DB_NAME=db_name
@jinhoyim
jinhoyim / box-shadow.html
Created August 27, 2019 08:17 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@jinhoyim
jinhoyim / 99-logstash.conf
Created June 28, 2019 06:38 — forked from VerosK/99-logstash.conf
Forward rsyslog to ELK stack
# Put this file to /etc/rsyslog.d as 99-logstash.con
#
# Make spool directory -p /var/spool/rsyslog when needed
#
# Change last address
# $WorkDirectory /var/spool/rsyslog # use this if you don't like default /var/lib/rsyslog
$ActionQueueFileName logstash # unique name prefix for spool files
$ActionQueueMaxDiskSpace 1g # 1gb limit on log queue
@jinhoyim
jinhoyim / README.md
Created June 7, 2019 07:45 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service

[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
@jinhoyim
jinhoyim / target.xml
Created May 8, 2019 05:10 — forked from sliekens/target.xml
A list of all <Target /> tags that ship with MSBuild / Visual Studio
C:\Program Files (x86)\MSBuild\12.0\Bin\Microsoft.Common.CurrentVersion.targets
<Target Name="_CheckForInvalidConfigurationAndPlatform"></Target>
<Target Name="Build" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(BuildDependsOn)" Returns="$(TargetPath)" />
<Target Name="BeforeBuild" />
<Target Name="AfterBuild" />
<Target Name="CoreBuild" DependsOnTargets="$(CoreBuildDependsOn)"></Target>
<Target Name="Rebuild" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(RebuildDependsOn)" Returns="$(TargetPath)" />
<Target Name="BeforeRebuild" />
<Target Name="AfterRebuild" />
<Target Name="BuildGenerateSources" DependsOnTargets="BuildGenerateSourcesTraverse;$(BuildGenerateSourcesAction)" />
@jinhoyim
jinhoyim / index.html
Created February 17, 2019 16:09
한 붓 그리기 S80-Day1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<style>
.block {
width: 80px;
@jinhoyim
jinhoyim / Renderer.js
Created November 13, 2018 16:52
s79-day1
const Renderer = class {
async render(data) {
if (!(data instanceof Data)) throw 'invalid data type';
const [title, header, items] = await data.getData();
this._title = title;
this._header = header;
this._items = items;
this._render();
}
_render() {
@jinhoyim
jinhoyim / todo.js
Created September 30, 2018 13:48
s78-day5
const err = message => {
throw message;
};
const el = el => document.createElement(el);
const Task = class {
constructor(title) {
this.title = title;
this.isComplete = false;