Skip to content

Instantly share code, notes, and snippets.

View quantixed's full-sized avatar

Stephen Royle quantixed

View GitHub Profile
@quantixed
quantixed / minimal-grant-proposals.csl
Last active June 8, 2022 08:08 — forked from antoncrombach/minimal-grant-proposals.csl
Updated to match my preferred UKRI application style
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<info>
<title>Minimal style for grant proposals</title>
<!--<id>http://csl.mendeley.com/styles/20448741/minimal-grant-proposals</id>-->
<id>http://www.zotero.org/styles/minimal-grant-proposals</id>
<link href="http://www.zotero.org/styles/minimal-grant-proposals" rel="self"/>
<author>
<name>Anton Crombach</name>
<email>anton.crombach@gmail.com</email>
@quantixed
quantixed / optimal-grant-proposals.csl
Created August 8, 2022 08:11
An alternative citation style layout for UKRI grant proposals, for when you have a bit more space
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<info>
<title>Optimal style for grant proposals</title>
<!--<id>http://csl.mendeley.com/styles/20448741/minimal-grant-proposals</id>-->
<id>http://www.zotero.org/styles/optimal-grant-proposals</id>
<link href="http://www.zotero.org/styles/optimal-grant-proposals" rel="self"/>
<author>
<name>Anton Crombach</name>
<email>anton.crombach@gmail.com</email>
@quantixed
quantixed / discogsGenresStyles.csv
Created August 26, 2022 06:02
Discogs database Styles with parent Genre
Genre Style
Blues Boogie Woogie
Blues Chicago Blues
Blues Country Blues
Blues Delta Blues
Blues East Coast Blues
Blues Electric Blues
Blues Harmonica Blues
Blues Hill Country Blues
Blues Jump Blues
@quantixed
quantixed / cue_to_flac.py
Last active November 25, 2023 17:03 — forked from mervick/cue_to_flac.py
CUE splitter using ffmpeg (to flac)
#!/usr/bin/python3
import argparse
import os
import subprocess
def main():
parser = argparse.ArgumentParser(description='Split flac file using cue')
parser.add_argument('cue', type=str, help='path to cue file')
parser.add_argument('--cover', type=str, help='path to cover image')
@quantixed
quantixed / snapshotModel.sh
Created January 17, 2024 10:24
shell script to open each pdb file in a file tree, colour by chain and take a raytraced image
#!/bin/zsh
# Find all *.pdb files recursively
find . -name "*.pdb" | while read -r file; do
# Extract the filename without extension
filename=$(basename "$file" .pdb)
# Extract the name of the directory
dirname=$(dirname "$file")
# Concatenate the directory name and the filename, separated by an underscore
output="${dirname}_${filename}"