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
long days = ChronoUnit.DAYS.between(LocalDate.now(), otherDate); |
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
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | |
<!-- Customize your theme here. --> | |
<item name="colorPrimary">@color/colorPrimary</item> | |
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> | |
<item name="colorAccent">@color/colorAccent</item> | |
<item name="android:windowBackground">@color/white</item> | |
<item name="android:textColorPrimary">@color/black</item> | |
<item name="alertDialogTheme">@style/AppAlertDialogStyle</item> | |
</style> |
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.example; | |
import android.util.Log; | |
import com.crashlytics.android.Crashlytics; | |
import timber.log.Timber; | |
/** | |
* {@link timber.log.Timber.Tree} which prints important messages to Crashlytics |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="white">#ffffffff</color> | |
<color name="white_90">#E6ffffff</color> | |
<color name="white_80">#CCffffff</color> | |
<color name="white_70">#B3ffffff</color> | |
<color name="white_60">#99ffffff</color> | |
<color name="white_50">#80ffffff</color> | |
<color name="white_40">#66FFFFFF</color> |
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
using UnityEditor; | |
using System; | |
using System.Collections.Generic; | |
class BuildScript { | |
static string[] SCENES = FindEnabledEditorScenes(); | |
static string APP_NAME = "AngryBots"; | |
static string TARGET_DIR = "target"; |
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
### Keybase proof | |
I hereby claim: | |
* I am Jawnnypoo on github. | |
* I am jawnnypoo (https://keybase.io/jawnnypoo) on keybase. | |
* I have a public key whose fingerprint is 6685 FBCB 3BF0 3236 DDB8 0B53 816A 9180 2393 C178 | |
To claim this, I am signing this object: |
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
import java.util.ArrayList; | |
import android.annotation.SuppressLint; | |
import android.app.SearchManager; | |
import android.content.Intent; | |
import android.graphics.Bitmap; | |
import android.net.Uri; | |
import android.provider.CalendarContract; | |
import android.provider.CalendarContract.Events; | |
import android.provider.AlarmClock; |
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
final View view = findViewById(R.id.view_id); | |
view.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { | |
@Override | |
public boolean onPreDraw() { | |
view.getViewTreeObserver().removeOnPreDrawListener(this); | |
//Do the things you want to do. Return true if you want to draw that frame, otherwise return false | |
return 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
package com.jawnnypoo.example; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.pm.ActivityInfo; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.hardware.Sensor; | |
import android.hardware.SensorEvent; |
NewerOlder