Skip to content

Instantly share code, notes, and snippets.

View edtsech's full-sized avatar
🕵️‍♂️

Eduard Tsech edtsech

🕵️‍♂️
  • Prague, Czech Republic
View GitHub Profile
@edtsech
edtsech / keybindings.json
Created July 3, 2019 20:02
VSCode: Exit Vim Insert Mode on File Save
[
{
"key": "cmd+s",
"command": "macros.saveAndExitVimInsertMode"
}
]
@edtsech
edtsech / lightning_talk_proposal.md
Last active January 31, 2023 07:29
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
edtsech / merge.rb
Created December 23, 2012 18:07
Merge two hashes/dictionaries in Ruby and Python.
h1 = { "a" => 100, "b" => 200 }
h2 = { "b" => 254, "c" => 300 }
h3 = h1.merge(h2)
h3 #=> {"a"=>100, "b"=>254, "c"=>300}
h1 #=> { "a" => 100, "b" => 200 }
import React from 'react'
import * as ReactQuill from 'react-quill'
import { merge } from 'lodash'
import 'react-quill/dist/quill.snow.css'
const QUILL_MODULES = {
toolbar: [
['bold', 'italic', 'underline'],

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

Some stuff people say about retrospectives:

“I hate scrum and everything about it”

Retrospectives don’t come from Scrum. They don’t even come from Agile. If you know continuous improvement approach sometimes fancy called Kaizen, initially implemented in Toyota it comes from there. But the idea of retrospectives is probably as old as the world.

![cycle](https://ucbbfb7ed7b11596645e3b3e61d6.previews.dropboxusercontent.com/p/thumb/AA0DNRBX2JC_7hLLhtGWL-2__rgfZ00Bjj6-P-AGHaIOWLemQIrmKczW-EbDd4tjIwcMJji2sJrLMK-Y8QR-efkTMu85MDYFNqcn8Fd6wM6uMnYpggcwuA5VhGnqhnB7ZMDv7LdFiDb_HAtWfiAMRShbuQOuJKp0hxBe33IkkRBypRDnpfesZo03oTg5Jjyu9oqJpXSETDJTxE4Lap6tEJ9etX8gc79S9arkLXJj_aUTHq17YCNBTOhyiTKbvs6PyrEPdmH3jTazRF1NAIwrKUhm4f5oT1PbRAXELsveGFQthOFs91Pb3DOt73NsznSAPefL-EGofeL-TfKfj_5YsBejpphwg4aaaA5oT1ci3AVfJWrGdsLVkQtT7k4uzAtu1ETn6dua7Hpb_2LKBuElgKFT/p.jpeg?fv_content=true&s

@edtsech
edtsech / retro.md
Created July 24, 2020 12:28
Thoughts on Retrospectives
title published description tags
Thoughts on Retrospectives
false
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.

/// <reference types="cypress"/>
import createEmptyDb from '../../../back-end/test/create-empty-db'
describe('Demo test', () => {
before(async () => {
await createEmptyDb()
})
...
})
@Field({
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) {
@edtsech
edtsech / check.ts
Created June 24, 2019 12:11
Check TypeScript files for type errors (ignoring imported files)
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
edtsech / update.md
Last active August 17, 2018 14:36
Weekly update 17.08.2018

Weekly update 17.08.2018

FlyPrivate

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.