Skip to content

Instantly share code, notes, and snippets.

View milichev's full-sized avatar

Vadym Milichev milichev

View GitHub Profile
@milichev
milichev / grb.js
Last active December 13, 2015 16:49
(function(w,d,$){
"use strict";
if (typeof $ == 'undefined'){
alert('no jquery');
return;
}
//d.body.appendChild(d.createElement('script')).src='http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.0-rc.3/lodash.js';
req("http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.0-rc.3/lodash.js", function(){
(function(math) {
"use strict";
function ease(value, start, end, pow) {
/// <summary>
/// Returns eased value for the input in the [start..end] range.
/// </summary>
/// <param name="value">Input value in the [start..end] range to ease.</param>
/// <param name="start">Value range start, default 0.</param>
/// <param name="end">Value range end, default 1.</param>
@milichev
milichev / graph.js
Created March 11, 2014 15:29
simple graphing thingy
function Graph(config) {
// user defined properties
this.canvas = document.getElementById(config.canvasId);
this.minX = config.minX;
this.minY = config.minY;
this.maxX = config.maxX;
this.maxY = config.maxY;
this.unitsPerTick = config.unitsPerTick;
// constants
@milichev
milichev / brtfrc_form.js
Last active May 10, 2018 13:29
Attempts all form control combinations untill all questions are answered.
($=>{
const getSections = ()=>Array.from($('.questionnaire-text[data-lang="en"] section'));
flip();
function flip() {
let pageTryCount = 0;
const insanePageCount = 40;
@milichev
milichev / ng2IntfsRule.js
Last active August 30, 2016 15:55
TsList ng2-intfs rule: Requires the class to declare Angular 2 interfaces if implements their methods
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var ts = require('typescript');
var Lint = require('tslint/lib/lint');
var abstractRule_1 = require('tslint/lib/language/rule/abstractRule');
var Rule = (function (_super) {
  1. Національний портал відкритих даних http://data.gov.ua
  2. Єдиний державний реєстр юридичних осіб та фізичних осіб-підприємців https://usr.minjust.gov.ua
  3. Реєстр платників ПДВ http://sfs.gov.ua/reestr
  4. Анульована реєстрація платників ПДВ http://sfs.gov.ua/anulir
  5. Єдиний ліцензійний реєстр http://irc.gov.ua/ua/Poshuk-v-YeLR.html
  6. Єдиний державний реєстр судових рішень http://www.reyestr.court.gov.ua
  7. Інформація з фондового ринку http://smida.gov.ua/db
  8. Система реалізації конфіскованого та арештованого майна https://trade.informjust.ua
  9. Реєстр громадських об’єднань http://rgo.informjust.ua
  10. Єдиний реєстр громадських формувань http://rgf.informjust.ua/home/index
@milichev
milichev / documents.json
Last active October 20, 2017 15:30
data.gov.ua sample
{
"count": 500,
"docs": [
{
"_id": "59ea1648027df13970ba4ab8",
"kind": 0,
"code": 54781853,
"causeNum": "640/21373/15-к",
"judgeName": "Божко В. В.",
"adjDate": "2015-12-29T22:00:00.000Z",
@milichev
milichev / cassandra.yaml
Last active November 16, 2017 03:54
Connection problem with Cassandra datastax nodejs-driver
# Cassandra storage config YAML
# NOTE:
# See http://wiki.apache.org/cassandra/StorageConfiguration for
# full explanations of configuration directives
# /NOTE
# The name of the cluster. This is mainly used to prevent machines in
# one logical cluster from joining another.
cluster_name: 'Test Cluster'
@milichev
milichev / 1 source.json
Last active November 30, 2017 18:39
BIC surveys
[
{
"surveytype": "BICBD",
"surveyid": 173,
"bisid": 94,
"countryid": 1,
"countryname": "United States",
"countrycode": "US",
"industryid": 17,
"industryname": "Traditional Retail Banks",
@milichev
milichev / ReactComponent.tsx
Created May 17, 2018 12:16
WebStorm Templates
import * as React from 'react';
export interface ${NAME}Props {
}
interface ${NAME}State {
}
export class ${NAME} extends React.Component<${NAME}Props, ${NAME}State> {