Skip to content

Instantly share code, notes, and snippets.

@skyisle
skyisle / icloud-ssh
Created February 18, 2012 01:44
Shell script to connect icloud host through ssh
#!/bin/bash
if [ ! -n "$1" ]
then
echo "Usage: `basename $0` hostname"
exit $E_BADARGS
fi
HOSTNAME=$1
DOMAIN=$(echo show Setup:/Network/BackToMyMac | scutil | sed -n 's/.* : *\(.*\).$/\1/p')
1. 개인정보의 처리 목적 (‘https://github.com/skyisle’이하 ‘The 42 apps’) 은(는) 다음의 목적을 위하여 개인정보를 처리하고 있으며, 다음의 목적 이외의 용도로는 이용하지 않습니다.
- 고객 가입의사 확인, 고객에 대한 서비스 제공에 따른 본인 식별.인증, 회원자격 유지.관리, 물품 또는 서비스 공급에 따른 금액 결제, 물품 또는 서비스의 공급.배송 등
2. 개인정보의 처리 및 보유 기간
① (‘https://github.com/skyisle’이하 ‘The 42 apps’) 은(는) 정보주체로부터 개인정보를 수집할 때 동의 받은 개인정보 보유․이용기간 또는 법령에 따른 개인정보 보유․이용기간 내에서 개인정보를 처리․보유합니다.
② 구체적인 개인정보 처리 및 보유 기간은 다음과 같습니다.
☞ 아래 예시를 참고하여 개인정보 처리업무와 개인정보 처리업무에 대한 보유기간 및 관련 법령, 근거 등을 기재합니다.
import java.util.*
class Solution {
fun maxSlidingWindow(nums: IntArray, k: Int): IntArray {
if(nums.isEmpty()) {
return intArrayOf()
}
var maxSlidingWindows = mutableListOf<Int>()
@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()
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>
#!/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
#!/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
public class DelayedRestorableListView extends ListView {
private Parcelable savedState;
public DelayedRestorableListView(Context context) {
super(context);
}
public DelayedRestorableListView(Context context, AttributeSet attrs) {
super(context, attrs);
<?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
@skyisle
skyisle / build.gradle
Last active December 21, 2016 07:41
Default build.gradle explained
buildscript {
// android 빌드를 하기위해 플러그인 자체을 가져오기 위한 설정입니다.
repositories {
mavenCentral()
}
// plugin 자체는 maven 중앙 저장소를 통해 배포됩니다.( http://search.maven.org/ )
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
// android plugin 버전 0.6.+ 를 사용합니다. 배포된 버전중 +로 표시된 부분의 숫자가 가장 큰 버전이 사용됩니다.