Skip to content

Instantly share code, notes, and snippets.

View jonasmerlin's full-sized avatar
🐽

Jonas Schumacher jonasmerlin

🐽
View GitHub Profile
@jonasmerlin
jonasmerlin / test.dart
Created August 11, 2023 14:48
Refactoring Comparison
if (persistedLink.tx != null) {
bool isMonitoringLinkSameAsPersistedLink = (
monitoringLink.hasSameFirmwareAs(persistedLink) &&
monitoringLink.hasSameCapsuleAs(persistedLink) &&
monitoringLink.hasSameTypeAs(persistedLink)
);
if !(isMonitoringLinkSameAsPersistedLink) {
_storeRepository.updateRxLink(persistedDevice.uuid, monitoringLink);
}
@jonasmerlin
jonasmerlin / add-large-files-to-gitignore.sh
Created October 30, 2017 17:24
A one liner to automatically find large files in a repo and add them to .gitignore
#!/bin/sh
# From https://stackoverflow.com/questions/4035779/gitignore-by-file-size#comment67588584_5200267
find . -size +1G | sed 's|^\./||g' | cat >> .gitignore; awk '!NF || !seen[$0]++' .gitignore
@jonasmerlin
jonasmerlin / read_oaks.md
Last active January 27, 2017 18:22
List of songs missing from this Red Oaks OST Playlist on Spotify: https://open.spotify.com/user/jonasmerl.in/playlist/6ZegTP3oH0z9CvWyNOpJZf

The playlist is based on the info found on tunefind: http://www.tunefind.com/show/red-oaks

Season 1:

  • Loosely Tight - Bombs Away/Renegade/Fightin' Society
  • Blue Shoes - Better/This Must be Love/Hey
  • Brian Page - The Key
  • Bobby Barnes - Neon Lady

Season 2: