Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jasonsparc's full-sized avatar
🤖

Jason jasonsparc

🤖
View GitHub Profile
Windows Registry Editor Version 5.00
; See also, https://www.oracle.com/java/technologies/javase/runtime-windows.html
[-HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
; ^ Clears everything first
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="17.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\17.0]
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
if (%0%) {
Args := ""
Loop %0% {
Arg := %A_Index%
if (InStr(Arg, A_Space)) {
Args = %Args% "%Arg%"
} else
Args = %Args% %Arg%

The Material Components Library introduced with the 1.2.0-alpha03 the new ShapeableImageView.

In your layout you can use:

  <com.google.android.material.imageview.ShapeableImageView
    android:id="@+id/image_view"
    app:srcCompat="@drawable/..." />
@jasonsparc
jasonsparc / Accelerated Scrolling 1.3.ahk
Last active February 15, 2024 21:16
AutoHotkey, Accelerated Scrolling v1.3, By BoffinbraiN
; Accelerated Scrolling
; V1.3
; By BoffinbraiN
#NoEnv
#SingleInstance
#MaxHotkeysPerInterval 120
;Process, Priority, , H
SendMode Input
@jasonsparc
jasonsparc / git-cheat-reword
Last active October 1, 2023 14:30
`git-cheat-reword` – Authentic rewords ( ͡° ͜ʖ ͡°)
#!/bin/bash
# Usage: git cheat-reword
git rev-parse || exit $?
if [[ $1 == "-q" ]]; then
if_quiet="-q"; shift
else
echo "Rewording... (with author date as committer date)"
fi
; File Open Utilities
OpenAndGetHwnd(sDocument, sParams:="", sValidHwndPredicate:="IsValidWinTitleText", sTimeout:=10) {
AssociatedExe := sDocument
SplitPath, sDocument, , , OutExt
if (not OutExt = "exe") {
AssociatedExe := FindExecutable(sDocument)
@jasonsparc
jasonsparc / git-cheat-date
Last active February 22, 2019 13:33
`git-cheat-date` – A custom git command for conveniently updating both the committer date and the author date
#!/bin/bash
# Usage: git cheat-date
git rev-parse || exit $?
if [[ $1 == "-q" ]]; then
if_quiet="-q"; shift
else
echo "Replacing committer date..."
fi
@jasonsparc
jasonsparc / SimpleCursorLoader.java
Last active August 29, 2015 14:27 — forked from casidiablo/SimpleCursorLoader.java
Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview
/*
* Copyright 2012 CodeSlap - Cristian Castiblanco
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software