Skip to content

Instantly share code, notes, and snippets.

@Piskvor
Piskvor / index.php
Last active September 12, 2018 10:27
Simple logger for requests
<?php
declare(strict_types=1);
/*
Usage:
start PHP devel server in this script's directory:
php -S [::]:8888
send requests to http://your-ip-address:8888/
JSON events are logged to event.log
@Piskvor
Piskvor / experiments_lines_drag.user.js
Last active December 30, 2016 09:34 — forked from spite/gist:90e3dbf8e117660f6788a5748ae06cad
Go to https://lines.chromeexperiments.com/drag/, start the experience and run this code in the console - or install it as a userscript.
// ==UserScript==
// @name Animate the Lines WebGL experiment automatically
// @namespace https://gist.github.com/spite/90e3dbf8e117660f6788a5748ae06cad
// @version 0.2
// @description Automatically drags the mouse, leading to a pleasant effect
// @author spite, userscripted by Piskvor
// @match https://lines.chromeexperiments.com/drag/
// @grant none
// @updateURL https://gist.github.com/Piskvor/41df1f68b44b43100552126c76e2f609/raw/experiments_lines_drag.user.js
// ==/UserScript==
@Piskvor
Piskvor / Open_in_JOSM.user.js
Last active December 19, 2016 14:45
Open a page (GPX track, image, etc.) through JOSM's Remote Control from browser's context menu
/* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details. */
// ==UserScript==
// @name Open in JOSM
// @namespace http://osm.piskvor.org/
// @description Open a page (GPX track, image, etc.) through JOSM's Remote Control from browser's context menu