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
#include <iostream> | |
using namespace std; | |
struct NilaiMatKul { | |
char nim[11]; | |
char nama[30]; | |
char nilai[2]; | |
}; |
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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
void Binary_Search(const vector<int> &numbers, int value); | |
int main() { | |
vector<int> my_numbers; |
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 static boolean isEmulator() { | |
return Build.FINGERPRINT.startsWith("generic") | |
|| Build.FINGERPRINT.startsWith("unknown") | |
|| Build.MODEL.contains("google_sdk") | |
|| Build.MODEL.contains("Emulator") | |
|| Build.MODEL.contains("Android SDK built for x86") | |
|| Build.MANUFACTURER.contains("Genymotion") | |
|| (Build.BRAND.startsWith("generic") && Build.DEVICE.startsWith("generic")) | |
|| "google_sdk".equals(Build.PRODUCT); | |
} |
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
-optimizationpasses 5 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontpreverify | |
-verbose | |
# The -optimizations option disables some arithmetic simplifications that Dalvik 1.0 and 1.5 can't handle. | |
-optimizations !code/simplification/arithmetic | |
-keep public class * extends android.app.Activity |
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.gaharitechnology.vokon.ui.view; | |
import android.graphics.Rect; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
public class GridHeaderSpacingItemDecoration extends RecyclerView.ItemDecoration { | |
private int spanCount; | |
private int spacing; |
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.gaharitechnology.vokon.ui.fragment.main; | |
import android.app.Activity; | |
import android.app.ProgressDialog; | |
import android.content.Intent; | |
import android.graphics.Bitmap; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v7.widget.GridLayoutManager; | |
import android.view.LayoutInflater; |
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
apply plugin: 'com.android.application' | |
apply plugin: 'com.neenbedankt.android-apt' | |
apply plugin: 'me.tatarka.retrolambda' | |
apply from: '../config/quality.gradle' | |
android { | |
compileSdkVersion 23 | |
buildToolsVersion "23.0.3" |
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 void onPreferedLocationInMap() { | |
SharedPreferences sharedPreferences = PreferenceManager | |
.getDefaultSharedPreferences(mContext); | |
String location = sharedPreferences.getString(getString(R.string.pref_location_key), | |
getString(R.string.pref_location_default)); | |
Uri geoLocation = Uri.parse("geo:0,0?").buildUpon() | |
.appendQueryParameter("q", location) | |
.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
private void loadData() { | |
mWeekForecastAdapter.clear(); | |
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(mContext); | |
String location = sharedPreferences.getString(getString(R.string.pref_location_key), | |
getString(R.string.pref_location_default)); | |
String units = sharedPreferences.getString(getString(R.string.pref_units_key), | |
getString(R.string.pref_units_metric)); | |
Retrofit retrofit = new Retrofit.Builder() |