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 / links.md
Last active July 31, 2020 16:33
Interesting links

Keybase proof

I hereby claim:

  • I am aleksueir on github.
  • I am aleksueir (https://keybase.io/aleksueir) on keybase.
  • I have a public key ASB98xuL9fV3RuCOVKjEnf2rsEOS8-TfT_EYCOKX17SazAo

To claim this, I am signing this object:

@AleksueiR
AleksueiR / eh.js
Created September 6, 2019 12:39
Webpack Chains
module.exports = (env, argv) => {
config.mode(argv.mode).devtool(argv.mode === 'development' ? 'cheap-eval-source-map' : false);
config.entry('index').add('./src/index.ts');
config.output
.path(path.resolve(__dirname, 'dist'))
.filename('index.js')
.libraryTarget('commonjs2');
@AleksueiR
AleksueiR / species-images.html
Created June 28, 2019 13:02
Malformatted species image filenames
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<style>
img {
@AleksueiR
AleksueiR / export-plan.md
Last active June 7, 2019 14:03
Custom Export Layouts

Approach

Export layout customization will be done through project-specific plugins which can cater to their individual export image requirements. An export plugin is expected to take over the mid-point of the image generation process during export.

Unlike table plugins, an export plugin does not have any UI component (except for possible options added to the export settings panel) and reuses the default export dialogue. Also, an export plugin is not involved in the last stage of merging separate images into a single export file (this includes checking for tainted canvases according to the config options and providing feedback to the user if the image cannot be saved automatically).

This is intended to simplify development of export plugins, since they don't need to generate their own UI (which generally should stay generic) and deal with tainted images. This, however, does not preclude a plugin develop from disabling the default export functionality and writing a full-replacement export plugin with its

@AleksueiR
AleksueiR / sar-config.json
Last active May 27, 2019 12:51
SAR Config schema
{
"migratoryBirds": {
"en": {
"endpoint": "https://srchsarsandbox02.search.windows.net/indexes/speblobidxen/docs/search?api-version=2017-11-11",
"filters": null,
"sortColumns": [],
"sortSequence": [],
"defaultSort": null,
"exportColumns": [],
"columns": []
@AleksueiR
AleksueiR / index.html
Created April 16, 2019 12:22
Minimum Viable Latest CDTS Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Minimum Viable Latest CDTS Template</title>
<!-- HEAD START -->
@AleksueiR
AleksueiR / main.md
Last active February 26, 2019 13:46
RAMP UI Breakdown
@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"
@AleksueiR
AleksueiR / index.html
Created August 17, 2018 18:24
JS Bin SVG in IE11 // source https://jsbin.com/xoyunut
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="SVG in IE11">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/svg.js/2.5.0/svg.js"></script>
</head>