From 22ff5bfa253224cd87cf953d402edcc1b7049b49 Mon Sep 17 00:00:00 2001 From: Miguel Astor Date: Tue, 20 Jun 2023 22:03:49 -0400 Subject: [PATCH] Added 10 more gists. --- PlayBall.java/PlayBall.java | 37 ++ PlayBall.java/README.md | 1 + check_sensors.sh/check_sensors.sh | 8 + evi_template.tex/README.md | 1 + evi_template.tex/evi_template.tex | 97 ++++ hosts.c/README.md | 1 + hosts.c/hosts.c | 40 ++ init.el/README.md | 1 + init.el/init.el | 215 +++++++ narbonic.txt/README.md | 1 + narbonic.txt/narbonic.txt | 906 ++++++++++++++++++++++++++++++ piglatin.l/README.md | 1 + piglatin.l/piglatin.l | 46 ++ search.sh/README.md | 1 + search.sh/search.sh | 15 + ts.c/README.md | 1 + ts.c/ts.c | 236 ++++++++ tweets.py/README.md | 1 + tweets.py/tweets.py | 33 ++ 19 files changed, 1642 insertions(+) create mode 100644 PlayBall.java/PlayBall.java create mode 100644 PlayBall.java/README.md create mode 100644 check_sensors.sh/check_sensors.sh create mode 100644 evi_template.tex/README.md create mode 100644 evi_template.tex/evi_template.tex create mode 100644 hosts.c/README.md create mode 100644 hosts.c/hosts.c create mode 100644 init.el/README.md create mode 100644 init.el/init.el create mode 100644 narbonic.txt/README.md create mode 100644 narbonic.txt/narbonic.txt create mode 100644 piglatin.l/README.md create mode 100644 piglatin.l/piglatin.l create mode 100644 search.sh/README.md create mode 100644 search.sh/search.sh create mode 100644 ts.c/README.md create mode 100644 ts.c/ts.c create mode 100644 tweets.py/README.md create mode 100644 tweets.py/tweets.py diff --git a/PlayBall.java/PlayBall.java b/PlayBall.java/PlayBall.java new file mode 100644 index 0000000..6638387 --- /dev/null +++ b/PlayBall.java/PlayBall.java @@ -0,0 +1,37 @@ +class Ball extends Throwable { } + +class P { + private String name; + private P target; + + P(String name, P target) { + this.name = name; + this.target = target; + } + + public String getName() { + return name; + } + + public void setTarget(P target) { + this.target = target; + } + + public void aim(Ball ball) { + try { + System.out.println(target.getName() + ", catch!"); + throw ball; + } catch (Ball b) { + target.aim(ball); + } + } +} + +public class PlayBall { + public static void main(String args[]) { + P parent = new P("Dad", null); + P child = new P("Son", parent); + parent.setTarget(child); + parent.aim(new Ball()); + } +} diff --git a/PlayBall.java/README.md b/PlayBall.java/README.md new file mode 100644 index 0000000..1fab355 --- /dev/null +++ b/PlayBall.java/README.md @@ -0,0 +1 @@ +[https://xkcd.com/1188/](https://xkcd.com/1188/) \ No newline at end of file diff --git a/check_sensors.sh/check_sensors.sh b/check_sensors.sh/check_sensors.sh new file mode 100644 index 0000000..f89b8f4 --- /dev/null +++ b/check_sensors.sh/check_sensors.sh @@ -0,0 +1,8 @@ +#! /bin/bash + +while true +do + clear + sensors | grep crit + sleep 2 +done \ No newline at end of file diff --git a/evi_template.tex/README.md b/evi_template.tex/README.md new file mode 100644 index 0000000..2c4c702 --- /dev/null +++ b/evi_template.tex/README.md @@ -0,0 +1 @@ +Personal LaTeX template for tutorial proposals for the EVI-CoNCISa conference: [http://www.concisa.net.ve/](http://www.concisa.net.ve/) \ No newline at end of file diff --git a/evi_template.tex/evi_template.tex b/evi_template.tex/evi_template.tex new file mode 100644 index 0000000..da0c6b4 --- /dev/null +++ b/evi_template.tex/evi_template.tex @@ -0,0 +1,97 @@ +\documentclass[pdftex, conference]{./IEEEtran} + +\usepackage[spanish]{babel} +\usepackage{babelbib} +\usepackage{datetime} +\usepackage[utf8x]{inputenc} +\usepackage{cite} +\usepackage{url} + +\begin{document} + +\title{Tutorial\\} + +\author{ + \IEEEauthorblockN{Miguel A. Astor} + \IEEEauthorblockA{ + Universidad Central de Venezuela, Facultad de Ciencias\\ + Escuela de Computación, Centro CICORE, Laboratorio ICARO\\ + Urb. Valle Abajo, San Pedro, Caracas, Venezuela\\ + Email: miguel.a.astor@ucv.ve + } +} + +\maketitle + +\begin{abstract} + +\end{abstract} + +\renewcommand{\IEEEkeywordsname}{Palabras clave} +\begin{IEEEkeywords} + +\end{IEEEkeywords} + +\IEEEpeerreviewmaketitle + +\section{Introducción} + +\section{Objetivos} + +A continuación se presentan los objetivos general y específicos del Tutorial planteado. + +\subsection{Objetivo general} + +\subsection{Objetivos específicos} + +\begin{itemize} +\item Objetivo 1 +\end{itemize} + +\section{Contenidos} +\label{sec:contenido} + +Durante el Taller se desarrollará el siguiente contenido temático: + +\section{Metodología} + +\section{Duración} + +%Se estima una duración de 4 horas para el Taller (medio día). +Se estima una duración de 8 horas para el Taller (un día completo). + +\section{Público objetivo} + +\section{Requerimientos} + +Para poder llevar a cabo el tutorial se requiere lo siguiente: + +\begin{itemize} +\item Un proyector. +\item Acceso a Internet en la sala. +\item Computadoras donde puedan trabajar hasta dos personas por computadora, las cuales deben poseer lo siguiente: + \begin{itemize} + \item Sistema operativo basado en Windows o (preferiblemente) Linux. + \end{itemize} +\end{itemize} + +\section{Idioma} + +La exposición, dictado, ejercicios y ejemplos serán dados en español. + +\bibliographystyle{IEEEtran} +\bibliography{IEEEabrv,bibliografia} + +\newpage + +\section*{Presentador} + +\subsection*{Miguel Angel Astor Romero} + +Profesor investigador, categoría Instructor, de la Escuela de Computación, de la Universidad Central de Venezuela (UCV). Es Licenciado en Computación de la Universidad Central de Venezuela (2014). Actualmente cursa estudios de Maestría en Ciencias de la Computación en la UCV bajo la tutoría del Dr. Wílmer Pereira Gonzales. + +Dirección: Paseo los Ilustres, Urb. Valle Abajo. Facultad de Ciencias, Cdad. Universitaria de Caracas, Venezuela. + +Tlf: +58-212-6050984. Correo: miguel.a.astor@ucv.ve + +\end{document} \ No newline at end of file diff --git a/hosts.c/README.md b/hosts.c/README.md new file mode 100644 index 0000000..8026afa --- /dev/null +++ b/hosts.c/README.md @@ -0,0 +1 @@ +A simple test of gethostbyname() \ No newline at end of file diff --git a/hosts.c/hosts.c b/hosts.c/hosts.c new file mode 100644 index 0000000..e061607 --- /dev/null +++ b/hosts.c/hosts.c @@ -0,0 +1,40 @@ +#include +#include +#include +#include +#include + +typedef struct in_addr addr_t; + +int main(void) { + int i; + char * hostname = argc > 1 ? argv[1] : "google.com"; + struct hostent * host = gethostbyname(hostname); + + if (host == NULL) { + herror(argv[0]); + return 1; + } else { + + /* Print standard host name. */ + printf("NAME: %s\n", host->h_name); + + /* Print all host aliases if any. */ + for (i = 0; host->h_aliases[i]; i++) + printf("ALIAS %d: %s\n", i, host->h_aliases[i]); + + /* Print if addresses are IPv4 or IPv6. */ + printf("TYPE: %s\n", host->h_addrtype == AF_INET ? "IPv4" : "IPv6"); + + /* Print address length in bytes. */ + printf("LENGTH: %d\n", host->h_length); + + /* Print all addresses. */ + for (i = 0; host->h_addr_list[i]; i++) { + addr_t * addr = (addr_t *)host->h_addr_list[i]; + printf("ADDR: %s\n", inet_ntoa(*addr)); + } + } + + return 0; +} diff --git a/init.el/README.md b/init.el/README.md new file mode 100644 index 0000000..0217cd9 --- /dev/null +++ b/init.el/README.md @@ -0,0 +1 @@ +A backup of my init.el file. \ No newline at end of file diff --git a/init.el/init.el b/init.el/init.el new file mode 100644 index 0000000..3b62f61 --- /dev/null +++ b/init.el/init.el @@ -0,0 +1,215 @@ +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(ansi-color-names-vector ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"]) + '(custom-enabled-themes (quote (tango-dark))) + '(doc-view-continuous t) + '(initial-scratch-message nil) + '(menu-bar-mode t) + '(org-latex-classes (quote (("book" "\\documentclass{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))) + '(org-latex-pdf-process (quote ("pdflatex -interaction nonstopmode -output-directory %o %f" "bibtex %b" "pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex -interaction nonstopmode -output-directory %o %f"))) + '(org-support-shift-select t) + '(tool-bar-mode nil)) + +(setq inhibit-startup-message t) ;;; remove splash screen + +;; Add custom scripts to load path. +(add-to-list 'load-path "~/.emacs.d/lisp") + +;; Enable Neotree +;; (require 'neotree) +(setq neo-smart-open t) +(global-set-key [f8] 'neotree-toggle) + +(defun switch-full-screen () + (interactive) + (shell-command "wmctrl -r :ACTIVE: -btoggle,fullscreen")) +(global-set-key [f7] 'switch-full-screen) + +;; Highlight matching parens. +(show-paren-mode 1) + +;; always show line numbers +(global-linum-mode 1) + +;; Enable CUA mode (ctrl + x/c/v cut, copy and paste when something is selected). +(cua-mode t) + +(set-face-attribute 'default nil :height 110) + +;; Setup screenwriter mode. +(require 'screenwriter) +(global-set-key (kbd "C-c s") 'screenwriter-slugline) +(global-set-key (kbd "C-c a") 'screenwriter-action-block) +(global-set-key (kbd "C-c d") 'screenwriter-dialog-block) +(global-set-key (kbd "C-c t") 'screenwriter-transition) + +(setq auto-mode-alist (cons '("\\.scp" . screenwriter-mode) auto-mode-alist)) +(setq auto-mode-alist (cons '("\\.screenplay" . screenwriter-mode) auto-mode-alist)) + +;; Set the files that Org-mode should use for the agenda. +(setq org-agenda-files (list "~/Dropbox/Documentos/ORG-Mode/Proyectos_2016.org" + "~/Dropbox/Documentos/ORG-Mode/Agenda.org")) + +(setq org-todo-keywords '((type "ON-HOLD" "TODO" "|" "DONE" "CANCELED"))) +(setq org-todo-keyword-faces + '(("ON-HOLD" . "yellow") + ("CANCELED" . (:foreground "blue" :weight bold)))) + +;; Set the base directory for Org-mode. +(setq org-directory "~/Dropbox/Documentos/ORG-Mode/") +(setq org-mobile-directory "~/Dropbox/Aplicaciones/MobileOrg/") +(setq org-mobile-inbox-for-pull "~/Dropbox/Documentos/ORG-Mode/notes.org") +(setq org-mobile-files (list "~/Dropbox/Documentos/ORG-Mode/Proyectos_2016.org" + "~/Dropbox/Documentos/ORG-Mode/Agenda.org" + "~/Dropbox/Documentos/ORG-Mode/Compras.org")) + +(require 'iso-transl) + +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) + +;; Set up brainfuck mode +(require 'bfbuilder) +(add-to-list 'auto-mode-alist '("\\.bf$" . bfbuilder-mode)) + +;; Set up Io mode +(require 'io-mode) + +;; Set up Org-Mode Babel +(org-babel-do-load-languages + 'org-babel-load-languages + '((ditaa . t))) ; this line activates ditaa + +(setq org-ditaa-jar-path (expand-file-name + "/usr/share/ditaa/ditaa.jar")) + +(require 'ob-tangle) +(require 'ob-sh) +(require 'ob-python) +(require 'ob-R) +(require 'ob-latex) +(org-babel-do-load-languages 'org-babel-load-languages '((sh . t) (ditaa . t) (python . t) (R . t) (latex . t) )) + +(setq org-export-allow-BIND t) + +(require 'package) ;; You might already have this line +(add-to-list 'package-archives + '("melpa" . "https://melpa.org/packages/")) +(when (< emacs-major-version 24) + ;; For important compatibility libraries like cl-lib + (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))) +(package-initialize) ;; You might already have this line + +(add-hook 'c++-mode-hook 'irony-mode) +(add-hook 'c-mode-hook 'irony-mode) +(add-hook 'objc-mode-hook 'irony-mode) + +;; replace the `completion-at-point' and `complete-symbol' bindings in +;; irony-mode's buffers by irony-mode's asynchronous function +(defun my-irony-mode-hook () + (define-key irony-mode-map [remap completion-at-point] + 'irony-completion-at-point-async) + (define-key irony-mode-map [remap complete-symbol] + 'irony-completion-at-point-async)) +(add-hook 'irony-mode-hook 'my-irony-mode-hook) + +;; Windows performance tweaks +;; +(when (boundp 'w32-pipe-read-delay) + (setq w32-pipe-read-delay 0)) +;; Set the buffer size to 64K on Windows (from the original 4K) +(when (boundp 'w32-pipe-buffer-size) + (setq irony-server-w32-pipe-buffer-size (* 64 1024))) + +;; ============= +;; company mode +;; ============= +(add-hook 'c++-mode-hook 'company-mode) +(add-hook 'c-mode-hook 'company-mode) +;; replace the `completion-at-point' and `complete-symbol' bindings in +;; irony-mode's buffers by irony-mode's function +(defun my-irony-mode-hook () +(define-key irony-mode-map [remap completion-at-point] + 'irony-completion-at-point-async) +(define-key irony-mode-map [remap complete-symbol] + 'irony-completion-at-point-async)) +(add-hook 'irony-mode-hook 'my-irony-mode-hook) +(add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options) +(eval-after-load 'company +'(add-to-list 'company-backends 'company-irony)) +;; (optional) adds CC special commands to `company-begin-commands' in order to +;; trigger completion at interesting places, such as after scope operator +;; std::| +(add-hook 'irony-mode-hook 'company-irony-setup-begin-commands) +;; ============= +;; flycheck-mode +;; ============= +(add-hook 'c++-mode-hook 'flycheck-mode) +(add-hook 'c-mode-hook 'flycheck-mode) +(eval-after-load 'flycheck +'(add-hook 'flycheck-mode-hook #'flycheck-irony-setup)) +;; ============= +;; eldoc-mode +;; ============= +(add-hook 'irony-mode-hook 'irony-eldoc) +;; ========================================== +;; (optional) bind TAB for indent-or-complete +;; ========================================== +(defun irony--check-expansion () +(save-excursion + (if (looking-at "\\_>") t + (backward-char 1) + (if (looking-at "\\.") t + (backward-char 1) + (if (looking-at "->") t nil))))) + +(defun irony--indent-or-complete () +"Indent or Complete" +(interactive) +(cond ((and (not (use-region-p)) + (irony--check-expansion)) + (message "complete") + (company-complete-common)) + (t + (message "indent") + (call-interactively 'c-indent-line-or-region)))) + +(defun irony--indent () +"Irony indent" +(interactive) +(cond ((and (not (use-region-p)) + (irony--check-expansion)) + (message "complete") + (company-complete-common)) + (t + (message "Nothing")))) + +(defun irony-mode-keys () +"Modify keymaps used by `irony-mode'." +;;(local-set-key (kbd "TAB") 'irony--indent-or-complete) +;;(local-set-key [tab] 'irony--indent-or-complete)) +(local-set-key (kbd "s-SPC") 'irony--indent)) +;;(global-set-key (kbd "s-SPC") 'irony--indent-or-complete) +(add-hook 'c-mode-common-hook 'irony-mode-keys) + + +(require 'org) +(eval-after-load 'ox-latex + '(add-to-list 'org-latex-classes + '("book" + "\\documentclass{book}" + ("\\part{%s}" . "\\part*{%s}") + ("\\chapter{%s}" . "\\chapter*{%s}") + ("\\section{%s}" . "\\section*{%s}") + ("\\subsection{%s}" . "\\subsection*{%s}") + ("\\subsubsection{%s}" . "\\subsubsection*{%s}") + ("\\paragraph{%s}" . "\\paragraph*{%s}") + ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) + ) \ No newline at end of file diff --git a/narbonic.txt/README.md b/narbonic.txt/README.md new file mode 100644 index 0000000..9c426f8 --- /dev/null +++ b/narbonic.txt/README.md @@ -0,0 +1 @@ +A backup of the story-in-the-file-names from the webcomic Narbonic. Taken from [http://www.ci-n.com/~jcampbel/narbonic.txt](http://www.ci-n.com/~jcampbel/narbonic.txt) \ No newline at end of file diff --git a/narbonic.txt/narbonic.txt b/narbonic.txt/narbonic.txt new file mode 100644 index 0000000..bf5510d --- /dev/null +++ b/narbonic.txt/narbonic.txt @@ -0,0 +1,906 @@ +rednaeroc darnoc lrac skoob dlo This inscription could be seen on the glass +door of a small shop but naturally this was only the way it looked if you +were inside the dimly lit shop looking out at the street through the +plate-glass door Outside it was a gray cold rainy November morning The rain +ran down the the glass and over the ornate letters Through the glass there +was nothing to be seen but the rain-splotched wall across the street +endquote + +Meanwhile Im saving my money I want to buy one of those yellow +inflatable life rafts Also Im looking around for a really intelligent +chicken endquote + +When Octavius Winter told people -normal people- that he was an evil +attorney they always responded with some jolly variant on Aren't they all +Winter had a special gaze reserved for those people It was on the surface +almost identical to his usual cold grim workaday glare the only discernable +difference was that it inspired the target to instantly stagger back gibber +an apology or burst into tears Generally all three + +He was an evil attorney Like only the best evil attorneys he knew that his +clients whether world-conquering despots twitchy mad scientists or the slick +and reptilian heads of sinister corporations appreciated a modicum of the +appropriate style from the henchmen and servitors in their hire For a lawyer +this meant a complexion of fungal sallowness a dour visage carved in deep +and portentous lines hair slicked back from a widows peak expensive dark +suit with shoulders broad enough to accomodate a brace of vultures and +whenever possible a cloak The gaze was just the maraschino cherry on the +macabre hot-fudge sundae of Octavius Winter Evil Attorney at Law + +For what he charged it was the least he could do Evil law was steady +rewarding work Winters practice attracted the types of clients who had +plenty of liquid cash suffered frequent difficulties with the law and were +generous in their peculiar way to those willing to help them Villains are a +lawyers dream Winter did get the occasional bad apple one of those +shortsighted would-be overlords who try to murder their own hirelings up to +and including licensed legal representatives simply to prove their +ruthlessness but it was for just such frivolous individuals that odorless +poisons had been developed after all + +Winter didnt much mind handling the bad apples in the evil community He +always politely but firmly requested payment up front Yet the functions of +an evil attorney do include some genuine unpleasantness and Winter as his +tasteful black sedan slid through the shadows of the universitys sunny +tree-lined drive suspected that he might be approaching some of it + +He was not pleased True the Narbon estate was in many respects the finest +entry in his impeccable portfolio and he was willing to endure much for it +Before Dr Helen Narbon had hired Winter her familys legal affairs had been +handled for uncounted generations by Elijah Threadham one of the true +legends Winter remembered reading with boyish awe in his days as an amoral +law student of how the mere entrance of the venerable lawyer into a +courtroom stapled-together flesh dripping and eyesockets emitting their +familiar red LED glow had won the Narbon family many hasty and agreeable +out-of-court settlements When Threadham had at last gone irrevocably to +pieces and Dr Narbon had reluctantly stopped digging him up and hooking him +to the galvanizer for one last case Winter had been honored to assume the +position of the Narbons new attorney + +But that had been many years ago when Dr Narbon was an ambitious young mad +scientist with a string of zombie-related lawsuits still ahead of her Winter +had liked Dr Narbon as much as he liked anything He would miss her nasty +brutish and consummately professional business demeanor He knew only two +things about the younger Helen Narbon the girl with whom he was about to +deal she was old enough to sign legally binding documents and she was sane +The first point made his job much easier the second he reluctantly admitted +in the clammy depths of his heart worried him + +Well this was her dormitory Time to protect the Narbon interests Gamine +coeds in undersized T-shirts idled in the sunshine outside the ivy-dappled +building smoking slim cigarettes and listening to bubblegum on a portable +radio Winter descended on the tableau like the Bad Fairy storming the +enchanted palace freezing the girls mid-smoke He carried a black leather +attache case in one hand and a bone-handled walking stick in the other and +he was the worst thing they had ever seen The radio actually fell silent as +he passed + +A good entrance was the backbone of an evil attorneys courtroom work it was +hardly to his credit that so few of his collegues rehearsed as +conscientiously or took tradition as seriously When however the plump woman +behind the desk in the lobby fell backwards over her chair in her panic to +scurry away from him then lay on the floor like a pastel beetle with her +round legs kicking helplessly at the air the corners of Winters colorless +lips did turn briefly incrementally upwards before he remembered himself + +He loomed over the desk I am looking he intoned thanks to years of careful +practice it was difficult for Winter not to intone for a Helen Narbon + +The desk attendent popped into a sitting position Her face glowed with the +relief of someone who has just been informed that the bell tolls not for her +but just for old Quasimodo again Oh Oh her I-I think shes waiting for you in +the common room She pointed eagerly down the hall her arm quivering + +The common room Winter reflected with distaste was as brainlessly pleasant +as the rest of the campus rose draperies fuzzy armchairs a few abandoned +textbooks fading in the late-afternoon sun the whole place was a +round-bellied puppy begging to be kicked Dr Narbon would never have been +seen dead or undead in a place like this She had of course occasionally +lectured at colleges usually in the dead of night usually in an institution +with Invisible Arcane or possibly Enochian in its title This was not the +same thing at all And meanwhile the younger Helen Narbon having abandoned +her familial responsibilities seven years past- + +The sole inhabitant of the parlor was curled in a burgundy armchair her back +to the door Winter loomed forward to investigate The girls blonde ponytail +swung over the open pages of the textbook casting pink shadows over complex +biological diagrams which Winter had he been asked could neither have +identified nor feigned any interest in + +Winter was not in the habit of making polite noises to introduce himself for +much the same reason a tiger on the stalk is not in the habit of clearing +its throat Helen Beta Narbon he demanded + +The girl jumped then turned to face him + +Winter chided himself for the chill that ran up his spine He had after all +expected this The Narbons were mad scientists all the way down their +makeshift line Winter had only the mildest interest in what his clients did +with their time when they werent being clients but he was vaguely aware that +mad scientists had their specialties Professor Caesar controlled the weather +Lupin Madblood and Felix Madblood before him were killer- robot men Madame +Onyx had been into particle physics before vanishing into that parallel +dimension unfortunate business she still owed him a retainer from the +vanishing-island settlement + +The Helen Narbons were biologists Reviving the dead was a talent of theirs +so was engineering beast-men so was cloning It was how they made more Helen +Narbons It was hard to picture them going through the usual biological +channels Winter should not have been startled then that Helen Beta was a +photocopy of Dr Narbon at twenty-five -the age lines erased from the round +apple-cheeked face the calculating gleam wiped from the large blue eyes He +should not have been startled and was deeply disappointed in himself for it +but he was In the course of his career Winter had seen the dead rise from +the grave usually smelling awful and angrily demanding personal-injury suits +but not like this This was eerie + +Helen Beta gazed wide-eyed into the long grim face of Octavius Winter a face +that made strong men whimper when it frowned and shriek when it smiled Her +brow puckered Youre one of Moms people arent you Youve Got the look + +Winter inclined his head I am among other things Dr Narbons attorney and +executor You received my letter + +Thats right Why did you want to see me And what happened to Mr Threadham + +Elijah Threadham died not long after you ceased communications with Dr +Narbon + +He was already dead + +This time it took + +Oh Helen frowned Well I dont know what Mom told you but we went over this +with Mr Threadham She doesnt have any control over me It doesnt matter that +I was created as an experiment she cant + +I fear you misunderstand the situation Miss Narbon Do You know of a decent +Italian restaurant + +What + +I prefer to discuss matters of a sensitive nature over dinner Unless You +would prefer a more private venue + +Sensitive Look Mr was it Winter + +Winter + +Mister Winter I cut my ties to Mom and her thingies when I left home Im +putting myself through college Im working toward my doctorate + +In biochemistry as I recall + +Lots of people study biochemistry Lots of people are good at it It doesnt +mean anything And when I graduate this spring without blowing anything up +without unleashing any horror without Tampering in Gods Domain even a tiny +little bit I will find a nice job doing something nice that helps people You +understand Im out of the family business I dont care what horrible thing Mom +has done this time and Im not bailing her out again + +Miss Narbon you are the most recent in the long line of Narbon women- + +Immaterial + +-and as such you have certain legal responsibilities Dinner + +Helen deflated It was as Winter had with distaste suspected underneath a +thin brittle coating of bluster the girl was pure marshmallow + +Okay Fine Lets go + +Helen stuffed her textbook into a lilac backpack and stood She was wearing a +pretty pink blouse This struck Winter as particularly obscene How dare this +girl dress Dr Helen Narbons body in a pretty pink blouse It had tiny hearts +embroidered around the collar Winters small sour stomach turned + +The radio on the front lawn had resumed normal play the bucolic sorority +tableau was restored As Winter Helen bobbing nervously in his wake passed +the college girls his ears picked up hisses of conversation + +Oh surprise its her again + +What do you think they got her for this time- + +hope shes not coming back + +He -flicked a glance at them This time the radio exploded You dont seem +well-liked here said Winter casting about for light conversation + +Oh those girls Helen tossed her head There were accidents Early on Some +people will believe all kinds of rumors + +But youre much better now I imagine + +Yes + +Im sure youve never even laid a finger on those particular young women + +Exactly + +And it didnt so much as occur to you how very easy it would be to convert +their bones to some highly corrosive acid which would eat their soft young +flesh from the inside out + +Im much better + +Now that Winter had time to reflect he saw that the really remarkable thing +about Helen Beta all things considered was how much she didnt resemble her +creator Dr Narbons shock of dandelion hair had stuck out from her head in +the mad scientists regulation finger-in-the- lightsocket formation with the +odd clump burned or bitten off Helens was bound back in a tight neat +ponytail with a stiffness that suggested too much styling gel or perhaps +wood glue Dr Narbons electric blue eyes had flickered behind a formidable +pair of black-framed Army-issue BCDs Helen also wore glasses of course but +hers were fanciful little loops of filligree perched on her nose as if ready +to bail out at the first sign of trouble If it were possibe for glasses to +make a person look less intelligent these were the frames And Helen hunched +something Winter considered only acceptable for licensed hunchbacks and +chewed her lip and worried her brow And that teeny-tiny voice + +Mr Winter + +Winter sighed Miss Narbon + +Are you going to tell me what this is about + +Over dinner Miss Narbon I am very sorely in need of dinner + +Twenty minutes later Octavius Winter was glowering He seldom felt called +upon to glower His normal expression was more than foreboding enough to +communicate his disapproval often across state lines The very fact that +circumstances had gotten bad enough to require a full glower was enough to +dampen his already thoroughly-mildewed mood + +This is a nice place said Helen Beta bouncing in her seat a little + +Winter allowed his gaze to travel slowly and witheringly around the room he +was not accustomed to dining in welllit establishments and the very fact +that he could see his surroundings was enough to make him dislike them his +dark little avian eyes squinted into the flat flourescent light there is he +intoned a jukebox + +its a perfectly nice bistro helen said defensively ducking behind her +laminated menu + +it occured to winter that the glower had relatively little effect on his +dining companion she might be a damp little ball of pink fluff he reminded +himself but she had been raised by Dr Narbon Evil probably didnt bother her +that much More likely it just made her faintly homesick He allowed his face +to realign itself along its well-worn grooves and glanced down at the table +His aching eyes gazed blearily at artifacts he found utterly alien and +horrific paper napkins fiberglass surfaces little foilwrapped pats of butter +and a little sign urging cheerfully ask youre server for our daily specials +enough was enough + +to business said winter your mother is dead + +helen stared blankly what + +your mother dead winter squinted crosswise at the menu as if trying to avoid +direct eye contact with it do you imagine they know anything whatsoever +about tortellini + +what do you mean dead + +winter glanced up youre a biologist arent you now as her executor i have +certain duties at this time as do you as her heir his attache case snapped +open there is to begin some paperwork to be signed + +wait what helen shook herself how how did she die + +angry mob i am assured it was slow and agonizing a rare blush of human +feeling moved winter to attempt a consoling word or two she would have +wanted it that way + +you ready to order snapped a waitress + +winter returned to his paperwork i will have whichever of your a la carte +items is least tasteless do not under any circumstances bring me anything +you people consider wine + +helen rubbed her forehead hell have the tortellini bring me the special and +beer + +as soon as the waitress was gone helen turned on winter mr winter i dont +appreciate this my mother is not dead + +winter didnt answer he could see no particular point + +two goldtipped pens emerged from his attache case and took their place at +the table flanking dr narbons last will and testament + +shes not said helen her voice strained shes got you fooled shes played dead +any number of times dont you know that + +from the depths of the case winter unearthed a slim black poisonously +expensivelooking laptop computer it yawned luxuriously spreading its +paperthin alligator jaws with surprising speed winters pale fingers flew +over the ebony keys winters interest in technology extended strictly to +owning the best and weilding perfect control over it his approach to his +clients was similar he hoped helen beta would stop being tiresome soon + +are you listening helen was saying shes not dead she couldnt be + +winter turned the computer so she could see it was impressive he had to +admit the quality of video available on a really good computer these days he +didnt bother watching this time but the sound was crystal clear the cries of +the enraged mob the roar and crackle of the flames and above all the screams + +it wasnt and exceptional end for a mad scientist not remotely but highdef +digital really did add something it certainly left no doubt whatsoever that +dr narbon was dead afterwards helen sat in silence the pink had drained from +her cheeks shes not gone she said at last its a hoax she faked the video +somehow she + +i dont believe so said winter there are several other videos if youd care to +see them evidently a number of the villagers brought camcorders + +my mother + +is quite dead yes now as you can see from the will you stand to inherit + +she cant be dead + +the couple at the next table stared then glanced away + +winter maintaining a cold grip on his nerves looked up from his laptop he +ignored the unaccustomed warmth of blood pumping in his veins + +it was probably nothing he thought almost certainly nothing but for a moment +he thought hed heard in helen betas voice a minute dissonance a tremor the +twang of a very fine thread stretched to its limit it was probably nothing +it had better be nothing + +winter had worked for many years with mad geniuses of various stripes but +only once had he actually seen one in the process of going mad it had been +happening for several hours by the time winter had arrived on the scene and +no one could get within half a mile of the building where the boy was holed +up no one living at any rate winter recalled the afternoon as a fever dream +of fire shadows creeping circuitry and objects turning nauseatingly inside +out if the boy hadnt been knocked out by a chunk of falling plaster he +almost certainly would have pulled the building and possibly the surrounding +town down around himself thereby thoughtfully simplifying winters job + +as it was hed survived and had awakened in a much calmer state albeit still +as mad as any number of hatters he didnt make things turn insideout anymore +though mad geniuses were said to be at their most creative during the +initial breakdown which was why no one wanted to be anywhere near them at +the time whenever he thought of the incident winter remembered exactly how +small the boy had looked when the emts had carried him out of the ruins how +small and unremarkable with blackhead scabs on his thin pubescent cheeks and +plaster in his greasy black hairand how how impossible it was to imagine any +connection between this scrawny boy and the horrors that had come from his +head and hands + +it was usually boys winter reminded himself teenagers they went insane when +they were young helen beta might have been a copy of her mad mother a pale +washedout copy winter thought but she hadnt gone mad or shown any sign of +going mad and now she was getting a little too old to lose her mind + +winter reprimanded himself for letting his imagination get the better of him +he was no great fan of having an imagination in the first place + +you dont understand helen beta was saying she cant be i mean she wouldnthow +could she leave me withshe broke into heaving messy sobs + +winter snapped the laptop shut and gazed grimly at the ceiling not quite +sure where to put his eyes he was accustomed to dealing with people who +reacted to news of a death in the family with peals of maniacal laughter +tacky hed always thought but still vastly preferable to this damp display he +considered offering the girl a handkerchief but decided against it it was +silk after all + +dr narbon winter said at last was a mad scientist surely even you are aware +that mad scientists are not noted for long and healthy lives i dont believe +a dr narbon has ever reached her fiftieth birthday admittedly its more +common for them to destroy themselves before the mob gets to them + +shes not dr narbon helen beta shouted shes my mom + +the bistro fell silent for a long level moment winter stared at the girl +across the table her tangled hair her pink face covered in red blotches and +glossy with tearsbut still unmistakably the face of the infamous dr narbon +then he laughed he couldnt help himself it was just too ridiculous + +helen beta stared at him sniffed loudly then ran for the restroom + +winter glowered at the rest of the restaurant he felt a sudden fierce +irritation at helen beta and at dr narbon for subjecting him to this ordeal +why she couldnt have died unloved by anyone like a sensible person was +beyond him it was that strange maternal instinct in the narbons kindness and +mercy were clinical curiosities to them winter knew all too well they were +unmoved by love but when it came to their creations they went just a little +bit soft winters mind wandered at the thought of dr narbon perfect save for +that one weakness + +not until the waitress arrived with two plates of rubbery pasta did he +realize that helen beta had been away from the table a little too long his +blood was always chilly but this time it froze with creeping horror he +realized what he had done he had laughed he had laughed and he was a fool + +helen stared at her face in the restroom mirror her mothers face no her face +hers it kept going blurry as her eyes went in and out of focus she was +having interesting ideas again all kinds of interesting ideas and it was +harder than usual to stop thinking about them because of the laughter that +fool and his laughter it echoed around and around the part of her head where +she went to get away from interesting ideas + +i am having a schizophrenic helen told her mothers reflection enunciating +crisply of the type characterized by general disorganized thinking and +possible auditory hallucinations this is a commonly observed phenomenon +among individuals afflicted with hypercognitive dementia also known as +waltons disorder also known popularly as mad genius dsmiv numeric code 29533 +if this disorder is genetic there is a 100 percent chance that i have +inherited it i know exactly what is going on it is perfectly comprehensible + +she laughed hysterically for a minute or so not a good sign she thought and +then the thought fluttered away her face when it skipped into focus was pale +and blotchy possibly she had been crying yes someone had definitely been +crying sometime not her not when everything was so funny and she had so many +interesting ideas it was all so funny so funny with everywhere the laughter +then she couldnt think about that anymore because she got distracted by the +hand soap + +hand soap primary active ingredient probably c12h7cl3o2 better known as +triclosan harmful only to bacteria at low concentrations but at higher +concentrations a potentially powerful widespectrum biocide also present +glycerin ammonium chloride some kind of alcohol various artificial dyes good +old flexible dihydrogen monoxide and goodness knew how many other +entertaining chemicals innocuous in this specific combination but so easy to +pick apart and link back together and such a priceless shade of pink + +shed need more organic material though you couldnt do anything really +interesting without a few carbon chains she spent some time admiring the +paper towels absently yanking piles of them onto the floor she giggled +heterodyning with the laughter in her head with this and a few key molecules +isolated from the soap she could make something that would wedge delicate +white tendrils no pink tendrils they ought to be pink through walls and +floors and the joints between human bones burning everything it touched with +chemical love she could make all kinds of funny things + +i am having a schizophrenic episode helen murmured splashing in a puddle of +soap for a moment she screamed at herself to get a grip and then the person +who used to be helen narbon was washed away forever in a bubbly pink rush of +ideas the floor the floor was dirty she could do so much with a dirty floor +bleached paper a a little fungus there wasnt really much usable organic +matter in the restroom the fatalities might have been kept to a minimum if +helen hadnt wandered her fingers pink and slippery across the hall and into +the bistro kitchen + +winters instincts were good he ran the moment he realized what he might have +done he bolted from the table knocking his chair to the floor and causing +the waitress to spill an amateurishlooking minestrone down the front of her +blouse he ran for the door and he almost made it + +behind winter a woman screamed and then something strong and moist lashed +around his ankle he hit the floor hard ripping the jacket of his blackest +and most evil bespoke suit a sharp green smell clouded his lungs coiling +around like something alive + +he coughed it was he realized as his eyes watered the aroma of a not +thoroughly hopeless pesto alla genovese pity she hadnt had access to a +proper parmagiano reggiano he thought wildly + +another tendril whipped around his chest pinning his right arm with his left +he grabbed for something anything a chair leg a dropped knife he didnt +intend to go down without a fight threadham hadnt gone down without a fight +the first six or seven times hed been killed + +his manicured nails scraped linoleum came up empty then the tomatoes were +upon him and the tomatoes were horrible countless little tomatoes with tiny +sneering faces they melted into a pearlescent jam and seeped into his mouth +and ears and nostrils the taste was fresh and tart with just a hint +distinctive but not overpowering of olive oil + +someone trampled on winters hand in the rush for the exit through ears +muffled by tomato sauce he heard burbling screams then silence then softly +at first from the far end of the room a sweet tinkling littlegirl laugh + +miss narbon he heard himself saying thats enough his voice slipped out high +and thin you can stop now please youve shown us all + +a pink shadow fell over him despite himself winter looked up ah there it was +at last the face of helen narbon the real one smiling that beautiful +horrible smile + +oh hello mr winter said helen brightly you were saying something about an +inheritance yes + +glurb said winter sauce dribbled down his chin hissing + +now now mr winter we cant monkey around this is business of a sensitive +nature isnt it + +for a few moments helen seemed distracted by a mobile heap of +pesto climbing up a screaming waitresss leg or possibly a parmesan cheese +shaker she hummed softly to herself until winter started coughing up a +mixture of blood and marinara then light clicked on behind her big blue eyes + +yes the inheritance said helen i dont want to be all boring and +materialistic about this but im going to need a little nest egg to get my +own lab going arent i this isnt going to do at all + +her disapproving gaze took in the ruined restaurant the clouds of pink and +black smoke billowing out of the kitchen the sniggering tomatoes the +saucesplattered corpses + +a proper lab you know with with test tubes and centrifuges and pretty +science lights and a sign for the break room you dont have to be crazy to +work here but it helps + +this a tiny miserable voice in the back of winters head noted seemed to +strike her as hilarious + +i know i know helen continued the whole grief thing im moving too fast but +im thinking fast now you know i cant waste time doing things like normal +people here you see it takes all the running you can do to keep in the same +place if you want to get somewhere else you must run at least twice as fast +as that she grinned baring her teeth + +winter found his voice im sure its what your mother would have wanted + +my mother is dead the smile clicked back into place but wont it be nice a +storefront laboratory with a little doomsday device in the back and henchmen +well we can make do with interns to start see where it goes from there oh oh +you know what longitudinal study id like to build on its the funniest thing + +something was eating winters arm he was glad he couldnt turn his head far +enough to see what it was + +narbon + +no no you lie back and relax mr winter ill have you up and about in a bit +helen turned back to the kitchen youll be dead of course i hope thats okay + +yes winter realized yes it was okay he was an evil attorney he had always +assumed one his clients would do him in someday and he had expectedno no +might as well be honest he had hopedit would helen narbon this girl wasnt dr +narbon but she was close so close that horrible smile for the first time in +years and the last time ever winter felt his heart skip a beat he thought +back to his first private consultation with dr narbon that first zombie +lawsuit he remembered taking over from threadham he remembered her hair + +in the kitchen machinery whirred it sounded sharp creaking with the strain +of disuse winters lips curved into a smile at last he thought come full +circle + +end + +When Octavius Winter told people - normal people - that he was an evil +attorney, they nearly always responded with some jolly variant on, "Aren't +they all?" + +Winter had a special gaze reserved for those people. It was on the surface +almost identical to his usual workaday glare, the only discernible +difference was that it inspired the target to instantly stagger back, gibber +an apology, or burst into tears. Generally all three. + +He was an evil attorney. Like all the best evil attorneys, he knew that his +clients, whether world-conquering despots, twitchy mad scientists, or the +slick and reptilian heads of sinister corporations, appreciated a modicum of +the appropriate style from the servitors in their hire. For a lawyer, that +meant a complexion of fungal sallowness, a dour visage carved in deep and +portentous lines, hair slicked back from a window's peak, expensive dark +suits with shoulders broad enough to accomodate a brace of vultures, and, +whenever possible, a cloak. The gaze was just the maraschino cherry on the +macabre hot-fudge sundae of Octavius Winter, Evil Attorney at Law. + +For what he charged, it was the least he could do. Evil law was steady, +rewarding work. Winter's practice attracted the type of clients who had +plenty of liquid cash, suffered frequent difficulties with the law, and were +generous, in their peculiar way, to those willing to help them. Winter did +get the occasional bad apple - one of those short-sighted would-be overlords +who try to murder their own hirelings, up to and including their legal +representative, simply to prove their ruthlessness - but it was for such +frivolous individuals that odorless poisons had been developed, after all. + +Winter didn't much mind handling the bad apples in the evil community. He +always politely but firmly requested payment up front. Yet the functions of +an evil attorney do include some genuine unpleasantness, and Winter, as his +tasteful black sedan slid through the shadows of the university's sunny +tree-lined drive, suspected that he might be approaching some of it. + +He was not pleased. True, the Narbon estate was in many respects the finest +entry in his impeccable portfolio, and he was willing to endure much for it. +Before Dr. Helen Narbon had hired Winter, her family's legal affairs had +been handled, for uncounted generations, by Elijah Threadham, one of the +true legends. Winter remembered reading, with boyish awe, in his days as an +amoral law student, of how the mere entrance of the venerable lawyer into a +courtroom, stapled-together flesh dripping and eyesockets emitting their +familiar red LED glow, had won the Narbon family many hasty and agreeable +out-of-court settlements. When Threadham had, at last, gone irrevocably to +pieces, and Dr. Narbon had reluctantly stopped digging him up and hooking him +to the galvanizer for one last case, Winter had been honored to assume the +position of the Narbons' new attorney. + +But that had been many years ago, when Dr. Narbon was an ambitious young mad +scientist with a string of zombie-related lawsuits still ahead of her. +Winter had liked Dr. Narbon as much as he liked anything. He would miss her +nasty, brutish, and consummately professional business demeanor. He knew +only two things about the younger Helen Narbon, the girl with whom he was +about to deal: she was old enough to sign legally binding documents, and she +was sane. The first point made his job much easier; the second, he +reluctantly admitted in the clammy depths of his heart, worried him. + +Well, this was her dormitory. Time to protect the Narbon interests. Gamine +coeds in undersized T-shirts idled in the sunshine outside the ivy-dappled +building, smoking slim cigarettes and listening to bubblegum on a portable +radio. Winter descended on the tableau like the Bad Fairy storming the +enchanted palace, freezing the girls mid-smoke. He carried a black leather +attache case in one hand and a bone-handled walking stick in the other and +he was the worst thing they had ever seen. The radio actually fell silent as +he passed. + +Winter did not allow himself even a moment of self-congratulation. A good +entrance was the backbone of an evil attorney's courtroom work. It was +hardly to his credit that so few of his collegues rehearsed as +conscientiously or took tradition as seriously. When, however, the plump +woman behind the desk in the lobby fell backwards over her chair in her +panic to scurry away from him, then lay on the floor like a pastel beetle +with her round legs kicking helplessly at the air, the corners of Winter's +colorless lips did turn briefly, incrementally upwards before he remembered +himself. + +He loomed over the desk. "I am looking," he intoned - thanks to years of +careful practice, it was difficult for Winter not to intone - "for a Helen +Narbon." + +The desk attendant popped into a sitting position. Her face glowed with the +relief of someone who has just been informed that the bell tolls not for +her, but just for old Quasimodo again. + +"Oh! Oh, her! I-I think she's waiting for you in the common room." She +pointed eagerly down the hall, her arm quivering. + +The common room, Winter reflected with distaste, was as brainlessly pleasant +as the rest of the campus: rose draperies, fuzzy armchairs, a few abandoned +textbooks fading in the late-afternoon sun... the whole place was a +round-bellied puppy begging to be kicked. Dr. Narbon would never have been +seen dead, or undead, in a place like this. She had, of course, occasionally +lectured at colleges - usually in the dead of night, usually in an +institution with "Invisible", "Arcane", or possibly "Enochian" in its title. +This was not the same thing at all. And, meanwhile, the younger Helen +Narbon, having abandoned her familial responsibilities seven years past-- + +The sole inhabitant of the parlor was curled in a burgundy armchair, her +back to the door. Winter loomed forward to investigate. The girl's blonde +ponytail swung over the open pages of the textbook, casting pink shadows over +complex biological diagrams which Winter, had he been asked, could neither +have identified nor feigned any interest in. + +Winter was not in the habit of making polite noises to introduce himself for +much the same reason a tiger on the stalk is not in the habit of clearing +its throat. "Helen Beta Narbon," he demanded. + +The girl jumped, then turned to face him. + +Winter chided himself for the chill that ran up his spine. He had, after +all, expected this. The Narbons were mad scientists all the way down their +makeshift line. Winter had only the mildest interest in what his clients did +with their time when they weren't being clients, but he was vaguely aware +that mad scientists had their specialties. Professor Caesar controlled the +weather. Lupin Madblood, and Felix Madblood before him, were killer-robot +men. Madame Onyx had been into particle physics before vanishing into that +parallel dimension. Unfortunate business; she still owed him a retainer from +the vanishing-island settlement. + +The Helen Narbons were biologists. Reviving the dead was a talent of theirs. +So was engineering beast-men. So was cloning. It was how they made more +Helen Narbons. It was hard to picture them going through the usual +biological channels. + +Winter should not have been startled, then, that Helen Beta was a photocopy +of Dr. Narbon at twenty-five - the age lines erased from the round +apple-cheeked face, the calculating gleam wiped from the large blue eyes. He +should not have been startled, and was deeply disappointed in himself for +it, but he was. In the course of his career, Winter had seen the dead rise +from the grave, usually smelling awful and angrily demanding personal-injury +suits, but not like this. This was eerie. + +Helen Beta gazed wide-eyed into the long grim face of Octavius Winter, a +face that made strong men whimper when it frowned and shriek when it smiled. +Her brow puckered. "You're one of Mom's people, aren't you? You've got the +look." + +Winter inclined his head. "I am, among other things, Dr. Narbon's attorney +and executor. You received my letter?" + +"That's right. Why did you want to see me? And what happened to Mr. +Threadham?" + +"Elijah Threadham died not long after you ceased communications with Dr. +Narbon." + +"He was already dead." + +"This time it took." + +"Oh." Helen frowned. "Well, I don't know what Mom told you, but we went over +this with Mr. Threadham. She doesn't have any control over me. It doesn't +matter that I was created as an experiment. She can't--" + +"I fear you misunderstand the situation, Miss Narbon. Do you know of a +decent Italian restaurant?" + +"What?" + +"I prefer to discuss matters of a sensitive nature over dinner. Unless you +would prefer a more private venue?" + +"Sensitive? Look, Mr... was it Winter?" + +"Winter." + +"Mister Winter. I cut my ties to Mom and her thingies when I left home. I'm +putting myself through college. I'm working toward my doctorate." + +"In biochemistry, as I recall." + +"Lots of people study biochemistry. Lots of people are good at it. It +doesn't mean anything. And when I graduate this spring without blowing +anything up, without unleashing any horror, without Tampering in God's +Domain even a tiny little bit, I will find a nice job doing something nice +that helps people. You understand? I'm out of the family business. I don't +care what horrible thing Mom has done this time, and I'm not bailing her out +again." + +"You are the most recent in the long line of Narbon women--" + +"Immaterial." + +"--and, as such, you have certain legal responsibilities. Dinner?" + +Helen deflated. It was as Winter had, with distaste, suspected. Underneath a +thin, brittle coating of bluster, the girl was pure marshmallow. + +"Okay. Fine. Let's go." Helen stuffed her textbook into a lilac backpack and +stood. + +She was wearing a pretty pink blouse. This struck Winter as particularly +obscene. How dare this girl dress Dr. Helen Narbon's body in a pretty pink +blouse? It had tiny hearts embroidered around the collar. Winter's small, +sour stomach turned. + +The radio on the front lawn had resumed normal play; the bucolic sorority +tableau was restored. As Winter, Helen bobbing nervously in his wake, passed +the college girls, his ears picked up hisses of conversation. + +"Oh, surprise, it's her again." + +"What do you think they got her for this time?" + +"Hope she's not coming back." + +He flicked a glance at them. This time the radio exploded. + +"You don't seem well-liked here," said Winter, casting about for light +conversation. + +"Oh, those girls." Helen tossed her head. "There were accidents. Early on. +Some people will believe all kinds of rumors." + +"But you're much better now, I imagine." + +"Yes." + +"I'm sure you've never even laid a finger on those particular young women." + +"Exactly." + +"And it didn't occur to you how very easy it would be to convert their bones +to some highly corrosive acid which would eat their soft young flesh from +the inside out." + +"I'm much better." + +Now that Winter had time to reflect, he saw that the really remarkable thing +about Helen Beta, all things considered, was how much she didn't resemble +her creator. Dr. Narbon's shock of dandelion hair had stuck out from her +head in the mad finger-in-the-light-socket formation with the odd clump +burned or bitten off. Helen's was bound back in a tight, neat ponytail with +a stiffness that suggested too much styling gel or perhaps wood glue. Dr. +Narbon's electric blue eyes had flickered behind a formidable pair of +black-framed army-issue BCDs. Helen also wore glasses, of course, but hers +were fanciful little loops of filligree perched on her nose as if ready to +bail out at the first sign of trouble. If it were possible for glasses to +make a person look less intelligent, these were the frames. And Helen +hunched, something Winter considered only acceptable for licensed +hunchbacks. And chewed her lip, and worried her brow, and that teeny-tiny +voice... + +"Mr. Winter?" + +Winter sighed. "Miss Narbon." + +"Are you going to tell me what this is about?" + +"Over dinner, Miss Narbon. I am very sorely in need of dinner." + +Twenty minutes later, Octavius Winter was glowering. He seldom felt called +upon to glower. His normal expression was more than foreboding enough to +communicate his disapproval, often across state lines. The very fact that +circumstances had gotten bad enough to require a full glower was enough to +dampen his already thoroughly-mildewed mood. + +"This is a nice place," said Helen Beta, bouncing in her seat a little. + +Winter allowed his gaze to travel slowly and witheringly around the room. He +was not accustomed to dining in well-lit establishments, and the very fact +that he could see his surroundings was enough to make him dislike them. His +dark little avian eyes squinted into the flat fluorescent light. + +"There is," he intoned, "a jukebox." + +"It's a perfectly nice bistro," Helen said defensively, ducking behind her +laminated menu. + +It occured to Winter that the glower had relatively little effect on his +dining companion. She might be a damp little ball of pink fluff, he reminded +himself, but she had been raised by Dr. Narbon. Evil probably didn't bother +her that much. More likely, it just made her faintly homesick. + +He allowed his face to realign itself along its well-worn grooves and +glanced down at the table. His aching eyes gazed blearily at artifacts he +found utterly alien and horrific: paper napkins, fiberglass surfaces, little +foil-wrapped pats of butter, and a little sign urging cheerfully, "Ask +you're server for our daily special's!" + +Enough was enough. "To business," said Winter. "Your mother is dead." + +Helen stared blankly. "What?" + +"Your mother. Dead." Winter squinted crosswise at the menu as if trying to +avoid direct eye contact with it. "Do you imagine they know anything +whatsoever about tortellini?" + +"What do you mean, 'dead'?" + +Winter glanced up. "You're a biologist, aren't you? Now, as her executor, I +have certain duties at this time, as do you as her heir." His attache case +snapped open. "There is, to begin, some paperwork to be signed." + +"Wait, what?" Helen shook herself. "How... how did she die?" + +"Angry mob. I am assured it was slow and agonizing." A rare blush of human +feeling moved Winter to attempt a consoling word or two. "She would have +wanted it that way." + +"You ready to order?" snapped a waitress. + +Winter returned to his paperwork. "I will have whichever of your à la carte +items is least tasteless and greasy, and do not under any circumstances +bring me anything you people consider wine." + +Helen rubbed her forehead. "He'll have the tortellini. Bring me the special +and beer." + +As soon as the waitress was gone, Helen turned on Winter. "Mr. Winter, I +don't appreciate this. My mother is not dead." + +Winter didn't answer. He could see no particular point. + +Two gold-tipped pens emerged from his attaché case and took their place at +the table, flanking Dr. Narbon's last will and testament. + +"She's not," said Helen, her voice strained. "She's got you fooled. She's +played dead any number of times. Don't you know that?" + +From the depths of the case, Winter unearthed a slim, black, poisonously +expensive-looking laptop computer. It yawned luxuriously, spreading its +paper-thin alligator jaws. With surprising speed, Winter's pale fingers flew +over the ebony keys. Winter's interest in technology extended strictly to +owning the best and weilding perfect control over it. His approach to his +clients was similar. He hoped Helen Beta would stop being tiresome soon. + +"Are you listening?" Helen was saying. "She's not dead! She couldn't be!" + +Winter turned the computer so she could see. It was impressive, he had to +admit, the quality of video available on a really good computer these days. +He didn't bother watching this time, but the sound was crystal clear: the +cries of the enraged mob, the roar and crackle of the flames, and, above +all, the screams. It wasn't and exceptional end for a mad scientist, not +remotely, but highdef digital really did add something. It certainly left no +doubt whatsoever that Dr. Narbon was dead. + +Afterwards, Helen sat in silence. The pink had drained from her cheeks. +"She's not gone \ No newline at end of file diff --git a/piglatin.l/README.md b/piglatin.l/README.md new file mode 100644 index 0000000..c34c369 --- /dev/null +++ b/piglatin.l/README.md @@ -0,0 +1 @@ +A Lex program that converts an input text to piglatin. \ No newline at end of file diff --git a/piglatin.l/piglatin.l b/piglatin.l/piglatin.l new file mode 100644 index 0000000..55c6251 --- /dev/null +++ b/piglatin.l/piglatin.l @@ -0,0 +1,46 @@ +%{ + +#include +#include +#include +#include +#include + +bool isconsonant(int); + +%} + +%option outfile="piglatin.c" +%option always-interactive +%option nounput noinput + +word [a-zA-Z]+ + +%% + +{word} { if (isconsonant(yytext[0])) { + int numcons = 0; + while (isconsonant(yytext[numcons++]) && numcons < strlen(yytext)) + yytext[numcons - 1] = tolower(yytext[numcons - 1]); + printf("%s", &yytext[--numcons]); + yytext[numcons] = '\0'; + printf("%say", yytext); + yytext[numcons] = ' '; + } else + printf("%sway", yytext); + } +"\n" { putc('\n', stdout); } +. { putc(yytext[0], stdout); } + +%% + +bool isconsonant(int c) { + if (!isalpha(c)) + return false; + + c = tolower(c); + if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') + return false; + + return true; +} diff --git a/search.sh/README.md b/search.sh/README.md new file mode 100644 index 0000000..0a7ba08 --- /dev/null +++ b/search.sh/README.md @@ -0,0 +1 @@ +A simple script to find out which files in a bunch of files contain a certain pattern. diff --git a/search.sh/search.sh b/search.sh/search.sh new file mode 100644 index 0000000..9e9d6ba --- /dev/null +++ b/search.sh/search.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +for i in `ls -1 "$1"` +do + if [[ -d "$1/$i" ]] + then + ($0 "$1/$i" "$2") + else + cat "$1/$i" | grep "$2" > /dev/null + if [[ $? -eq 0 ]] + then + echo "$1/$i" + fi + fi +done \ No newline at end of file diff --git a/ts.c/README.md b/ts.c/README.md new file mode 100644 index 0000000..dc79698 --- /dev/null +++ b/ts.c/README.md @@ -0,0 +1 @@ +A naive interpreter for the Toadskin esoteric language: [https://esolangs.org/wiki/Toadskin](https://esolangs.org/wiki/Toadskin) \ No newline at end of file diff --git a/ts.c/ts.c b/ts.c/ts.c new file mode 100644 index 0000000..82e9c51 --- /dev/null +++ b/ts.c/ts.c @@ -0,0 +1,236 @@ +/*************************************************************************** + * This is free and unencumbered software released into the public domain. * + * * + * Anyone is free to copy, modify, publish, use, compile, sell, or * + * distribute this software, either in source code form or as a compiled * + * binary, for any purpose, commercial or non-commercial, and by any * + * means. * + * * + * In jurisdictions that recognize copyright laws, the author or authors * + * of this software dedicate any and all copyright interest in the * + * software to the public domain. We make this dedication for the benefit * + * of the public at large and to the detriment of our heirs and * + * successors. We intend this dedication to be an overt act of * + * relinquishment in perpetuity of all present and future rights to this * + * software under copyright law. * + * * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * + * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * + * OTHER DEALINGS IN THE SOFTWARE. * + * * + * For more information, please refer to * + ***************************************************************************/ + +#include +#include +#include + +#define STACK_SIZE 40 +#define DICT_SIZE 128 +#define MAX_PROC 513 +#define JMP_SIZE 1024 + +// Procedure dictionary. +typedef struct DICTIONARY_ENTRY { + char code[MAX_PROC]; +} entry_t; + +entry_t dictionary[DICT_SIZE]; + +// Argument stack. +unsigned char stack[STACK_SIZE]; +unsigned char * sp = stack; + +// Jump stack +long jump[JMP_SIZE]; +long * jp = jump; + +// Argument register. +unsigned char arg = 0; + +// Program counter and instruction register. +char ir; + +// Execute simple instructions. +void execute(char c) { + unsigned char aux; + int i; + + switch (c) { + case '+': + // ADD + arg++; + break; + case '-': + // SUB + arg--; + break; + case '<': + // PUSH + *sp++ = arg; + arg = 0; + sp = (sp >= &stack[STACK_SIZE]) ? (sp = stack) : sp; + break; + case '>': + // POP + arg = *--sp; + sp = (sp < stack) ? (sp = &stack[STACK_SIZE - 1]) : sp; + break; + case '.': + // PRINT + fputc((int)arg, stdout); + fflush(stdout); + break; + case ',': + // READ + arg = (unsigned char)fgetc(stdin); + break; + case '%': + // SWAP + aux = *sp; + *sp = *(sp - 1); + *(sp - 1) = aux; + break; + default: + // Check if the character is a procedure name, otherwise ignore it. + if ((unsigned char)c < 128 && strlen(dictionary[c].code) > 0) { + for (i = 0; dictionary[c].code[i]; i++) + execute(dictionary[c].code[i]); + break; + } + break; + } +} + +int main(int argc, char ** argv) { + unsigned char aux; + char key, inst; + int i, lc; + + // Check if there is an input file. + if (argc == 1) { + fprintf(stderr, "%s: fatal error: no input files\n", argv[0]); + fprintf(stderr, "Usage: %s FILE\n", argv[0]); + return EXIT_FAILURE; + } + + // Clean initial memory. + memset(stack, 0, STACK_SIZE * sizeof(char)); + memset(jump, 0, JMP_SIZE * sizeof(long)); + memset(dictionary, 0, DICT_SIZE * sizeof(entry_t)); + + FILE * prog = fopen(argv[1], "r"); + if (prog != NULL) { + ir = (char)fgetc(prog); + + while (!feof(prog)) { + switch (ir) { + case '+': // ADD + case '-': // SUB + case '>': // POP + case '<': // PUSH + case '.': // PRINT + case ',': // READ + case '%': // SWAP + // Execute these instructions directly. + execute(ir); + break; + + case ':': // Define procedure. + // Read procedure name and check if it's valid. + key = (char)fgetc(prog); + if ((unsigned char)key > 128) { + fprintf(stderr, "%s: runtime error: invalid procedure name 0x%X\n", argv[0], (int)key); + return EXIT_FAILURE; + } + // Read procedure code. + i = 0; + for (inst = (char)fgetc(prog); inst != ';'; inst = (char)fgetc(prog)) { + // Check if code is not too long. + if (i >= MAX_PROC) { + fprintf(stderr, "%s: runtime error: procedure %c too long\n", argv[0], key); + return EXIT_FAILURE; + } + // Check for premature EOF. + if (feof(prog)) { + fprintf(stderr, "%s: runtime error: premature EOF while reading procedure %c\n", argv[0], key); + return EXIT_FAILURE; + } + // Save instruction. + dictionary[key].code[i++] = inst; + } + break; + + case '[': // Loop start. + // Check value of the Argument register. + if (arg) { + // If not zero then add this loop's address to the jump stack. + *jp = ftell(prog) - 1; + jp++; + // Check for loop stack overflow. + if (jp >= &jump[JMP_SIZE]) { + fprintf(stderr, "%s: runtime error: too many nested loops\n", argv[0]); + return EXIT_FAILURE; + } + + } else { + // Nested loop counter. + lc = 1; + // If not zero then read the instruction stream until the matching ] is found. + inst = (char)fgetc(prog); + while (!feof(prog)) { + if (inst == '[') + lc++; + else if (inst == ']') + lc--; + if (lc == 0) + break; + inst = (char)fgetc(prog); + } + + // Check for premature EOF. + if (feof(prog)) { + fprintf(stderr, "%s: runtime error: premature EOF\n", argv[0]); + return EXIT_FAILURE; + } + } + break; + + case ']': // Loop end. + // Check for loop stack underflow. + if (jp <= jump) { + fprintf(stderr, "%s: runtime error: mismatched ]\n", argv[0]); + return EXIT_FAILURE; + } + // Pop the loop address from the stack and jump. + fseek(prog, *--jp, SEEK_SET); + break; + + default: + // Check if the character is a procedure name, otherwise ignore it. + if ((unsigned char)ir < 128 && strlen(dictionary[ir].code) > 0) { + for (i = 0; dictionary[ir].code[i]; i++) + execute(dictionary[ir].code[i]); + break; + } + break; + } + + // Fetch next instruction. + ir = (char)fgetc(prog); + } + + fclose(prog); + + } else { + // Bad stuff happened! + perror("bad input"); + return EXIT_FAILURE; + } + + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/tweets.py/README.md b/tweets.py/README.md new file mode 100644 index 0000000..b873549 --- /dev/null +++ b/tweets.py/README.md @@ -0,0 +1 @@ +Python script to fetch images from a Twitter account. \ No newline at end of file diff --git a/tweets.py/tweets.py b/tweets.py/tweets.py new file mode 100644 index 0000000..0215b26 --- /dev/null +++ b/tweets.py/tweets.py @@ -0,0 +1,33 @@ +#! /usr/bin/python + +import tweepy +import requests +import urllib2 + +CONSUMER_KEY = "" +CONSUMER_SECRET = "" +OAUTH_TOKEN = "" +OAUTH_SECRET = "" + +auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) +auth.set_access_token(OAUTH_TOKEN, OAUTH_SECRET) +api = tweepy.API(auth) +timeline = api.user_timeline(count = 1000, screen_name = "") +img_count = 0 + +for tweet in timeline: + # Iterate over media entities + for media in tweet.entities.get("media",[{}]): + # Check if the media is an image + if media.get("type", None) == "photo": + # Request media file + print(media["media_url"]) + req = urllib2.Request(media["media_url"]) + rsp = urllib2.urlopen(req) + file_name = "imgs/image%03d.jpg" % img_count + + # Save the image file + with open(file_name, "w") as f: + f.write(rsp.read()) + + img_count += 1 \ No newline at end of file