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
set terminal qt | |
tg_L=0 | |
bind "L" "tg_L=tg_L+1;if(tg_L%2)set logs;replot; else unset logs;replot;" | |
tg_k=1 | |
bind "k" "tg_k=tg_k+1;if(tg_k%2)set key;replot; else unset key;replot;" | |
tg_l=0 | |
bind "-" "tg_l=tg_l+1;if(tg_l%2)set style data lp;replot; else set style data p;replot;" | |
bind "O" "set term post eps color enhanced 18;set out 'tmp_gnuplot.eps';replot;set term qt; | |
bind "P" "! open -a Preview tmp_gnuplot.eps;" |
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
(defun MyTool-speech-word() | |
"Speak words." | |
(interactive) | |
(let* ((str (url-hexify-string (string-word-or-region)))) | |
(process-kill-without-query | |
(start-process-shell-command "speech" nil | |
"/usr/bin/say -r 150" (concat "\"" str "\"" ))))) | |
(defun string-word-or-region () | |
"If a region is selected, the text string of the region is returned. |
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
\documentclass[ | |
aip, | |
author-year, | |
reprint, | |
onecolumn, | |
tightenlines, | |
12pt, | |
notitlepage, | |
amsmath, | |
amssymb |
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/bash | |
# | |
# You need to put the following in ~/.emacs.d/init.el. | |
# (if window-system | |
# (progn | |
# (require 'server) | |
# (unless (server-running-p) (server-start)))) | |
# | |
EMACS_PID_ALL=`pgrep -d ' ' Emacs` | |
EMACS_ACTIVE=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
#!/bin/sh | |
my_typesetter="latexmk" | |
my_latexdiff="latexdiff" | |
orig_file=`basename $1 .tex` | |
if [ ! -f $orig_file.tex ]; then | |
echo "PDF file is not found." | |
exit | |
fi | |
echo "Input the version:" |
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
worlddata = | |
Import["https://covid.ourworldindata.org/data/owid-covid-data.csv"]; | |
font = "Helvetica Neue"; | |
slopeangle = Pi/6; | |
pos0 = {0, 0}; | |
radius = Log[10]/Pi; | |
slopepos[val_, h_] := | |
pos0 + {Cos[slopeangle]*val + | |
h*Sin[slopeangle], (-Sin[slopeangle])*val + h*Cos[slopeangle]} |
OlderNewer