This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Watcha's connection: | |
- (void)connection:(NSURLConnection __unused *)connection | |
didReceiveData:(NSData *)data | |
{ | |
self.totalBytesRead += [data length]; | |
if ([self.outputStream hasSpaceAvailable]) { | |
const uint8_t *dataBuffer = (uint8_t *) [data bytes]; | |
[self.outputStream write:&dataBuffer[0] maxLength:[data length]]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 초성 검색 알고리즘을 위한 클래스 이다. | |
* @author roter | |
* | |
*/ | |
public class SoundSearcher | |
{ | |
private static final char HANGUL_BEGIN_UNICODE = 44032; // 가 | |
private static final char HANGUL_LAST_UNICODE = 55203; // 힣 | |
private static final char HANGUL_BASE_UNIT = 588;//각자음 마다 가지는 글자수 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeFragment extends Fragment { | |
MapView mapView; | |
GoogleMap map; | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
View v = inflater.inflate(R.layout.some_layout, container, false); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static OkHttpClient getUnsafeOkHttpClient() { | |
try { | |
// Create a trust manager that does not validate certificate chains | |
final TrustManager[] trustAllCerts = new TrustManager[] { | |
new X509TrustManager() { | |
@Override | |
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2013 Google Inc. | |
Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html */ | |
package com.example.latlnginterpolation; | |
import android.animation.ObjectAnimator; | |
import android.animation.TypeEvaluator; | |
import android.animation.ValueAnimator; | |
import android.annotation.TargetApi; | |
import android.os.Build; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Google Play 서비스 사용 불가능 에러 다이얼로그 | |
* */ | |
private Dialog mGooglePlayServiceErrorDialog = null; | |
/** | |
* Google Play 서비스 버전 낮아서 업데이트하러 마켓으로 보내는 다이얼로그 | |
* */ | |
private AlertDialog mGooglePlayServiceUpdateDialog = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2014 Google Inc. All rights reserved. | |
* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.frograms.watcha.retrofit; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import com.frograms.watcha.listeners.WatchaQuery; | |
import com.frograms.watcha.model.response.BaseResponse; | |
import com.frograms.watcha.model.response.data.list.ListData; | |
import java.util.Map; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dyh.parser; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.commons.lang3.StringUtils; | |
import org.apache.commons.lang3.math.NumberUtils; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.spencerdo.brain; | |
/** | |
* Created by doyonghoon on 2015. 11. 7.. | |
*/ | |
public class MrJohnSmith { | |
private static final String NAME = "Mr John Smith"; | |
private static final char[] whitespace = new char[]{'0', '2', '%'}; |
OlderNewer