Skip to content

Instantly share code, notes, and snippets.

View Pkmmte's full-sized avatar
🎯
Focusing

Pkmmte Xeleon Pkmmte

🎯
Focusing
View GitHub Profile
@Pkmmte
Pkmmte / README.md
Last active October 1, 2024 07:39
🛠 Discord Activity Entry Command Fix
@Pkmmte
Pkmmte / discord-activity-entry-fix.js
Created October 1, 2024 05:55
# Discord Activity Entry Command Fix
// Set this to true if you run into issues or want to see app data logged.
const Debug = false
// Set this as your Discord Bot Token and Client ID if you don't want to pass them as arguments.
const BotToken = ''
const ClientId = ''
// Runs this script.
start().then(console.log).catch(console.error)
import android.support.annotation.IntDef;
import android.support.annotation.StringRes;
import android.widget.Toast;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import static android.widget.Toast.LENGTH_LONG;
import static android.widget.Toast.LENGTH_SHORT;
@Pkmmte
Pkmmte / PkMovementMethod.java
Created February 20, 2017 19:00
LinkMovementMethod subclass that does not override ALL TextView touch events and only notifies for actual link clicks.
import android.text.Layout;
import android.text.Selection;
import android.text.Spannable;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.view.MotionEvent;
import android.widget.TextView;
/**
* Created on 2/17/2017
@Pkmmte
Pkmmte / WindowInsetsFrameLayout.java
Last active August 12, 2024 07:40
A FrameLayout subclass that dispatches WindowInsets to its children instead of adjusting its padding. Useful for Fragment containers.
package com.pkmmte.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.WindowInsets;
import android.widget.FrameLayout;
/**
package co.nowl.view;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;