Skip to content

Instantly share code, notes, and snippets.

View junsuk5's full-sized avatar

Junsuk Oh junsuk5

View GitHub Profile
@Rexee
Rexee / RealmList.java
Last active August 3, 2018 01:38
Parceler and RealmList
@Parcel(implementations = { CountryRealmProxy.class },
value = Parcel.Serialization.FIELD,
analyze = { Country.class })
public class Country extends RealmObject {
@ParcelPropertyConverter(RealmListParcelConverter.class)
public RealmList<RealmString> languages;
}
public class RealmListParcelConverter
implements TypeRangeParcelConverter<RealmList<? extends RealmObject>,
@petitviolet
petitviolet / _gradle
Last active April 5, 2019 00:10
gradle completion for zsh
#!/usr/bin/env zsh
# refs: https://gist.github.com/nolanlawson/8694399 : bash-version
loading() {
local count=30
if [ $# -eq 1 ]; then
count=$1
fi
# INT をtrapして最後の出力を消す
@skyfishjy
skyfishjy / CursorRecyclerViewAdapter.java
Last active December 16, 2023 08:55
CursorRecyclerViewAdapter
/*
* Copyright (C) 2014 skyfish.jy@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@tucq88
tucq88 / Sublime Text 3 | Eclipse - Shortcuts
Last active August 28, 2024 02:16
Eclipse shortcuts key bindings for Sublime Text 3 (OS X)
[
{ "keys": ["super+shift+w"], "command": "close_all" },
{ "keys": ["super+shift+s"], "command": "save_all" },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["super+alt+j"], "command": "join_lines" },
{ "keys": ["super+alt+down"], "command": "duplicate_line" },
{ "keys": ["shift+super+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
@nolanlawson
nolanlawson / completion-for-gradle.md
Last active April 5, 2024 07:43
Gradle tab completion for Bash. Works on both Mac and Linux.

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]
@kwon37xi
kwon37xi / (01장) 기본기.scala
Last active August 15, 2023 06:24
쉽게 배워서 빨리 써먹는 Scala 프로그래밍 연습문제 풀이
/** Chapter 01 **/
/*
문제에 오역이 좀 있다. 아래에서 문제 자체를 검색해서 확인해 볼 것.
Java 7 이상에서 실행할 것.
https://www.google.co.kr/search?client=ubuntu&channel=fs&q=scala+for+the+impatient+exercise&ie=utf-8&oe=utf-8&gws_rd=cr&redir_esc=&ei=oqvrUb-1B6LwiQfjk4GQBg
Scala Doc : http://www.scala-lang.org/api/current/index.html
*/