- Copy-paste to split book into separate chapter files (also see split.sh)
- Add non-breaking space in range of numbers
- Fix inline spans broken by a space after a word before the closing
*
- Remove image width and height inherited from images in docx
- Wrap all images in an Electric Book figure blockquote
- Simplify indentation in lists by reducing space after list marker to one space
- [Remove non-kramdown markdown
^
around superscripts after numbers](#remove-non-kramdown-markdown--around-superscripts-a
import csv | |
def generate_bibtex_key(authors, year): | |
"""Generate a BibTeX key from the first author's last name and the year""" | |
last_names = authors.split(",")[0].split() | |
last_name = last_names[-1] if len(last_names) > 0 else "" | |
return f"{last_name.lower()}{year}" | |
def convert_csv_to_bibtex(csv_file, bibtex_file): | |
"""Convert a CSV file to BibTeX format""" |
%!TEX TS-program = xelatex | |
\documentclass[12pt]{scrartcl} | |
% The declaration of the document class: | |
% The second line here, i.e. | |
% \documentclass[12pt]{scrartcl} | |
% is a standard LaTeX document class declaration: | |
% we say what kind of document we are making in curly brackets, | |
% and specify any options in square brackets. |
All my life I've used VXCZ keys for paste, cut, copy, undo. To me, that's what's "normal." There's a name for that style of key bindings. They're called Common User Access, or CUA.
I'd like to use vim as the text editor for the very fast writing laptop I'm putting together. My goal is startup speed with low resource usage, and vim has got that. I'm just getting started and there's a lot to learn...
But, no, thank you, I don't want to learn all-new keyboard shortcuts, because my goal is speed and learning them will slow me down and worse, it'll frustrate me, and besides I don't need to learn that right now. (I'll wait while some computer fundamentalists contain their emotions or depart.)
I'm not against learning new shortcuts gradually over time, and I'm also not against taking some time to set it up so I don't have to, at least not at first, perhaps not ever. After all, aren't we supposed to be able to customi
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
<?php | |
function my_find_expired_events( $ids ) { | |
$args = array( | |
'post_type' => 'tribe_events', | |
'nopaging' => true, | |
'fields' => 'ids', | |
'meta_query' => array( | |
array( |
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |