Skip to content

Instantly share code, notes, and snippets.

@matteoferla
Last active January 31, 2025 15:40
Show Gist options
  • Select an option

  • Save matteoferla/2001c5578c24651bb04ef910004c7d52 to your computer and use it in GitHub Desktop.

Select an option

Save matteoferla/2001c5578c24651bb04ef910004c7d52 to your computer and use it in GitHub Desktop.
I am going to write a comment for every damn IT issue/fix I get...

This is an experiment. Is a GitHub Gist comment a good way to log publically how I fixed an installation or similar issue?

See comments

@matteoferla
Copy link
Author

Recolor pymol sesh by divergent colors, with chain B darker

brights = ['0xEA4747', '0xEAC147', '0x99EA47', '0x47EA70', '0x47EAEA', '0x4770EA', '0x9947EA', '0xEA47C1']
darks = ['0x890F0F', '0x896B0F', '0x4C890F', '0x0F892D', '0x0F8989', '0x0F2D89', '0x4C0F89', '0x890F6B']
[cmd.color(col, f'chain A and {name}') for col, name in zip(brights, cmd.get_names())]
[cmd.color(col, f'chain B and {name}') for col, name in zip(darks, cmd.get_names())]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment