Skip to content

Instantly share code, notes, and snippets.

View mgenov's full-sized avatar

Miroslav Genov mgenov

View GitHub Profile
ts_project(
name = "mylib",
extends = "//apps/myapp:tsconfig",
tsconfig = {
"compilerOptions": {
"types": [],
},
},
visibility = [
"//apps/myapp:__subpackages__",
2019-08-24T11:55:43.941586Z info FLAG: --caCertFile="/etc/istio/certs/root-cert.pem"
2019-08-24T11:55:43.941617Z info FLAG: --healthCheckFile="/health"
2019-08-24T11:55:43.941622Z info FLAG: --healthCheckInterval="2s"
2019-08-24T11:55:43.941628Z info FLAG: --help="false"
2019-08-24T11:55:43.941631Z info FLAG: --injectConfig="/etc/istio/inject/config"
2019-08-24T11:55:43.941634Z info FLAG: --injectValues="/etc/istio/inject/values"
2019-08-24T11:55:43.941637Z info FLAG: --kubeconfig=""
2019-08-24T11:55:43.941640Z info FLAG: --log_as_json="false"
2019-08-24T11:55:43.941642Z info FLAG: --log_caller=""
2019-08-24T11:55:43.941645Z info FLAG: --log_output_level="default:info"
pipeline {
agent any
stages {
stage('build matchengine') {
when {
changeset "**/matchengine/*.*"
}
steps {
echo 'building match engine'
}
@mgenov
mgenov / Example.js
Created August 26, 2018 07:25
StackMatch.js
<MatchTabs>
<MatchTab
pathname="/home"
renderContent={props => {
return <RecursiveItem rootPath="/home" />
}}
renderTab={({ isActive }) => (
<Text style={{ color: isActive ? blue : null }}>Home</Text>
)}
/>
const createEventStore = () => {
let data = {}
let subscribers = []
let store = {
saveEvents: (aggregateId, events) => {
if (!data[aggregateId]) {
data[aggregateId] = []
}
events.forEach(event => {
package com.clouway.telcong.pubsub;
import org.jmock.Expectations;
import org.jmock.integration.junit4.JUnitRuleMockery;
import org.junit.Rule;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@mgenov
mgenov / App.js
Created March 14, 2018 14:20
AsyncCall & AsyncAction & AsyncButton
import React from "react";
import { render } from "react-dom";
import Hello from "./Hello";
const styles = {
fontFamily: "sans-serif",
textAlign: "center"
};
const timeoutAction = () => {
override fun init(config: ServletConfig) {
ThreadManager.createThreadForCurrentRequest {
val moduleService = ModulesServiceFactory.getModulesService()
val module = moduleService.currentModule
val versionHostname = moduleService.getVersionHostname(module, moduleService.getDefaultVersion(module))
val sp = versionHostname.split(".")
val moduleName = sp[1]
func marshalChannel(fileName string, channel *outputChannel) error {
f, err := os.Create(fileName)
if err != nil {
return fmt.Errorf("unable to open output file due: %v", err)
}
defer f.Close()
tmp := struct {
outputChannel
@mgenov
mgenov / MyInput.spec.js
Last active October 16, 2017 16:14
Testing RN Input Component with Enzyme
import React, { Component } from 'react'
import { TextInput } from 'react-native'
import { shallow, configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import renderer from 'react-test-renderer'
import { SearchBar } from 'react-native-elements'
configure({ adapter: new Adapter() })
class MyInput extends Component {