This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function FitCircleTo2DCoords(w) | |
Wave w | |
// requires 2D numeric wave with two columnns corresponding to xy coords | |
if(Dimsize(w,1) != 2) | |
return -1 | |
endif | |
// make two 1D waves for x and y coords | |
SplitWave/O/NAME="xW;yW;" w | |
Wave xW,yW | |
// solve in terms of u and v coordinates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Figure out the width of png images for Overleaf | |
* png are 300 dpi and page width is 170 mm | |
*/ | |
#@ File (label = "Input directory", style = "directory") input | |
#@ String (label = "File suffix", value = ".png") suffix | |
setBatchMode(true); | |
processFolder(input); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[General] | |
IniMode=true | |
[formats] | |
data\align-ampersand\bold=true | |
data\align-ampersand\fontFamily= | |
data\align-ampersand\foreground=#dc8cc3 | |
data\align-ampersand\italic=false | |
data\align-ampersand\overline=false | |
data\align-ampersand\pointSize=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************** | |
* Script to save a directory of ai files to PNG | |
* Options are: white bakcground, 300 dpi and clipped to artboard | |
*****************************************************************/ | |
var folder = Folder.selectDialog(); | |
if (folder) { | |
var files = folder.getFiles("*.ai"); | |
for (var i = 0; i < files.length; i++) { | |
var currentFile = files[i]; | |
app.open(currentFile); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Setup preferred directory structure in wd | |
ifelse(!dir.exists("Data"), dir.create("Data"), "Folder exists already") | |
ifelse(!dir.exists("Output"), dir.create("Output"), "Folder exists already") | |
ifelse(!dir.exists("Output/Data"), dir.create("Output/Data"), "Folder exists already") | |
ifelse(!dir.exists("Output/Plots"), dir.create("Output/Plots"), "Folder exists already") | |
ifelse(!dir.exists("Script"), dir.create("Script"), "Folder exists already") |
NewerOlder