/**
* List all icons available to `obsidian.setIcon()`
*
* @author Ljavuras <[email protected]>
*/
dv.container.createEl("style", { attr: { scope: "" }, text: `
.icon-table {
display: flex;
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 org.gradle.api.tasks.testing.TestResult.ResultType | |
import org.gradle.api.tasks.testing.logging.TestExceptionFormat | |
import org.gradle.api.tasks.testing.logging.TestLogEvent | |
//... | |
tasks.test { | |
useJUnitPlatform() | |
maxParallelForks = 1 | |
testLogging { // credits: https://stackoverflow.com/a/36130467/5917497 |
The hasFragileUserData
flag can be added to the application
node of AndroidManifest.xml
. If its value is true,
then when the user uninstalls the app, a prompt will be shown to the user asking him whether to keep the app's data.
<application
...
android:hasFragileUserData="true" tools:targetApi="q">
...
</application>
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 kotlin.concurrent.thread | |
import kotlin.coroutines.resume | |
import kotlin.coroutines.suspendCoroutine | |
suspend fun awaitShutdown() { | |
suspendCoroutine<Unit> { c -> | |
Runtime.getRuntime().addShutdownHook(thread(start = false) { | |
c.resume(Unit) | |
}) | |
} |
Clockwork Base32 is a simple variant of Base32 inspired by Crockford's Base32.
See also a blog post (in Japanese).
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/..." />
Then in your code apply the ShapeAppearanceModel
to define your custom corners:
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] | |
"CurrentVersion"="1.8" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8] | |
"JavaHome"="C:\\Tools\\Java\\jdk8u192-b12\\jre" | |
"RuntimeLib"="C:\\Tools\\Java\\jdk8u192-b12\\jre\\bin\\j9vm\\jvm.dll" |
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
// ==UserScript== | |
// @name EmuParadise download script | |
// @version 1 | |
// @description Downloads games directly after clicking their name | |
// @author Eptun | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// @match https://www.emuparadise.me/*/*/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name EmuParadise Download Workaround - 1.1.1 | |
// @version 1.1.2 | |
// @description Replaces the download button link with a working one | |
// @author Eptun | |
// @match https://www.emuparadise.me/*/*/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// @grant none | |
// ==/UserScript== |
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
# -*- mode: Python ; coding: utf-8 -*- | |
# • View HTML source with JavaScript and CSS styles | |
# https://ankiweb.net/shared/info/1128123950 | |
# https://github.com/ankitest/anki-musthave-addons-by-ankitest | |
# License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html | |
# Copyright (c) 2016 Dmitry Mikheev, http://finpapa.ucoz.net/ | |
# | |
# Menu Cards - View Source code Body Alt+F3 | |
# shows HTML source with JavaScript and CSS styles | |
# but without jQuery Menu Cards |
NewerOlder