Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@project-delphi
project-delphi / pytorch_geometric_apple_silicon_developer_install.sh
Last active March 20, 2024 16:40
pytorch geometric developer install on Apple Silicon
# set variables here
DIR="$HOME/Code/throwaway/pytorch-geometric-developer-install"
PYTHON_VERSION=3.11
RECENT_TORCH_VERSION=2.2.0
GITHUB_USERNAME="project-delphi"
MIN_MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion)
# install miniconda for apple silicon, if not already installed
if [ ! -d "$HOME/anaconda3" ] && [ ! -d "$HOME/miniconda3" ]
then
@SkepticMystic
SkepticMystic / adj.js
Last active October 29, 2022 07:47
Obsidian Adjacency Matrix Maker
<%*
const files = await app.vault.getMarkdownFiles();
const fileDataArr = await files.map(file => {
if (app.metadataCache.getFileCache(file).links) {
const noHeaderLinks = app.metadataCache.getFileCache(file).links
.map(item => item.link.replace(/#.+/g, ''));
return [file.basename, noHeaderLinks];
} else {
return [file.basename, []];
@eljost
eljost / prfo.py
Created April 18, 2019 14:45
Partioned RFO for TS optmization in python
#!/usr/bin/env python3
# Johannes Steinmetzer, April 2019
# See [1] https://pubs.acs.org/doi/pdf/10.1021/j100247a015
# Banerjee, 1985
# [2]
#
import matplotlib.pyplot as plt
import numpy as np
@amroamroamro
amroamroamro / README.md
Last active January 12, 2024 22:12
[Python] Fitting plane/surface to a set of data points

Python version of the MATLAB code in this Stack Overflow post: https://stackoverflow.com/a/18648210/97160

The example shows how to determine the best-fit plane/surface (1st or higher order polynomial) over a set of three-dimensional points.

Implemented in Python + NumPy + SciPy + matplotlib.

quadratic_surface