Skip to content

Instantly share code, notes, and snippets.

@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*
// ==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*
# 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
@anson-vandoren
anson-vandoren / telegram_notification.sh
Created February 28, 2019 17:58
Travis-Telegram notification script
#!/bin/sh
##########################################################################
# Note: you must have set up your Travis CI environment variables for this
# project to include both TELEGRAM_TOKEN and TELEGRAM_CHAT_ID
# For more details, see the Telegram documentation at:
# - https://core.telegram.org/bots/api
# and the blog posts at:
# - https://ansonvandoren.com/posts/telegram-notification-on-deploy/
# - https://ansonvandoren.com/posts/travis-telegram-integration/
@nightroman
nightroman / FarGit.psm1
Last active March 21, 2021 15:20
Interactive Git commands for Far Manager + FarNet.PowerShellFar
# Moved to https://github.com/nightroman/FarGit
@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.
// ==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*
@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
@victor-homyakov
victor-homyakov / detect-unused-css-selectors.js
Last active February 17, 2023 18:36
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)...');
@c-kick
c-kick / hnl.debounce.v4.js
Last active March 12, 2023 17:42
JavaScript function prototype debouncer v4.1 - debounces functions that are prone to repetitive calling (on events such as mousewheel, orientationchange, resize, etc). Demo: https://code.hnldesign.nl/demo/hnl.debounce.html
/**
* JavaScript function prototype debouncer 4.3 - 2010-2022 hnldesign.nl - Klaas Leussink
* Demo: https://code.hnldesign.nl/demo/hnl.debounce.html
*
* Based on code by Paul Irish and the original debouncing function from John Hann
* http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
* Register deBouncer as a function prototype.
*
* All debounced variants of the function (depending on the supplied debouncing parameters (see below)
* are stored inside a 'dbObj' Object inside the debounced function.