Skip to content

Instantly share code, notes, and snippets.

View vermiculus's full-sized avatar
🙃
I may be slow to respond.

Sean Allred vermiculus

🙃
I may be slow to respond.
View GitHub Profile
@vermiculus
vermiculus / .gitignore
Last active January 3, 2016 08:39
A logical format for resumes and curriculum vitae
/contact.tex
2014-01-14 05:20:40,950 INFO: Starting monitoring system
2014-01-14 05:20:50,169 INFO: The system has been activated.
2014-01-14 05:20:50,174 INFO: Motion detection will begin in ten minutes.
2014-01-14 05:21:00,187 INFO: Motion detection active.
2014-01-14 05:21:07,140 INFO: Detected motion.
2014-01-14 05:21:07,145 INFO: The recording "record4snort1.wav" will play in twenty seconds.
2014-01-14 05:21:27,170 INFO: Playing "record4snort1.wav"...
2014-01-14 05:21:37,064 INFO: Playing "record4snort1.wav"... Done.
2014-01-14 05:22:09,609 INFO: Detected motion.
2014-01-14 05:22:09,613 INFO: The recording "recorded snort1.wav" will play in twenty seconds.
\documentclass{article}
\usepackage{url}
\begin{document}
\url{http://www.coreavc.com/index.php?option=com_content&task=view&id=27&Itemid=1com/index.php?option=com_content&task=view&id=27&Itemid=1}
\end{document}
@vermiculus
vermiculus / automata.py
Last active January 2, 2016 23:29
A state machine implementing on/off functionality with a momentary-latch push-button.
from __future__ import print_function
class DeterministicFiniteAutomaton:
"""A simple DFA-ish class for Python.
Note that this does not implement accept states.
>>> dfa = DeterministicFiniteAutomaton('off', {
... ('on', 0): ('on', None),
... ('on', 1): ('on-off', None),
... ('on-off', 1): ('on-off', None),
struct Person_data {
int age;
char* name;
}
struct Person_data* __CLASS_PERSON__NEW ( void ) {
return malloc(sizeof(Person_data));
}
void __CLASS_PERSON__DESTROY (struct Person_data *object) {
%Comandi comuni
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[a4paper]{report}
\usepackage{amsmath,amsfonts,amssymb,nicefrac,thmtools}
\usepackage{color}
\usepackage{mathtools,mathdots}
\usepackage[italian]{babel}
\usepackage{fontspec,xltxtra,xunicode}
\usepackage{mathptmx}
(require 'cl) ; place your cursor after this paren and pres C-x C-e
(defun **strip-stuff (file &optional environments)
"Takes the current file and strips every environment from
`ENVIRONMENTS` into `FILE`."
(interactive "FFile name: \nxList of Environments (\"one\" \"two\" \"etc\"): ")
(if (every 'stringp environments)
(progn
(beginning-of-buffer)
(let ((search-regex (concat "\\\\begin{"
\documentclass{article}
\usepackage{lettrine}
\usepackage{xparse}
% Starts an environment like this:
%
% \begin{prayer}<<stop token>>%
% [extra options for lettrine]%
% {'sidebar' text}%
% [width of sidebar]
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.9.7) 24 DEC 2013 17:29
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**\input mwe.tex
(./mwe.tex
LaTeX Warning: Writing file `./cs-smp.cls'.
\openout15 = `cs-smp.cls'.