Skip to content

Instantly share code, notes, and snippets.

View QuadFlask's full-sized avatar
🌴
wanna go vacation

QuadFlask

🌴
wanna go vacation
  • Seoul, Korea
View GitHub Profile
@QuadFlask
QuadFlask / loading.svg
Created September 27, 2018 09:33
from egghead
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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);

DDD start 책 공부

[ 유저 ] * - * [ 프로젝트 ] (n:m) 이 아니라

[ 유저 ] 1 - 1 [ 프로젝트맴버 * 프로젝트 ] 이렇게 도메인을 구분시키면 의존성도 낮추고 도메인도 구분되게 할 수 있음.


@QuadFlask
QuadFlask / Text align justify.md
Created June 14, 2016 12:50
[CodeWars] Text align justify

텍스트 정렬 - 공백 균등 분할 하기

조건 :

  • Use spaces to fill in the gaps between words.
  • Each line should contain as many words as possible.
  • Use '\n' to separate lines.
  • Gap between words can't differ by more than one space.
  • Lines should end with a word not a space.
  • '\n' is not included in the length of a line.
@QuadFlask
QuadFlask / Android 개발을 수주해서 Kotlin을 제대로 써봤더니 최고였다.md
Created June 11, 2016 02:52
Android 개발을 수주해서 Kotlin을 제대로 써봤더니 최고였다라는 글을 번역했습니다.

Android 개발을 수주해서 Kotlin을 제대로 써봤더니 최고였다.

글에 앞서

이 글은 일본의 omochimetaru님이 Qiita에 올린 Android 개발을 수주해서 Kotlin을 제대로 써봤더니 최고였다.라는 글을 번역해서 만들었습니다. 번역을 흔쾌히 허락해주신 omochimetaru님께 감사하다는 말씀 드립니다. 또한 글에서 한국에서는 쓰이지 않는 표현들 등에 대해서는 의역이 섞여있습니다. 이 점 양해 부탁드립니다. 늦은 시간까지 오역을 찾고 번역의 질을 높이는데 많은 도움을 주시고 오히려 저보다 많이 고생해주신 이상한모임의 pluulove님, chiyodad님, lemonade님께도 감사하다는 말씀 드립니다. 읽어주셔서 감사합니다.

Kotlin을 실무 프로젝트에서 사용했습니다.

며칠 전, 제가 소속된 Qoncept에서 "리얼 술래잡기"x후지큐 하이랜드 거대 유원지에서부터의 도주를 개발했고 출시했습니다.

@QuadFlask
QuadFlask / rxjava-study.md
Last active November 14, 2018 00:40
RxJava Study

RxJava Study github repo

1일차

cold / hot observable

~ cold: 데이터 들어오면 바로 처리 ~ ~ hot: 데이터가 들어오면 데이터를 홀드한 상태로 뭔가 다른 처리를 할 수 있도록 해줌 ~

cold: 일반적인 observable. 구독을 할때마다 새로운 스트림 생성. 그래서 붙어있는 모든 오퍼레이션이 각 스트림마다 실행이 됨-> 퍼포먼스 저하

@QuadFlask
QuadFlask / vliadBraces.md
Created May 12, 2016 00:58
[CodeWars] Valid Braces

괄호가 유효한지 체크

My Solution

function validBraces(braces){
  var stack = [];
  return braces.split('').map(b=> {
    if ('({['.indexOf(b)>=0) {
      stack.push(b);
 return true;
@QuadFlask
QuadFlask / hamming.md
Last active May 10, 2016 12:55
[CodeWars] Hamming number (Regular number)

제한시간(6s) 초과

url

###My solution

// 764번째 -> 5^10 = 9765625
// 764 => 10
function hamming(n) {
@QuadFlask
QuadFlask / param-strip.md
Created May 3, 2016 14:23
[CodeWars] strip url params
Complete the method so that it does the following:
  • Removes any duplicate query string parameters from the url
  • Removes any query string parameters specified within the 2nd argument (optional array)
Examples:
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'
@QuadFlask
QuadFlask / algebraic-list.md
Last active May 1, 2016 03:57
[CodeWars] Algebraic List

리스트 구현

My Solution

function Cons(head, tail) {
	this.head = head;
	this.tail = tail;
}
Cons.fromArray = function(array) {
	var tail = null;