Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Gonçalo Silva goncalossilva

🚀
View GitHub Profile
View gist:dd743c0848ca1eaeb7e7357224ca2abf
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Electron [38612]
Path: /Users/USER/*/Electron.app/Contents/MacOS/Electron
Identifier: com.github.Electron
Version: 16.0.6 (16.0.6)
Code Type: ARM-64 (Native)
Parent Process: Exited process [38611]
@goncalossilva
goncalossilva / UUID.kt
Created Dec 15, 2021
Kotlin Multiplatform implementation of UUID version 4.
View UUID.kt
import kotlin.random.Random
import kotlin.random.nextUBytes
@Suppress("UnnecessaryAbstractClass", "MagicNumber", "ComplexCondition")
abstract class UUID private constructor(private val random: Random = Random.Default) {
constructor(seed: Int) : this(Random(seed))
/**
* From [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122), the UUID string
* representation follows the structure:
View ffs.txt
Goals
- Excellent performance
- Small library sizes
- Unbloated feature set
- OSS first and foremost
---
- On/off
- Percentage rollouts (X% true, Y% false)
View doist-engineering-values.md

Engineering values

Our engineering values help us model our behavior, culture, and decision-making. They complement Doist's Core Values, guiding our approach to building and maintaining technology.

Continuous Improvement

We relentlessly pursue continuous improvement, and are adamant about regressions. We're skeptical of heroic efforts, focusing instead on steady steps towards defined goals.

We leave things better than how we found them, even if we don't own them. We frequently perform opportunistic refactors, automate, and prioritize the long term over the short term.

View accelerate.md

This is true because software delivery is an exercise in continuous improvement, and our research shows that year over year the best keep getting better, and those who fail to improve fall further and further behind.

Page xxii | Preface


The most innovative companies and highest-performing organizations are always striving to be better and never consider themselves "mature" or "done" with their improvement or transformation journey—and we see this in our research.

Page 6, Chapter 1: Accelerate

View positive-reinforcement-circles.txt
Positive reinforcement circles
4 metrics:
- Lead time
- Release frequency
- Time to restore
- Change fail rate
CD:
- Lowers lead time, increases release frequency, lowers time to restore
View open-with.py
#!/usr/bin/env python3
#
# Open With Nautilus Extension.
#
# Install python-nautilus and put this in ~/.local/share/nautilus-python/extensions/.
from gi import require_version
require_version("Gtk", "3.0")
require_version("Nautilus", "3.0")
View gist:3390929c78b0cfc1dceff447387472f4
javascript:document.addEventListener("click",async function(e){if(e.target&&e.target.classList.contains("item_checkbox")&&!e.target.checked){var a=new Audio("https://themushroomkingdom.net/sounds/wav/smw/smw_coin.wav");a.type="audio/wav";await a.play()}})
View gist:0964bd49ff117d36b75b7c242c233d0f
// On a Huawei Watch
// 2225ms
for (i in 0..10000) {
launch(UI) {
withContext(DefaultDispatcher) { }
}
}
// 10ms
View 40-catleap.conf
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Catleap"
HorizSync 143.073
VertRefresh 95.002
Modeline "2560x1440_95" 389.16 2560 2608 2640 2720 1440 1443 1448 1506 +hsync -vsync
Option "DPMS"
EndSection