Skip to content

Instantly share code, notes, and snippets.

View sethrj's full-sized avatar
👾

Seth R. Johnson sethrj

👾
View GitHub Profile
@sethrj
sethrj / diffsq.ipynb
Created January 26, 2024 20:07
Difference of squares precision
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sethrj
sethrj / relocate_music.py
Created February 10, 2014 02:31
Move all music files from your itunes Library to another directory, using the "Library -> Export Playlist" data file.
###############################################################################
# File : seth/relocate_music.py
# Author: Seth R Johnson
# Date : Mon Feb 03 00:24:31 2014
###############################################################################
from __future__ import (division, absolute_import, print_function, )
#-----------------------------------------------------------------------------#
import csv
from collections import namedtuple
import logging as log
@sethrj
sethrj / trilinos.patch
Created September 27, 2011 18:58
Patch Trilinos 10.x to have fewer warnings in GCC
diff -crB original-packages/amesos/src/Amesos_BaseSolver.h packages/amesos/src/Amesos_BaseSolver.h
*** original-packages/amesos/src/Amesos_BaseSolver.h 2010-12-09 12:24:45.000000000 -0500
--- packages/amesos/src/Amesos_BaseSolver.h 2011-03-05 13:51:01.000000000 -0500
***************
*** 409,414 ****
--- 409,415 ----
//! Redefined from Teuchos::ParameterListAcceptor
virtual void setParameterList(Teuchos::RCP<Teuchos::ParameterList> const& paramList)
{
+ (void)paramList;