Skip to content

Instantly share code, notes, and snippets.

@shlee322
shlee322 / check_password.js
Created February 17, 2015 04:28
개인정보의 기술적·관리적 보호조치 기준에 따른 비밀번호 작성 규칙 체크 함수
function check_password(pwd) {
// Copyright (c) 2015 Lee Sahghyuck <shlee322@elab.kr>
// MIT License (http://opensource.org/licenses/mit-license.php)
// Author : Lee Sahghyuck <shlee322@elab.kr>
// Date : 2015.02.17
var char_type = 0;
if (/[a-z]/.test(pwd)) char_type = char_type + 1;
if (/[A-Z]/.test(pwd)) char_type = char_type + 1;
if (/[0-9]/.test(pwd)) char_type = char_type + 1;
@kanghyojun
kanghyojun / nimam.py
Last active December 26, 2015 13:29
# -*- coding: utf-8 -*-
import sys;print u"%s \nA: 그만하자.\nB:응." % "\n".join(map(lambda x: u"%s %s 내 맘도 몰라주는 바보!" % (("A:" if x%2==0 else "B:"), u"".join(map(lambda y: u"%s 을 모르는 " % (u"내" if y%2==0 else u"네"), xrange(x, 2*x)))), xrange(0, int(sys.argv[1]))))