수상한 프로그래머/죽은 소스 살려내는 꾸르팁
-
IOS 앱 심사 거부 사유...Design Legal - Privacy - Data Collection and Storage수상한 프로그래머/죽은 소스 살려내는 꾸르팁 2020. 1. 10. 10:51
ios앱 개발후 App store에 올렸더니 reject 되었다. 사유는 아래와 같다. Guideline 2.1 - Information Needed We have started the review of your app, but we are not able to continue because we need additional information about your app. Next Steps To help us proceed with the review of your app, please review the following questions and provide as much detailed information as you can. - Who is the target audience? - How d..
-
오라클 특정 조건 문자 정렬 방법수상한 프로그래머/죽은 소스 살려내는 꾸르팁 2020. 1. 2. 17:13
오라클 쿼리문에서 Order by로 정렬할때 특정 조건일때만 정렬을 다르게 하고 싶을때는 ORDER BY CASE WHEN 조건 THEN 결과1 ELSE 결과2 END 를 쓰면 된다. 만약 최신글로 조회를 하는데 사용자가 sansanji인 글은 가장 상단으로 정렬하고 싶다!! 이렇게 쓰면 된다. ORDER BY CASE WHEN USER_NAME IN ('sansanji') THEN '9999/12/31 23:59' ELSE ADD_DATE END DESC * ADD_DATE가 문자열일 경우임
-
자바스크립트 배열 특정 요소 삭제 javascript array delete object수상한 프로그래머/죽은 소스 살려내는 꾸르팁 2019. 10. 2. 16:03
지우고 싶은 원소의 인덱스를 찾아서 splice 함수를 통해서 지운다. let a = [1, 2, 3, 4]; const idx = a.indexOf(3); a.splice(idx, 1); 이렇게 지우면 a에는 [1, 2, 4]만 남게 된다. object를 담는 array에서 특정 field 값을 가지는 object를 지우고 싶다면 let a = [ {x: 1, y: 2}, {x: 3, y: 4} ]; const findItem = a.find(function(item) { return item.x === 1 }); const idx = a.indexOf(findItem); a.splice(idx, 1); 이렇게 지우면 a에는 [ {x: 3, y: 4} ]만 남게 된다. find 함수 대신 findInd..
-
자바스크립트 JAVASCRIPT Json Arry list 에서 특정문자 포함된 값 가져오기수상한 프로그래머/죽은 소스 살려내는 꾸르팁 2019. 9. 23. 15:12
const tempList = [{ NAME: 'ABCD' }, { NAME: 'CDEFG' }, { NAME: 'HIJK' }]; const searchData = tempList.filter(object => { if (object.NAME.indexOf('CD') > -1) { return object; } return null; }); console.log(searchData); 실행결과 : [{ NAME: 'ABCD' }, { NAME: 'CDEFG' }]