call(), apply(), bind() 차이call(), apply() 는 ECMA 3에서 추가 되었으며, bind()는 ECMA 5에서 추가 되었습니다.call(), apply()는 invoke입니다. 함수 호출을 즉시 합니다.bind()는 나중에 실행될때 사용 됩니다. 특정 이벤트를 함수를 호출해야 할때 유용합니다.I. call()func.call(this, arg1, arg2, … argN);this 부분에 객체를 넣어주면 그걸 가리키게 된다. 특이사항은 파라미터를 일일이 콤마로 구분해서 넣어줘야 하는 것.// callvar obj = {name:"Niladri"};var greeting = function(a,b,c){ return "welcome "+this.name+" to "+a+" "+..
How to showing back button when activity moving 1. 위에 처럼 parent를 등록한다.1. add as above in manifest.xml @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { // Respond to the action bar's Up/Home button case android.R.id.home: onBackPressed(); return true; } return super.onOptionsItemSelected(item); } 2. 위에 해당 코드 추가.2. add as above in your second activity kot..
ES6, ES7 문법좋아하는 문법arrow=>map, filter, reduceAsyncasync, await, thenPromiseresolve, rejectProperty Shorthandvar x = 0, y = 0; obj = { x: x, y: y };var x = 0, y = 0 obj = { x, y }string, list - Includesfor문ofIn출처영문: http://es6-features.org/#Constants한글: http://itstory.tk/entry/JavaScript-ES6-%EB%AC%B8%EB%B2%95-%EC%A0%95%EB%A6%AC Promise: https://joshua1988.github.io/web-development/javascript/prom..
출처: https://wayhome25.github.io/cs/2017/04/17/cs-18/
1. selection sort2. insertion sort3. bublle sort4. shell sort5. merge sort6. heap sort7. quick sort8. tim sort ## sort algorithms.. https://gmlwjd9405.github.io/2018/05/10/algorithm-quick-sort.html ## tim sorthttps://medium.com/@fiv3star/python-sorted-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98-timsort-dca0ec7a08be
## brew 설치 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ## open jdk 설치 https://solarianprogrammer.com/2018/09/28/installing-openjdk-macos/ https://brunch.co.kr/@hopeless/35 ## ref https://stackoverflow.com/questions/20381128/how-to-install-homebrew-on-os-x
