Skip to content

Instantly share code, notes, and snippets.

View jeserkin's full-sized avatar

Eugene Serkin jeserkin

View GitHub Profile
/* @license C3.js v0.5.2 | (c) C3 Team and other contributors | http://c3js.org/ */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.c3 = factory());
}(this, (function () { 'use strict';
var CLASS = {
target: 'c3-target',
chart: 'c3-chart',
@jeserkin
jeserkin / one-way.module.ts
Last active February 19, 2019 12:10
app-routing.module.ts
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
@jeserkin
jeserkin / animated-text-fill-with-svg-text-practice.markdown
Created August 2, 2018 10:54
Animated text fill with svg text practice
interface ThingIndex {
specialId: number;
}
interface ThingValue {
value: string;
}
const mapOfThings: Map<ThingIndex, ThingValue> = new Map();
return Array.from(mapOfThings.entries())
const webpackConfig = require('../../../webpack/webpack.test.js');
const WATCH = process.argv.includes('--watch');
module.exports = (config) => {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: './',
<div>
<span>Some text!</span>
<ngx-datatable
[rows]="rows"
[columns]="columns">
</ngx-datatable>
</div>
18.02.2018 16:18:09.567 DEBUG [main] [e.s.smartid.rest.SessionStatusPoller.pollSessionStatus:62] - Polling session status
18.02.2018 16:18:09.568 DEBUG [main] [e.s.s.rest.SmartIdRestConnector.getSessionStatus:49] - Getting session status for c4afb059-4c9b-411c-8d4e-5804ab879027
18.02.2018 16:18:09.587 DEBUG [main] [ee.sk.smartid.rest.LoggingFilter.logUrl:58] - GET https://sid.demo.sk.ee/smart-id-rp/v1/session/c4afb059-4c9b-411c-8d4e-5804ab879027
18.02.2018 16:18:09.587 TRACE [main] [ee.sk.smartid.rest.LoggingFilter.logHeaders:64] - Request headers: {Accept=[application/json]}
18.02.2018 16:19:10.177 DEBUG [main] [ee.sk.smartid.rest.LoggingFilter.filter:40] - Response status: 200 - OK
18.02.2018 16:19:10.179 TRACE [main] [ee.sk.smartid.rest.LoggingFilter.logResponseBody:80] - Response body: {"state":"RUNNING"}
18.02.2018 16:19:10.189 DEBUG [main] [e.s.smartid.rest.SessionStatusPoller.pollForFinalSessionStatus:51] - Sleeping for 1 SECONDS
18.02.2018 16:19:10.189 INFO [main] [e.s.smartid.rest.SessionStatusPolle
public class MyClass {
public static void main(String args[]) {
Example.runExample();
AnotherExample.runExample();
}
}
class Example {
private String brand;
private boolean name;
private Collection<String> aggregateSomething(Based on) {
// validationResults is list of objects, that have method `giveMeSomething`. Need to call it in map
return Optional.of(on.getThisSomethingCollection())
.map(validationResults -> ...)
.ifPresent(Collectors.toSet());
}
/**
* ngTable: Table + Angular JS
*
* @author Vitalii Savchuk <[email protected]>
* @url https://github.com/esvit/ng-table/
* @license New BSD License <http://creativecommons.org/licenses/BSD/>
*/
(function(){
/**