Skip to content

Instantly share code, notes, and snippets.

View AleksueiR's full-sized avatar
🏔️
Working from home

Aleksuei Riabtsev AleksueiR

🏔️
Working from home
View GitHub Profile
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author You
// @match http*://github.com/*
// @grant none
// @require https://code.jquery.com/jquery-2.2.3.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment.min.js
@AleksueiR
AleksueiR / testSymbols-enhanced.html
Last active April 21, 2016 15:22
geoApi new Symbology mapper
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Test Page</title>
<style>
.layerTile {
position: absolute;
}
@AleksueiR
AleksueiR / global-registry.js
Last active April 22, 2016 18:51
Global registry "sync" map proxy
// global-registry.js
// "private" registry of map proxies
const _mapRegistry = [];
window.RV._mapRegistry = _mapRegistry;
const mapProxy = {
_appInstance: null,
_proxy(action, ...args) {
<html>
<body>
<svg xmlns:svgjs="http://svgjs.com/svgjs" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xmlns="http://www.w3.org/2000/svg" height="3000" width="1000" id="SvgjsSvg1071"><defs id="SvgjsDefs1072"></defs><g id="SvgjsG1073"><text y="-5.399999618530273" x="0" anchor="start" font-size="18" font-weight="normal" font-family="Roboto" id="SvgjsText1074"><tspan x="0" dy="23.400000000000002" id="SvgjsTspan1075">Very small layer</tspan></text><g transform="matrix(1,0,0,1,0,34)" id="SvgjsG1076"><image height="32" width="32" xlink:href="http://lorempixel.com/32/32/?Only one item" id="SvgjsImage1077"></image><text anchor="start" data-overflow="" font-weight="normal" text-anchor="start" font-family="Roboto" font-size="14" y="3" x="39.816666662693024" style="" id="SvgjsText1078"><tspan x="39.816666662693024" dy="16.8" xml:space="preserve" id="SvgjsTspan1094">Only one item</tspan></text></g><text y="92.60000038146973" x="0" anchor="start" font-size="18" font-weight="normal" font-family="Roboto" id="Svgjs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(function () {
var elCache = [];
var styleCache = [];
forceStyle = function (el, obj) {
if (elCache.indexOf(el) == -1) {
elCache.push(el);
styleCache.push(el.style.cssText);
}
@AleksueiR
AleksueiR / gist:e62c46dbc3b912f698f6ad0166732edc
Created May 26, 2017 12:25
reviewable shortcuts ehanced
[
["f", "Show next/latest diffs", "setProposedRevRanges()"],
["n", "Next personally unreviewed file", "nextPersonallyUnreviewedFile()"],
["p", "Previous personally unreviewed file", "prevPersonallyUnreviewedFile()"],
[null, "Next personally unreviewed file", "nextPersonallyUnreviewedFile()"],
[null, "Previous personally unreviewed file", "prevPersonallyUnreviewedFile()"],
["shift+n", "Next changed file", "nextChangedFile()"],
["shift+p", "Previous changed file", "prevChangedFile()"],
[null, "Next visible file", "nextVisibleFile()"],
@AleksueiR
AleksueiR / 13.json
Last active November 17, 2017 19:55
cesi temp
{
"HTML_content":
"<dv-section dv-data=\"templateData\"> <h1 id=\"wb-cont\" property=\"name\">{{ companyName }}</h1> <section> <div class=\"meta-container\"> <div class=\"meta\"> <p> <a href=\"\">{{ companyName }}</a> </p> <p> <span>NPRI Number:</span> {{ npriNumber }} </p> <p class=\"address\"> <span v-for=\"line in address\">{{ line }}</span> </p> </div> <div class=\"meta2\"> North American Industry Classification System (NAICS) <br> <a href=\"\">Particle board and fibreboard mills CAN</a> </div> </div> <dv-chart dv-config=\"chartConfig\" id=\"chart1\"><details><summary>View data for this chart</summary><div class=\"summary\"><dv-chart-table dv-auto-render dv-table-class=\"wb-tables table table-striped\"></dv-chart-table></div></details></dv-chart> <details> <summary>Facility Air Pollutant Emissions Indicator Summary for 2015</summary> <div class=\"summary\"> <p v-for=\"pair in summary2015\"> <span class=\"name\">{{ pair.name }}:</span> <span class=\"value\">{{ pair.value }} <span class=\"unit
@AleksueiR
AleksueiR / a2dp.py
Last active January 5, 2018 15:38 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3.5
"""
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .