Skip to content

Instantly share code, notes, and snippets.

View Repflez's full-sized avatar
:shipit:
I may be slow to respond.

Repflez

:shipit:
I may be slow to respond.
View GitHub Profile
@Repflez
Repflez / themes.xml
Created November 2, 2022 05:33
Cursed way to use Material elements in Android Leanback
<resources>
<!-- AKA copying the entire Theme.AppCompat.Leanback theme hierarchy in one place -->
<style name="AppTheme.CursedLeanback" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="playbackProgressPrimaryColor">?android:attr/colorAccent</item>
<item name="playbackControlsIconHighlightColor">?android:attr/colorAccent</item>
<item name="defaultBrandColor">?android:attr/colorPrimary</item>
<item name="android:colorPrimary">@color/lb_default_brand_color</item>
<item name="defaultBrandColorDark">?android:attr/colorPrimaryDark</item>
<item name="android:colorPrimaryDark">@color/lb_default_brand_color_dark</item>

Keybase proof

I hereby claim:

  • I am Repflez on github.
  • I am repflez (https://keybase.io/repflez) on keybase.
  • I have a public key whose fingerprint is 1EC4 E4EB F09B 3515 6FFD 101A 2C30 7CCF BF52 9956

To claim this, I am signing this object:

@Repflez
Repflez / amperTags.php
Last active February 3, 2021 11:48
ABXD Plugin - Blabblerizer Reading trolls' posts has never been funnier! (Breaks BBCodes)
<?php
if ($poster['blabberized'])
$post['text'] = blabberize_text($post['text']);
@Repflez
Repflez / adminleft.php
Last active December 18, 2015 22:08
ABXD User Badge Manager
<?php
cell2(actionLinkTag(__('Manage User Badges'), 'userbadges'));
@Repflez
Repflez / upgrade.php
Created June 20, 2012 22:22
Personal ABXD upgrade.php
<?php
require('lib/common.php');
// Get user IP. Source: http://roshanbh.com.np/2007/12/getting-real-ip-address-in-php.html
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
@Repflez
Repflez / custom_bg.css
Last active October 2, 2015 10:48
jQuery Custom Background System
#customBackground > div {
display: table;
margin: 0 auto;
}
#customBackground span {
display: block;
float: left;
width: 145px;
height: 90px;
border-radius: 7px;