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 / index.html
Last active April 16, 2018 16:27
CMIP5 x5 Demo page
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>dqvue</title>
<!-- if you need IE support -->
<!-- <script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script> -->
@AleksueiR
AleksueiR / ramp.html
Last active March 27, 2018 13:38
Animated Ramp
<!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>
@AleksueiR
AleksueiR / hoop.html
Last active February 23, 2018 16:21
Hoop-a-meter
<!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>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
@AleksueiR
AleksueiR / things.md
Last active February 15, 2018 13:28
CIP - maintenance issues

Routes and bookmark and app store

  • need to select a set of parameters that go into the bookmark [store/app.ts]
    • right now we use: timePeriodId, variableId, datasetId, stationId, centerPoint, zoomLevel
    • change stationId to featureId since not all the data is in points
    • add interestPoint parameter storing the location of the station/user-click on the polygon (this will be used to center to top-map in the chart-view)
    • is there anything else we need to plan for with future datasets?
    • are we concerned about url length?
  • add the current view is also stored on the bookmark (map/chart) to the app store [store/app.ts]
  • need to fix query parsing logic (loading from a bookmark) [app.vue, components/map-instance.vue]
@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 .
@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 / 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()"],
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<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