Skip to content

Instantly share code, notes, and snippets.

yield all(items.map(item => {
return put(changeAction(item));
}));
import { match } from "react-router-dom";
import * as H from "history";
interface TOwnProps {
history: H.History;
match: match<{ termsName: string }>;
}
git fetch --prune --prune-tags origin
앱버전은 tag 로 관리한다.
git clone --branch v0.0.4 https:xxxxx.git
nvm alias default 10.15.3
nvm use default
@ace4gi
ace4gi / nw-js-cookies.js
Last active October 11, 2019 01:52 — forked from adriancooney/nw-js-cookies.js
Quick snippet to display cookie in NW.js (node-webkit) in a sweet console table.
/**
모든 쿠키 확인
*/
require("nw.gui").Window.get().cookies.getAll({}, console.table.bind(console));
/**
쿠키 값 수정
*/
nw.Window.get().cookies.set({
url: "https://aaa",
@ace4gi
ace4gi / package.json - npm prune
Created October 1, 2015 02:03
package.json에 없는 모듈 삭제하기
"scripts": {
"preinstall": "npm prune"
}
@ace4gi
ace4gi / gist:cdaa1c13e04f7e31337d
Last active May 26, 2016 01:45
require.s.contexts._.defined
require.s.contexts._.defined
require.s.contexts.prime.defined
@ace4gi
ace4gi / gist:e73eb923e359989b6bf9
Last active August 29, 2015 14:23
spring - controller - RequestMapping
@Login
@RequestMapping(value = "/joinComplete", method = GET)
public ModelAndView joinComplete(ModelAndView mav) {
mav.addObject("controller", "joinComplete")
.setViewName("/join/complete");
return mav;
}
@ace4gi
ace4gi / gist:15b6854c2c30b5d57c29
Created December 7, 2014 11:11
express - cors
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
});