Skip to content

Instantly share code, notes, and snippets.

View gist:6253c97d57c306bcee8e882e3a235fc3
1. 개인정보의 처리 목적 (‘https://github.com/skyisle’이하 ‘The 42 apps’) 은(는) 다음의 목적을 위하여 개인정보를 처리하고 있으며, 다음의 목적 이외의 용도로는 이용하지 않습니다.
- 고객 가입의사 확인, 고객에 대한 서비스 제공에 따른 본인 식별.인증, 회원자격 유지.관리, 물품 또는 서비스 공급에 따른 금액 결제, 물품 또는 서비스의 공급.배송 등
2. 개인정보의 처리 및 보유 기간
① (‘https://github.com/skyisle’이하 ‘The 42 apps’) 은(는) 정보주체로부터 개인정보를 수집할 때 동의 받은 개인정보 보유․이용기간 또는 법령에 따른 개인정보 보유․이용기간 내에서 개인정보를 처리․보유합니다.
② 구체적인 개인정보 처리 및 보유 기간은 다음과 같습니다.
☞ 아래 예시를 참고하여 개인정보 처리업무와 개인정보 처리업무에 대한 보유기간 및 관련 법령, 근거 등을 기재합니다.
View maxSlidingWindow.kt
import java.util.*
class Solution {
fun maxSlidingWindow(nums: IntArray, k: Int): IntArray {
if(nums.isEmpty()) {
return intArrayOf()
}
var maxSlidingWindows = mutableListOf<Int>()
View UserDao.java
@android.arch.persistence.room.Dao()
public abstract interface UserDao {
@android.arch.persistence.room.Insert(onConflict = 1)
public abstract void save(@org.jetbrains.annotations.NotNull()
com.the42apps.newarch.User p0);
@org.jetbrains.annotations.NotNull()
@android.arch.persistence.room.Query(value =SELECT * FROM user WHERE id = :userId”)
public abstract android.arch.lifecycle.LiveData<com.the42apps.newarch.User> load(@org.jetbrains.annotations.NotNull()
View lolkr.sh
#!/bin/bash
cd /Applications/League\ of\ Legends.app/Contents/LoL/RADS/projects/league_client/releases/
LATESTVERSION=`ls -v | grep -e '\d*\.\d*\.\d*\.\d*' | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1`
echo $LATESTVERSION
cd $LATESTVERSION/deploy
if [ "$1" == "kr" ]; then
echo "Update system.yaml to use KR region"
sed -ie 's/rso_platform_id: NA1/rso_platform_id: KR/g' system.yaml
View lolkr.sh
#!/bin/bash
cd /Applications/League\ of\ Legends.app/Contents/LoL/RADS/projects/league_client/releases/
LATESTVERSION=`ls -v | grep -e '\d*\.\d*\.\d*\.\d*' | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1`
echo $LATESTVERSION
cd $LATESTVERSION/deploy
sed -ie 's/rso_platform_id: NA1/rso_platform_id: KR/g' system.yaml
sed -ie 's/.na2.lol.riotgames.com/.kr.lol.riotgames.com/g' system.yaml
sed -ie 's/web_region: na/web_region: kr/g' system.yaml
View fonts.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
All fonts without names are added to the default list. Fonts are chosen
based on a match: full BCP-47 language tag including script, then just
language, and finally order (the first font containing the glyph).
Order of appearance is also the tiebreaker for weight matching. This is
the reason why the 900 weights of Roboto precede the 700 weights - we
prefer the former when an 800 weight is requested. Since bold spans
effectively add 300 to the weight, this ensures that 900 is the bold
View korean_font.diff
diff --git a/fonts.xml b/fonts1.xml
index 117e17b..6bfb328 100644
--- a/fonts.xml
+++ b/fonts1.xml
@@ -347,6 +347,9 @@
<family lang="ko">
<font weight="400" style="normal" index="1">NotoSansCJK-Regular.ttc</font>
</family>
+ <family lang="ko">
+ <font weight="400" style="normal" index="1">NanumGothic.ttf</font>
View Pase object fileld setter getter
public $TYPE$ get$FIELDNAME$() {
return get$TYPE$("$LOWER_FIELDNAME$");
}
public void set$FIELDNAME$($TYPE$ value) {
put("$LOWER_FIELDNAME$", value);
saveInBackground();
}
View DelayedRestorableListView.java
public class DelayedRestorableListView extends ListView {
private Parcelable savedState;
public DelayedRestorableListView(Context context) {
super(context);
}
public DelayedRestorableListView(Context context, AttributeSet attrs) {
super(context, attrs);
@skyisle
skyisle / install-support-future.sh
Last active Aug 29, 2015
Install android support library snapshot to local repository
View install-support-future.sh
#!/bin/bash
# Fix the CircleCI path
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH"
DEPS="$ANDROID_HOME/installed-support-furture"
if [ ! -e $DEPS ]; then
echo y | android update sdk -u -a -t android-4 &&
echo y | android update sdk -u -a -t android-5 &&