Skip to content

Instantly share code, notes, and snippets.

@johnd0e
johnd0e / aardvarkCommands.js
Last active October 6, 2019 11:27
aardwark
aardvark.loadObject ({
keyCommands : [],
//------------------------------------------------------------
loadCommands : function () {
if (this.keyCommands.length > 0)
return;
// 0: name (member of this.strings, or literal string)
// 1: function
@johnd0e
johnd0e / map-bg-black.user.js
Created October 16, 2019 15:24
IITC plugin: Black map background
// ==UserScript==
// @id map-bg-black
// @name IITC plugin: Black map background
// @category Fix
// @version 0.1
// @description Workaround for white lines between tiles on dark basemap layers (https://github.com/Leaflet/Leaflet/issues/3575)
// @namespace https://github.com/johnd0e
// @include https://intel.ingress.com/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name New Userscript
// @namespace 1111
// @version 0.2
// @description try to take over the world!
// @downloadURL https://gist.github.com/johnd0e/1edbda733d0f71e0c80a1acbd6587bb7/raw/test.user.js
// @author You
// @match https://www.tampermonkey.net/documentation.php#_updateURL
// @grant none
// ==/UserScript==
// ==UserScript==
// @id dynamic-geodesic-precision
// @name IITC plugin: Dynamic geodesic precision
// @category Custom
// @version 0.2.0-alpha
// @description Change geodesic precision depending on map zoom
// @namespace https://github.com/IITC-CE/ingress-intel-total-conversion
// @include https://intel.ingress.com/*
// @grant none
// ==/UserScript==
@johnd0e
johnd0e / fix-tiles-gap.user.js
Created November 9, 2019 14:52
IITC plugin: Tile grid lines fix
// ==UserScript==
// @id fix-tiles-gap
// @name IITC plugin: Tile grid lines fix
// @category Fix
// @version 0.1
// @description Workaround for 1px-gap between tiles (https://github.com/Leaflet/Leaflet/issues/6101#issuecomment-480593514)
// @namespace https://github.com/johnd0e
// @include https://intel.ingress.com/*
// @grant none
// ==/UserScript==
@johnd0e
johnd0e / changelog.md
Last active November 11, 2019 16:21
[Far macro] Lua Explorer „Advanced“

2.4

  • Бинарные строки (непредставимые в utf-8) отображаются с псевдотипом #string, в кодировке Ansi. Редактирование тоже поддерживается.
  • Символы помечающие таблицы и функции теперь настраиваются в options.
  • Восстановлена работа jit.util.funcinfo (Shift-F3)

2.3 (2013+)

  • При вставке в таблицу, и редактировании значений теперь введённые параметры проверяются на корректность
@johnd0e
johnd0e / MacroCheck.lua
Last active December 11, 2019 07:59
[Far Manager macro] MacroCheck
--todo stack trace util
local Info = Info or package.loaded.regscript or function(...) return ... end --luacheck: ignore 113/Info
local nfo = Info { _filename or ...,
name = "MacroCheck";
description = "Check macro in editor [Reload/Execute/Variables]";
version = "1.2";
author = "jd";
url = "http://forum.farmanager.com/viewtopic.php?f=60&t=8008";
id = "DA9B41E0-3896-4533-94E9-D5CE10BB7968";
minfarversion = {3,0,0,4261,0}; --far.FarClock
// ==UserScript==
// @name IITC Plugin: Custom padding
// @namespace https://github.com/IITC-CE/ingress-intel-total-conversion
// @version 0.1
// @description override renderer padding
// @match https://intel.ingress.com/*
// @grant none
// ==/UserScript==
(function() {
@johnd0e
johnd0e / .eslintrc.json
Last active February 10, 2020 15:44
IITC plugin: offle
{
"env": {
"browser": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
4
],
// ==UserScript==
// @id disable-attribution
// @name IITC plugin: Disable map tiles attribution
// @description Disable map tiles attribution in order to save space
// @category Tweaks
// @version 0.1.0
// @author jd
// @namespace https://gist.github.com/johnd0e
// @homepageURL https://gist.github.com/johnd0e/346ce71a79e8f2311b4859fea5d77ca2
// @supportURL https://gist.github.com/johnd0e/346ce71a79e8f2311b4859fea5d77ca2#new_comment_field