Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am chrsm on github.
  • I am chrsm (https://keybase.io/chrsm) on keybase.
  • I have a public key whose fingerprint is FF10 B8AE E76D 39D3 2F49 CA07 9FF6 03CD 5830 305A

To claim this, I am signing this object:

@chrsm
chrsm / Developer_Guide.md
Created April 4, 2022 18:22 — forked from ndarwincorn/Developer_Guide.md
Generalized Developer Guide

Software Development: An Overview

Adapted from Jake's writings specific to the MedInsight development team. This is a living document, pull requests are welcome.

The goal of this document is to describe:

  • A general philosophy
  • Advice for being a good software developer
  • Skills that you should have after approximately a year of full-time developer work, depending on field/responsibilities

Communication

@chrsm
chrsm / list.txt
Last active May 12, 2021 21:17
instances of "self" comparison to nil in go std
/go/1.16.3/libexec/src/bytes/buffer.go:61 fn String *T == nil
if b == nil {
return "<nil>"
}
/go/1.16.3/libexec/src/crypto/rsa/pss.go:253 fn saltLength *T == nil
if opts == nil {
return PSSSaltLengthAuto
}
/go/1.16.3/libexec/src/crypto/tls/common.go:748 fn Clone *T == nil
@chrsm
chrsm / looking-glass.patch
Created February 16, 2020 04:33
looking-glass.patch
diff --git a/common/src/platform/linux/crash.c b/common/src/platform/linux/crash.c
index 218d65f..7b08a41 100644
--- a/common/src/platform/linux/crash.c
+++ b/common/src/platform/linux/crash.c
@@ -98,10 +98,10 @@ static void load_symbols()
static bool lookup_address(bfd_vma pc, const char ** filename, const char ** function, unsigned int * line, unsigned int * discriminator)
{
- if ((bfd_get_section_flags(crash.fd, crash.section) & SEC_ALLOC) == 0)
+ if ((bfd_section_flags(crash.section) & SEC_ALLOC) == 0)

Keybase proof

I hereby claim:

  • I am chrsm on github.
  • I am chrsm (https://keybase.io/chrsm) on keybase.
  • I have a public key ASDpNMsQxDQBovx4_KCocIpKWCYl9_05-Mwav7Fsp7vHowo

To claim this, I am signing this object: