This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[project] | |
name = "dsbook" | |
version = "0.1.0" | |
description = "Add a short description here" | |
dependencies = [ | |
"numpy>=1.24.4", | |
"scipy>=1.10.1", | |
"pandas>=2.0.3", | |
"matplotlib>=3.7.2", | |
"plotly>=5.15.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CairoMakie | |
using Cairo | |
using Poppler_jll | |
@recipe(PDF) do scene | |
Attributes( | |
bbox = BBox(0, 100, 0, 100) | |
) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; This elisp code uses use-package, a macro to simplify configuration. It will | |
;; install it if it's not available, so please edit the following code as | |
;; appropriate before running it. | |
;; Note that this file does not define any auto-expanding YaSnippets. | |
;; Install use-package | |
(package-install 'use-package) | |
;; AucTeX settings - almost no changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f(x::Int) = "$x is an integer" | |
f(x::String) = "$x is a string" | |
g = x::Int -> "$x is an integer" | |
g = x::String -> "$x is a string" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@see rynop.com for details | |
sudo apt-get install xbindkeys | |
####now put the following in ~/.xbindkeysrc: | |
#KeyboardPlay | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" | |
XF86AudioPlay | |
#KeyboardStop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Convert all arguments (assumed SVG) to a TIFF acceptable to PLOS | |
# Requires Inkscape and ImageMagick 6.8 (doesn't work with 6.6.9) | |
for i in $@; do | |
BN=$(basename $i .svg) | |
inkscape --without-gui --export-png="$BN.png" --export-dpi 300 $i | |
convert -compress LZW -alpha remove $BN.png $BN.tiff | |
mogrify -alpha off $BN.tiff |