Skip to content

Instantly share code, notes, and snippets.

View jhwilson's full-sized avatar

Justin H. Wilson jhwilson

  • Department of Physics & Astronomy, Louisiana State University
  • Baton Rouge, LA
  • X @qgp07
View GitHub Profile
@jhwilson
jhwilson / compressPDF.bat
Last active September 17, 2023 18:32
pdf compression
@echo off
setlocal
:: Prompt user to select a PDF using PowerShell
for /f "delims=" %%i in ('powershell -command "[System.Reflection.Assembly]::LoadWithPartialName('System.windows.forms') | Out-Null; $OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog; $OpenFileDialog.InitialDirectory = [Environment]::GetFolderPath('Desktop'); $OpenFileDialog.Filter = 'PDF Files (*.pdf)|*.pdf'; $OpenFileDialog.ShowDialog() | Out-Null; $OpenFileDialog.FileName"') do set "pdfPath=%%i"
:: Exit if no file was selected
if "%pdfPath%"=="False" (
echo No file selected. Exiting...
exit /b
@jhwilson
jhwilson / surface_data.dat
Created February 11, 2021 15:13
Data for a Surface in Mathematica
{{{0,0},-0.0483803},{{1,0},-0.025824},{{2,0},-0.00912573},{{3,0},0.00229653},{{4,0},0.0103846},{{-5,0},0.0156197},{{-4,0},0.0103846},{{-3,0},0.00229653},{{-2,0},-0.00912573},{{-1,0},-0.025824},{{0,1},-0.025824},{{1,1},-0.0130118},{{2,1},-0.00131015},{{3,1},0.00733983},{{4,1},0.0137264},{{-5,1},0.0137264},{{-4,1},0.00733983},{{-3,1},-0.00131015},{{-2,1},-0.0131053},{{-1,1},-0.025841},{{0,2},-0.00912573},{{1,2},-0.00131015},{{2,2},0.00606446},{{3,2},0.0119273},{{4,2},0.0143218},{{-5,2},0.0119273},{{-4,2},0.00606446},{{-3,2},-0.00131015},{{-2,2},-0.00915333},{{-1,2},-0.0131597},{{0,3},0.00229653},{{1,3},0.00733983},{{2,3},0.0119273},{{3,3},0.0149202},{{4,3},0.0131893},{{-5,3},0.0119273},{{-4,3},0.00733983},{{-3,3},0.00202269},{{-2,3},-0.00131015},{{-1,3},-0.00131015},{{0,4},0.0101074},{{1,4},0.0137264},{{2,4},0.014987},{{3,4},0.0129192},{{4,4},0.0148762},{{-5,4},0.0137264},{{-4,4},0.0100037},{{-3,4},0.00733983},{{-2,4},0.00561601},{{-1,4},0.00733983},{{0,-5},0.0156197},{{1,-5},0.0137264},{{2,-5},0.0119273},{{3,-

Keybase proof

I hereby claim:

  • I am jhwilson on github.
  • I am jhwilson (https://keybase.io/jhwilson) on keybase.
  • I have a public key whose fingerprint is 4B0A 9D9A 232C 891B 7FF7 2951 EA9A C3EC 759B 79F6

To claim this, I am signing this object:

#!/usr/bin/env python
# org-mode-agenda-push-bullet.py
# Load org-mode agenda items, then push each item as a notification with PushBullet.
# Notication form:
# - Title: "Agenda Item: <CATEGORY>"
# - Note: "<TODO ITEM>"
from subprocess import Popen, PIPE
#from time import strptime
@jhwilson
jhwilson / jhwhw.cls
Created October 11, 2011 16:25
JHW document class for Homework assignments
%=====================================================================
% jhwhw.cls
% Provide jhwhw.cls class
%=====================================================================
%=====================================================================
% Identification
%=====================================================================
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class]