Skip to content

Instantly share code, notes, and snippets.

@garam-park
garam-park / like-mac.ahk
Created April 15, 2025 13:55
autohotkey window를 mack 처럼
#Requires AutoHotkey v2.0
; 번호키
!1::^1 ; Alt+1 to Ctrl+1
!2::^2 ; Alt+2 to Ctrl+2
!3::^3 ; Alt+3 to Ctrl+3
!4::^4 ; Alt+4 to Ctrl+4
!5::^5 ; Alt+5 to Ctrl+5
!6::^6 ; Alt+6 to Ctrl+6
!7::^7 ; Alt+7 to Ctrl+7
@garam-park
garam-park / log4js.example.json
Created November 23, 2020 00:01
log4js 예제, logLevelFilter 사용하는 log4js 예제
{
"appenders": {
"app": {
"type": "dateFile",
"filename": "logs/foo/app.log",
"pattern": "-yyyy-MM-dd"
},
"foo": {
"type": "dateFile",
"filename": "logs/foo/foo.log",
@garam-park
garam-park / gist:95ec49af0001c26de76b738b4344767c
Created June 16, 2020 00:54
디렉토리에 있는 js 파일 맵 활용
var fs = require('fs');
var path = require('path');
const basename = path.basename(__filename);
// __dirname
console.log(`__dirname : ${__dirname}`);
console.log(`basename : ${basename}`);
/**
* 뎁스는 하나만 스캔함
@garam-park
garam-park / modern_js.md
Created May 8, 2020 02:21 — forked from gaearon/modern_js.md
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
const express = require('express');
const app = express();
// Application
app.get('/', function(req, res) {
if (process.env.NODE_ENV === 'development') {
for (var key in require.cache) {
delete require.cache[key];
}
}