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
%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}
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) {
@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),
\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}
pdf:
pdflatex -recorder word.tex
pdflatex word.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.
@vermiculus
vermiculus / .gitignore
Last active January 3, 2016 08:39
A logical format for resumes and curriculum vitae
/contact.tex
;; File: windows-setup.el
;; Author: Sean Allred
;; Date: Sat Feb 8 10:43:52 EST 2014
;; Description::
;; Minimal setup file for new users of Emacs on Windows.
;; Set variables as appropriate.
(let* ((username "Sean")
(start-directory (format "C:/Users/%s/Documents" username)))
(setq default-directory start-directory))
;; File: windows-setup.el
;; Author: Sean Allred
;; Date: Sat Feb 8 10:43:52 EST 2014
;; Description::
;; Minimal setup file for new users of Emacs on Windows.
;; Set variables as appropriate.
(let* ((username "Sean")
(start-directory (format "C:/Users/%s/Documents" username)))
(setq default-directory start-directory))
dof l2_err level
5 8.312e-02 2
17 2.547e-02 3
49 7.407e-03 4
129 2.102e-03 5
321 5.874e-04 6
769 1.623e-04 7
1793 4.442e-05 8
4097 1.207e-05 9
9217 3.261e-06 10