This file contains hidden or 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
function Get-PrimeNumber([ulong] $position) { | |
return [System.UInt128] ("prime($position)" | gp.exe -q) | |
} | |
This file contains hidden or 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 System; | |
// From the Kotlin standard library | |
public class XorWowRandom | |
{ | |
private int x, y, z, w, v, addend; | |
private XorWowRandom() { } | |
public static XorWowRandom FromSeed(int seed) |
This file contains hidden or 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 android.annotation.SuppressLint | |
import android.app.Application | |
import android.content.ComponentCallbacks | |
import android.content.Context | |
import android.content.ContextWrapper | |
import android.content.res.Configuration | |
import android.content.res.Resources | |
import android.os.Build | |
import android.os.LocaleList | |
import androidx.core.os.ConfigurationCompat |
This file contains hidden or 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 yourpackage | |
import android.content.Context | |
import android.os.Build | |
import android.util.AttributeSet | |
import android.view.View | |
import androidx.cardview.widget.CardView | |
import yourpackage.R | |
/** |
This file contains hidden or 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 yourpackage | |
import android.annotation.SuppressLint | |
import android.app.Activity | |
import android.app.Application | |
import android.content.Context | |
import android.content.SharedPreferences | |
import android.content.pm.PackageManager | |
import android.content.res.Configuration | |
import android.content.res.Resources |
OlderNewer