Skip to content

Instantly share code, notes, and snippets.

@dideler
dideler / bot.rb
Last active July 5, 2026 02:34
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@victor-homyakov
victor-homyakov / detect-unused-css-selectors.js
Last active July 17, 2025 11:22
Detect unused CSS selectors. Show possible CSS duplicates. Monitor realtime CSS usage.
/* eslint-disable no-var,no-console */
// detect unused CSS selectors
(function() {
var parsedRules = parseCssRules();
console.log('Parsed CSS rules:', parsedRules);
detectDuplicateSelectors(parsedRules);
var selectorsToTrack = getSelectorsToTrack(parsedRules);
window.selectorStats = { unused: [], added: [], removed: [] };
console.log('Tracking style usage (inspect window.selectorStats for details)...');
@syrte
syrte / markdown.tid
Last active June 29, 2022 23:26
A drop-in replacement to the official TiddlyWiki Markdown plugin. It is implemented with markdown-it and supports math through katex.
author: JeremyRuston, Syrte
core-version: >=5.0.0
dependents:
description: Markdown parser
list: readme usage howto
plugin-type: plugin
revision: 0
title: $:/plugins/tiddlywiki/markdown
type: application/json
version: 6.0.0
# Download curses wheel package
http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses
# Install curses via pip
pip install python -m pip install Downloads/curses-2.2-cp27-none-win_amd64.whl
# Run bpython-curses instead of bpython
bpython-curses
@syrte
syrte / Marked.md
Created May 1, 2017 14:59
Use Marked for TiddlyWiki. Originally fork from http://bjtools.tiddlyspot.com/

Use marked instead of markdown-js for Markdown parser of TiddlyWiki 5. Originally fork from http://bjtools.tiddlyspot.com/

Main New Features

  • support fenced code block
  • support code highlighting

Install

  1. Install the official Markdown and Hightlight.js plugin.
@Shujito
Shujito / spotihosts
Last active July 21, 2026 18:15
The hosts file entries to block Spotify audio ad servers.
# taken from here:
# https://www.reddit.com/r/Piracy/comments/4kn6rq/comprehensive_guide_to_blocking_ads_on_spotify/
0.0.0.0 adclick.g.doublecklick.net
0.0.0.0 adeventtracker.spotify.com
0.0.0.0 ads-fa.spotify.com
0.0.0.0 analytics.spotify.com
0.0.0.0 audio2.spotify.com
0.0.0.0 b.scorecardresearch.com
0.0.0.0 bounceexchange.com
0.0.0.0 bs.serving-sys.com
// ==UserScript==
// @id iitc-plugin-bookmarks@Sunny0s
// @name IITC plugin: Bookmarks for maps and portals (sunny0s version)
// @category Controls
// @version 0.2
// @namespace
// @updateURL
// @downloadURL
// @description based on zaso Bookmarks plugin, differences: auto draw drawing polylines, not polygons; DT to BMs function
// @include https://*.ingress.com/intel*
@a-susloff
a-susloff / IITC plugin- Bookmarks for maps and portals (polyline version).user.js
Created November 9, 2016 20:24
IITC plugin- Bookmarks for maps and portals (polyline version)
// ==UserScript==
// @id iitc-plugin-bookmarks@Sunny0s
// @name IITC plugin: Bookmarks for maps and portals (polyline version)
// @category Controls
// @version 0.1
// @namespace
// @updateURL
// @downloadURL
// @description based on zaso Bookmarks plugin, the only difference if auto draw drawing polylines, not polygons
// @include https://*.ingress.com/intel*
@c-kick
c-kick / hnl.mobileConsole.js
Last active April 22, 2026 21:41
NOTE: V2 Released! Seehttps://github.com/c-kick/mobileConsole hnl.mobileConsole.js - extends JavaScript's console to display a visual console inside the webpage. Very usefull for debugging JS on mobile devices with no real console. Info and demo: http://www.hnldesign.nl/work/code/mobileconsole-javascript-console-for-mobile-devices/
/*!
*
* NEW VERSION AT https://github.com/c-kick/mobileConsole
*
* hnl.mobileConsole - javascript mobile console - v1.3.8 - 04/01/2021
* Adds html console to webpage. Especially useful for debugging JS on mobile devices.
* Supports 'log', 'trace', 'info', 'warn', 'error', 'group', 'groupEnd', 'table', 'assert', 'clear'
* Inspired by code by Jakub Fiala (https://gist.github.com/jakubfiala/8fe3461ab6508f46003d)
* Licensed under the MIT license
*
// ==UserScript==
// @id iitc-plugin-highlight-portals-supply-base@fl0o0l
// @name IITC plugin: highlight portals supply base
// @category Highlighter
// @version 0.0.1.20160106.000001
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL https://gist.github.com/DrMacinyasha/c6207fead937be8f5d3a/raw/portal-highlighter-supply-base-rmciimod.user.js
// @downloadURL https://gist.github.com/DrMacinyasha/c6207fead937be8f5d3a/raw/portal-highlighter-supply-base-rmciimod.user.js
// @include https://www.ingress.com/intel*
// @include http://www.ingress.com/intel*