Skip to content

Instantly share code, notes, and snippets.

git config --global core.autocrlf true
@cackyhk
cackyhk / hangulFirstCompare.js
Created January 5, 2017 07:04 — forked from flyskyne/hangulFirstCompare.js
한글부터 정렬
function hangulFirstCompare(a, b) {
function addOrderPrefix(s) {
var code = s.toLowerCase().charCodeAt(0);
var prefix;
// 한글 AC00—D7AF
if (0xac00 <= code && code <= 0xd7af) prefix = '1';
// 한글 자모 3130—318F
else if (0x3130 <= code && code <= 0x318f) prefix = '2';
// 영어 소문자 0061-007A
@cackyhk
cackyhk / KoreanUtil.java
Created August 4, 2016 12:40 — forked from ParkSangGwon/KoreanUtil.java
안드로이드,JAVA에서 단어에 따라서 '을/를', '이/가','은/는' 구분하기
public class KoreanUtil {
public static final String getComleteWordByJongsung(String name, String firstValue, String secondValue) {
char lastName = name.charAt(name.length() - 1);
// 한글의 제일 처음과 끝의 범위밖일 경우는 오류
if (lastName < 0xAC00 || lastName > 0xD7A3) {
return name;
}
@cackyhk
cackyhk / README.md
Created April 8, 2016 09:34 — forked from allieus/README.md
네이버 블로그 크롤링

네이버 블로그 크롤링

  • 파이썬3 에서 동작합니다.
  • requests, beautifulsoup4 라이브러리가 필요합니다.
pip install requests beautifulsoup4

AskDjango