Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")), "application/vnd.android.package-archive");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[ 유저 ] * - * [ 프로젝트 ] (n:m) 이 아니라
[ 유저 ] 1 - 1 [ 프로젝트맴버 * 프로젝트 ] 이렇게 도메인을 구분시키면 의존성도 낮추고 도메인도 구분되게 할 수 있음.
이 글은 일본의 omochimetaru님이 Qiita에 올린 Android 개발을 수주해서 Kotlin을 제대로 써봤더니 최고였다.라는 글을 번역해서 만들었습니다. 번역을 흔쾌히 허락해주신 omochimetaru님께 감사하다는 말씀 드립니다. 또한 글에서 한국에서는 쓰이지 않는 표현들 등에 대해서는 의역이 섞여있습니다. 이 점 양해 부탁드립니다. 늦은 시간까지 오역을 찾고 번역의 질을 높이는데 많은 도움을 주시고 오히려 저보다 많이 고생해주신 이상한모임의 pluulove님, chiyodad님, lemonade님께도 감사하다는 말씀 드립니다. 읽어주셔서 감사합니다.
며칠 전, 제가 소속된 Qoncept에서 "리얼 술래잡기"x후지큐 하이랜드 거대 유원지에서부터의 도주를 개발했고 출시했습니다.
cold / hot observable
~ cold: 데이터 들어오면 바로 처리 ~ ~ hot: 데이터가 들어오면 데이터를 홀드한 상태로 뭔가 다른 처리를 할 수 있도록 해줌 ~
cold: 일반적인 observable. 구독을 할때마다 새로운 스트림 생성. 그래서 붙어있는 모든 오퍼레이션이 각 스트림마다 실행이 됨-> 퍼포먼스 저하
제한시간(6s) 초과
###My solution
// 764번째 -> 5^10 = 9765625
// 764 => 10
function hamming(n) {
- Removes any duplicate query string parameters from the url
- Removes any query string parameters specified within the 2nd argument (optional array)
stripUrlParams('www.codewars.com?a=1&b=2&a=2') // returns 'www.codewars.com?a=1&b=2'
stripUrlParams('www.codewars.com?a=1&b=2&a=2', ['b']) // returns 'www.codewars.com?a=1'