Skip to content

Instantly share code, notes, and snippets.

View mrtnzlml's full-sized avatar
I may be slow to respond.

Martin Zlámal mrtnzlml

I may be slow to respond.
View GitHub Profile
mrtnzlml / sx.generated.css
Created July 9, 2021 00:00
CSS generated by SX ( on a more complex page (Abacus BO - products grid)
View sx.generated.css
.hECNM {
--sx-error-lighter: 247, 212, 214;
._4wLsl0 {
--sx-error-light: 255, 26, 26;
._4Coem6 {
--sx-error: 238, 0, 0;
.zPcsP {
mrtnzlml / store-with-id.json
Created February 6, 2020 14:49
Internal structure of Relay store. Notice the difference for "AllHotelAvailabilityHotel" type. First JSON is an example of AllHotelAvailabilityHotel WITH GraphQL ID and second JSON shows how is it being stored when such ID doesn't exist.
View store-with-id.json
"client:root": {
"__id": "client:root",
"__typename": "__Root",
"allAvailableBookingComHotels(search:{\"checkin\":\"2020-02-13\",\"checkout\":\"2020-02-15\",\"cityId\":\"SG90ZWxDaXR5Oi0zNzI0OTA=\",\"roomsConfiguration\":[{\"adultsCount\":2}]})": {
"__ref": "client:root:allAvailableBookingComHotels(search:{\"checkin\":\"2020-02-13\",\"checkout\":\"2020-02-15\",\"cityId\":\"SG90ZWxDaXR5Oi0zNzI0OTA=\",\"roomsConfiguration\":[{\"adultsCount\":2}]})"
"client:root:allAvailableBookingComHotels(search:{\"checkin\":\"2020-02-13\",\"checkout\":\"2020-02-15\",\"cityId\":\"SG90ZWxDaXR5Oi0zNzI0OTA=\",\"roomsConfiguration\":[{\"adultsCount\":2}]})": {
"__id": "client:root:allAvailableBookingComHotels(search:{\"checkin\":\"2020-02-13\",\"checkout\":\"2020-02-15\",\"cityId\":\"SG90ZWxDaXR5Oi0zNzI0OTA=\",\"roomsConfiguration\":[{\"adultsCount\":2}]})",
View poem.txt
Once upon a time,
you join a company and you have to rhyme.
This story begins at the end of last year,
when I was in Mexico and changing career.
Pipedrive seemed to be quite a good choice,
but I also had to hear my internal voice.
Should I go or should I stay,
mrtnzlml / cmdParser.js
Created October 24, 2019 00:59
WIP (well, abandoned)
View cmdParser.js
// @flow strict
function terminate(help, error) {
console.error('%s\n\n%s', help, error);
* Goal of this parser is to create less awkward tool for working with command line. You just
* have to write a help screen and the rest is responsibility of this parser.
mrtnzlml / slack.js
Created September 30, 2019 18:02
Downloading Slack emojis
View slack.js
import fs from 'fs';
import path from 'path';
import fetch from '@kiwicom/fetch';
// See:
import { emoji } from './emoji.json';
(async function() {
for (const [name, link] of Object.entries(emoji)) {
const downloadLink = link;
mrtnzlml /
Created August 16, 2019 20:12
Facebook monorepo reverse engineering
fbandroid/xplat/yoga/BUCK							# xplat ??

fbobjc/VendorLib/IGListKit/src/					# Instagram
View stableStringify.js
// @flow strict
import isObject from './isObject';
// Inspiration (modified and fixed stability):
* @see
* @see
mrtnzlml / graphql-1.txt
Last active May 1, 2019 15:54
GraphQL Summit 2017 in San Francisco
View graphql-1.txt
GraphQL at massive scale
- IBM cloud = node micro services (30+ teams) - separate codebases
- frontend need to fetch data from multiple endpoints (bad documentation) - it’s a inconsistent mess
- graphql centralize this - grapnel microservice (single endpoint), documentation included
- data sources (schema + resolvers + model + connector) = plugin (independent GitHub repo)
- GrAMPS Middleware (schema stitching)
- extended error messages (GUID, documentation links
- datasource starter kit (strong starting point for new data sources)
- GitHub: grapms-graphql/gramps-express (based on Apollo server) - MIT licence - GraphQL Apollo Microservice Patterns Server
mrtnzlml /
Last active September 12, 2017 18:41

Keybase proof

I hereby claim:

  • I am mrtnzlml on github.
  • I am mrtnzlml ( on keybase.
  • I have a public key ASADGpO1TWE5EpWhUVa2Mpr6qLDYCh9PULMZRU-z9ICW7wo

To claim this, I am signing this object: