Skip to content

Instantly share code, notes, and snippets.

View apalchys's full-sized avatar
👨‍💻

Andrei apalchys

👨‍💻
View GitHub Profile
Index Name Githubid Points Score
1 konstantin agafonov kagafon 10030 25
2 alexander oleshkevich araneusx 6510 25
3 maxim tsymanovich tsyman 5150 25
4 dmitry lebetsky dmitrylebetsky 4410 25
5 yaroslav denisiuk arcanar7 3420 25
6 andrey knyshenko just-ankn-repo 2610 25
7 kostya dedulya kostyadedulya 2340 25
8 nickolay kroh krohnic 1830 25
9 igor musmen musmen 1810 25
githubId repository
a1exgri https://github.com/rolling-scopes-school/a1exgri-RS2019Q3
abramsa1 https://github.com/rolling-scopes-school/abramsa1-RS2019Q3
absolutelyvoid https://github.com/rolling-scopes-school/absolutelyvoid-RS2019Q3
alekseyswork https://github.com/rolling-scopes-school/alekseyswork-RS2019Q3
alesiabalan https://github.com/rolling-scopes-school/alesiabalan-RS2019Q3
alex734 https://github.com/rolling-scopes-school/alex734-RS2019Q3
anastasiiast https://github.com/rolling-scopes-school/anastasiiast-RS2019Q3
andreigadjyla https://github.com/rolling-scopes-school/andreigadjyla-RS2019Q3
ann1121 https://github.com/rolling-scopes-school/ann1121-RS2019Q3
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Plotly=t()}}(function(){var t;return function t(e,r,n){function a(o,l){if(!r[o]){if(!e[o]){var s="function"==typeof require&&require;if(!l&&s)return s(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return a(r||t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(t,e,r){"use strict";var n=t("../src/lib"),a={"X,X div":"font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;","X input,X button":"font-family:'Open Sans', verdana, arial, sans-serif;","X input:focus,X button:focus":"outline:none;","X a":"text-decoration:
@apalchys
apalchys / autoYScale.min.js
Created October 16, 2017 14:16
autoyscale
!function(){Plotly.newPlotWithYScale=function(a,e,t,n){function l(a){a.style.position="relative",a.insertBefore(r(),a.firstChild);var e=document.getElementById("yscale");e.addEventListener("click",i)}function r(){var a=document.createElement("div"),e=document.createElement("button");return e.id="yscale",e.className="active",e.innerHTML="YScale",a.appendChild(e),a.style.position="absolute",a.style.left="5px",a.style.top="5px",a.style.zIndex="2",a}function i(){var a=document.getElementById("yscale");x=!x,x?a.className="active":a.className=""}function o(a,e,t){var n=Math.abs(t-e),l=.03;return l*n}function s(a){var e=new Date(a);return e.getTime()}function u(a){var e;if("string"==typeof a){if(e=document.getElementById(a),null===e)throw new Error("No DOM element with id '"+a+"' exists on the page.");return e}if(null===a||void 0===a)throw new Error("DOM element provided is null or undefined");return a}a=u(a),l(a);var x=!0;a.on("plotly_relayout",function(e){if(x){var t=e["yaxis.range[0]"]&&e["yaxis.range[1]"],n=e["x
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Plotly=t()}}(function(){var t;return function t(e,r,n){function a(o,l){if(!r[o]){if(!e[o]){var s="function"==typeof require&&require;if(!l&&s)return s(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return a(r||t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(t,e,r){"use strict";var n=t("../src/lib"),a={"X,X div":"font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;","X input,X button":"font-family:'Open Sans', verdana, arial, sans-serif;","X input:focus,X button:focus":"outline:none;","X a":"text-decoration:
import { ITag } from './tag';
import { IContainerPosition } from './containerPosition';
import { ContainerType } from './containerType';
import { IChallenge } from './challenge';
import { IEntityWithComments } from './entityWithComments';
interface IContainer extends IEntityWithComments {
_id: string;
accountManager: { id: string; name: string };
function (input, strict) {
input = input || '';
//we shouldn't ignore timezone offset.
var re = new RegExp('\\\\?/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\\\?/'),
offset = /[+-]\d{4}/;
var r = input.match(re),
timezone = input.match(offset),
offset = 0;
if (timezone && timezone.length) {
timezone = timezone[0];
$(window).scroll(function() {
$('#toolbar').css('top', window.pageYOffset + 'px');
});