Skip to content

Instantly share code, notes, and snippets.

@Moyf
Moyf / LiteDatabase-en.js
Last active December 27, 2024 05:19
DVJS Code - Lite Database for Obsidian
const useList = false;
const curNote = dv.current();
if (!curNote){
dv.span("The current document is not loaded, please reopen it.");
return;
}
let tarFile = await app.vault.getAbstractFileByPath(curNote.file.path);
// Get the meta data of the current file
const curFileMeta = app.metadataCache.getFileCache(tarFile);
const headings = curFileMeta.headings;
@sam016
sam016 / AllGattCharacteristics.java
Last active December 27, 2024 05:17
Bluetooth GATT Services & Characteristics
package com.sam016.vsflatomation.service.ble;
import java.util.HashMap;
import java.util.UUID;
public class AllGattCharacteristics {
private static HashMap<String, String> attributes = new HashMap();
static {
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name");
@raipradeep
raipradeep / Line Graph
Created December 27, 2024 05:12
Line Chart With Canvas In Jetpack Compose
@Composable
fun LineChart(
labelsXAxis: List<String>,
dataPointsYAxis: List<Float>,
modifier: Modifier = Modifier,
textColor: Color = AppTheme.Dark,
axisSpacing: Float = 60f,
maxDataPoints: Int = 35// Count for X Axis Data
) {
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@DerFichtl
DerFichtl / tampermonkey-adblock-block.md
Last active December 27, 2024 05:07
Tampermonkey Adblock Script - This Ad-Blocker is running on pages with Adblock-detectors and can remove or click elements to cleanup before you start browsing.
layout title published tags
post
Tampermonkey ad-blocker
true
adblock
tampermonkey
browser

This ad-blocker script for Tampermonkey won't trigger an adblock-block / adblock-detector script and so you could use it for pages that are annoying you with "please turn of your adblock" messages. It's just hiding the ads and don't try to intercept the requests or remove the ads at all. So it don't make the websites faster, but it makes them cleaner and easier to read.

This script is not a generic solution and has to be configured for every website it should clean up. I don't provide configs for pages, just use your browser developer-tools to find the elements you want remove or click.

@Firepup6500
Firepup6500 / mf-adblock.js
Last active December 27, 2024 05:07
mf-adblock 0.7: A Tamper Monkey Adblocker
// ==UserScript==
// @name mf-adblock
// @namespace none
// @version 0.7
// @description A basic anti-adblock workaround that can remove or click elements on a website
// @author DerFichtl, with major improvements by Firepup650
// @match https://*/*
// @icon https://getadblock.com/favicon.ico
// @grant none
// @noframes
import os
import json
import sys
import concurrent.futures
import requests
import pprint
import shutil
######## INITIAL SETUP ########
# Define the token, download path, and target category
@KaKi87
KaKi87 / awesome-android-x3Free.md
Last active December 27, 2024 05:03
Awesome list — Free, ad-free and in-app-free Android apps

Inspired by Awesome

Awesome

DISCLAIMER : this isn't really an awesome list, I don't care about guidelines, rules and etc. so I don't bother make a real repo and a real pull request.

About this list

This list uses the power of my advanced Google Play search engine to get some free, in-app-free and ad-free apps from it.

@dotStart
dotStart / MinecraftService.md
Last active December 27, 2024 05:02
Systemd services for Minecraft Servers

Minecraft systemd Services

This gist contains service descriptors which may be used to automatically start and re-start Minecraft servers using systemd. This allows proper control of your server startup on modern Linux distributions and will automatically manage all required tasks on startup for you.

Requirements