Skip to content

Instantly share code, notes, and snippets.

@sebspain
sebspain / tikzfig.cson
Last active August 29, 2015 14:24
an atom snippet for inserting tikz enabled picture in latex, copy to your own snippets file
#an atom snippet for inserting tikz enabled picture in latex, copy to your own snippets file
'.text.tex.latex':
'tikzfigure':
'prefix': 'tikzfig'
'body': """
\\\\begin{center}
\\\\begin{tikzpicture}
\\\\node[anchor=south west,inner sep=0] (image) at (0,0)
{\\\\includegraphics[$1]{$2}};
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim interdum metus, et aliquam neque sodales ut. Curabitur venenatis urna leo, sed ultricies sem porta varius. Pellentesque dictum posuere est. Cras pretium tincidunt dolor sit amet vehicula. Nullam vel magna sit amet ante facilisis varius a quis felis.</p>
@sebspain
sebspain / create_gallery.sh
Last active December 13, 2019 16:12
A small bash script to create a basic image gallery from a folder of images. An example of the resulting gallery is here http://sebspain.co.uk/photos/gallery1/ and the css etc is available here https://github.com/sebspain/sebspain.github.io. Currently very specific to my site but feel free to modify for your purposes. Eventually I may write it i…