Skip to content

Instantly share code, notes, and snippets.

View daeh's full-sized avatar

Dae daeh

View GitHub Profile
@daeh
daeh / default-template.md
Last active May 6, 2022 04:30
obsidian-default-template
created assets tags
<% tp.date.now('YYYY-MM-DD') %>T<% tp.date.now('HH-mm') %>
<% tp.file.path(false).split('/').slice(0, -1).join('/') + '/_resources/' + tp.file.title + '.assets/' %>

<% tp.file.title %>

assets

@daeh
daeh / asset-helper.py
Last active September 25, 2023 19:04
Obsidian Templater Helper to Insert Clipboard Contents into MD Notes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Obsidian Templater Helper to Insert Clipboard Contents into MD Notes
Use Templater to control how Obsidian processes images pasted into notes.
N.B. Its functionality would be better as a plugin. This solution is fairly hacky.
Only tested on MacOS with Python 3.8.
Image in clipboard is saved to:
@daeh
daeh / pyscript.py
Last active April 12, 2024 19:45 — forked from n8henrie/pyscript.py
Python script template
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""pyscript.py
Simple python script template.
"""
import argparse
import os
import sys
@daeh
daeh / Papers3_to_Zotero.py
Last active April 12, 2024 19:44
Import Papers 3 library into Zotero
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Script to facilitate the import of a Readcube Papers 3 library into Zotero
__Purpose of this script__
If you export your Readcube (Mekentosj) Papers3 library as a BibTeX file, the file paths to the PDFs are not formatted
correctly for Zotero to import them.
@daeh
daeh / BESTpymc3.ipynb
Last active December 14, 2018 16:45
PyMC3 implementation of Kruschke's BEST
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@daeh
daeh / fsl_first_level.ipynb
Created December 9, 2018 02:47
Example scripts for nipype fmri analysis (first level fsl) following FMRIPREP preprocessing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am daeh on github.
  • I am daeh (https://keybase.io/daeh) on keybase.
  • I have a public key ASABGJRStzfA5j3f9o1yXRw2nODRCP1Qjq4VNfnbhb0dGgo

To claim this, I am signing this object: