Skip to content

Instantly share code, notes, and snippets.

View Nidish96's full-sized avatar

Nidish Narayanaa Balaji Nidish96

  • Stuttgart, Germany
View GitHub Profile
@Nidish96
Nidish96 / org-capture-local.el
Last active November 13, 2023 10:29
An Org-capture template to enable maintaining a directory-local notes file for notes that can be shared/version controlled with a project.
(setq org-default-notes-file (concat org-directory "/notes.org"))
(defvar org-local-notes-file)
(defun my/org-local-get-target ()
(if (boundp 'org-local-notes-file)
(expand-file-name org-local-notes-file)
(if (y-or-n-p "A local org note doesn't exist. Create/choose one? ")
(progn
(add-dir-local-variable
nil 'org-local-notes-file
@Nidish96
Nidish96 / ReadAbaqusMtx.sh
Last active September 11, 2018 22:12
A short bash script (with a Python here doc) to extract matrices from an abaqus mtx file. The test case for this is a substructure matrix output analysis outputting the mass, stiffness and some recovery matrix rows. It assumes the matrix storage to be in dense symmetric form. Avoided unnecessary conditionals for readability. Hope it helps someon…
#!/bin/sh
if [ $# = 1 ]
then
echo "Correct call!"
else
echo "Wrong call - quitting!"
return
fi
echo "Preprocessing mtx files"
@Nidish96
Nidish96 / sow.el
Last active February 20, 2017 14:03 — forked from politza/scroll-other-window.el
scroll-other-window.el
;;; sow.el --- Variable commands for scrolling the other window.
;; Copyright (C) 2016 Andreas Politz
;; Author: Andreas Politz <politza@fh-trier.de>
;; Keywords: extensions, frames
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or