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
@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) {
// ==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 / gist:4de10dc8b57c1126809d
Last active December 4, 2018 16:44
Aly's useful git aliases
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.cl clone
git config --global alias.br branch
git config --global alias.ba "branch -a"
git config --global alias.st status
git config --global alias.mt mergetool
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.mff "merge --ff-only"
git config --global alias.pff "pull --ff-only"
(function () {
var elCache = [];
var styleCache = [];
forceStyle = function (el, obj) {
if (elCache.indexOf(el) == -1) {
elCache.push(el);
styleCache.push(el.style.cssText);
}