Skip to content

Instantly share code, notes, and snippets.

View andreabrduque's full-sized avatar
🎯
Focusing

Andréa Duque andreabrduque

🎯
Focusing
  • Hypefactors
  • Copenhagen
View GitHub Profile
@fanf
fanf / zio-answers-scalac.md
Last active November 17, 2021 06:59
Jan Nasiadka interview questions about ZIO

Jan Nasiadka from scalac contacted me to get some feedback about our usage of ZIO. My answers below, since they can benefit the community more broadly.

Context: we use ZIO in the context of https://rudder.io, a scala application that is 11 years old - far from a greenfield application with ZIO as base architectural choice. We used ZIO as a better framework to cleanly manage errors, porting piece of existing code to it. We are part of ZIO community since 2018 (since ZIO inception, when it was not yet ZIO but a part of scalaz, and when there was only a bifunctor, no context in it). Given our usage, we use ZIO in a specific way: we have tons of entry points and evaluation of ZIO effects, not one main entry point in the "main" method of the app. For correctness, that forced us to call a lot of blocking effects (you never know what a java lib is doing), and so we stressed the thread pool ergonomics, and helped make that part better (and some part

@nguyenvietyen
nguyenvietyen / bash.md
Last active September 2, 2020 10:31
My frequently used shell scripts

Bash Cheatsheet

This extends upon https://devhints.io/bash

CHANGELOG

Version When Who What
1.0.0 2020-09-02 Viet Yen Nguyen First version

String Manipulation

@messa
messa / demo.py
Last active September 19, 2022 03:32
MongoDB pymongo bulk update all documents in a collection
#!/usr/bin/env python3
from bson import MinKey
import pymongo
from pymongo import ASCENDING
client = pymongo.MongoClient()
db = client['test']
collection = db['dataset']