Skip to content

Instantly share code, notes, and snippets.


Eduard Tsech edtsech

  • Prague, Czech Republic
View GitHub Profile
edtsech /
Last active Nov 21, 2017
Combining snapshot testing and component library -- ReactiveConf 2017 talk proposal

This is a proposal for a lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal!

Combining snapshot testing and component library

Do you test presentational logic of your components? No? Yes, but you feel like you are writing a lot of dummy tests? You even probably use snapshot tests for that, but don't feel like you make enought value from them..

If so, click 🌟 button on that Gist!

I'll talk how our team is using snapshot testing to iterate faster,

edtsech /
Last active Aug 18, 2017
Testshot + create-react-app guide w/o ejecting

How to integrate Testshot with an application bootstrapped with create-react-app

In this tutorial we are going to integrate Testshot with create-react-app which uses Webpack.

Let's bootstrap an application

create-react-app react-app
cd react-app

Passive Noise Isolation vs Active Noise Canceling – What’s the Difference?


There is quite a difference between noise isolation and noise cancellation that most people are probably not aware of.

Passive noise isolation isolates all outside sound, generally 25 dB – 30 dB, so if you want to lower all outside noise and just focus on your music, this is the best option.

Active noise canceling works slightly differently, it uses a microphone to record all low frequency noise, like the humming of a plane or helicopter engine (active noise canceling was first developed for helicopter pilots) and then sends the opposite sound to your ears through headphones to “cancel” it. This is a greatly simplified explanation. In the end, it usually cancels around 15 dB of noise.

edtsech /
Last active Aug 17, 2018
Weekly update 17.08.2018

Weekly update 17.08.2018


DiamondBank & GTBank integration

- We went through couple of iterations regarding API design with both banks.
- We were able to unify the API so we don't have to develop it twice.
- We've provided demo API gateway to them. They can use it for integration process.
- On Monday we starting to develop API according to the specification we discussed with them.
edtsech / check.ts
Created Jun 24, 2019
Check TypeScript files for type errors (ignoring imported files)
View check.ts
const _ = require('lodash')
const ts = require('typescript')
const config = require('./tsconfig.json')
let exitStatus = 0
const files = process.argv.slice(2)
const compilerOptions = _.omit(config.compilerOptions, ['moduleResolution'])
compilerOptions.noEmit = true
compilerOptions.lib = ['lib.dom.d.ts']
edtsech / keybindings.json
Created Jul 3, 2019
VSCode: Exit Vim Insert Mode on File Save
View keybindings.json
"key": "cmd+s",
"command": "macros.saveAndExitVimInsertMode"
View xxx.ts
type: () => TopicEnrolmentModel,
description: `creates a new enrolment if retries are allowed`
async reEnrol(
@Context ctx: UserSessionModel
) {
const tv = await this.$relatedQuery('currentTopicVersion')
if (tv.allow_retry) {
View demo.spec.ts
/// <reference types="cypress"/>
import createEmptyDb from '../../../back-end/test/create-empty-db'
describe('Demo test', () => {
before(async () => {
await createEmptyDb()
View CustomQuill.tsx
import React from 'react'
import * as ReactQuill from 'react-quill'
import { merge } from 'lodash'
import 'react-quill/dist/quill.snow.css'
toolbar: [
['bold', 'italic', 'underline'],
edtsech /
Created Jul 24, 2020
Thoughts on Retrospectives
title published description tags
Thoughts on Retrospectives
agile, scrum, retro

People frequently blame retrospectives being unproductive and boring. But it’s the same as blaming Vodka for getting drunk. Execution is the key.