Some exercises from the Falsy Values workshops.
The good parts:
- HTTP server and client in same script
- Express cookies example
- Express routing example
- Express error handling
- Express middlewares example
- Simple HTTP proxy
| ;; emacsd-tile.el -- tiling windows for emacs | |
| (defun swap-with (dir) | |
| (interactive) | |
| (let ((other-window (windmove-find-other-window dir))) | |
| (when other-window | |
| (let* ((this-window (selected-window)) | |
| (this-buffer (window-buffer this-window)) | |
| (other-buffer (window-buffer other-window)) | |
| (this-start (window-start this-window)) |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Cross-browser kerning-pairs & ligatures</title> | |
| <style> | |
| body { font-family: sans-serif; background: #f4f3f3; color: rgba(40, 30, 0, 1); width: 500px; margin: 80px auto; padding: 0px; } | |
| a { color: rgba(15, 10, 0, 0.8); text-decoration: none; border-bottom: 1px solid; padding: 1px 1px 0px; -webkit-transition: background 1s ease; } | |
| a:hover { background: rgba(0, 220, 220, 0.2); } | |
| p, li { line-height: 1.5; padding: 0em 1em 0em 0em; margin: 0em 0em 0.5em; } |
| # Migrating my old .gitconfig blog post from 2007 to here so I can update it easier. | |
| # Original URL: | |
| # https://www.susanpotter.net/snippets/my-.gitconfig-.tigrc-files/ | |
| [user] | |
| name = Susan Potter # make sure you change this | |
| email = me@susanpotter.net # make sure you change this | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto |
| // this is a locale bundle | |
| var locale = {"en-US":"<locale xml:lang=\"en\" xmlns=\"http://purl.org/net/xbiblio/csl\"> <style-options punctuation-in-quote=\"true\"/> <date form=\"text\"> <date-part name=\"month\" suffix=\" \"/> <date-part name=\"day\" suffix=\", \"/> <date-part name=\"year\"/> </date> <date form=\"numeric\"> <date-part name=\"year\"/> <date-part name=\"month\" form=\"numeric\" prefix=\"-\" range-delimiter=\"/\"/> <date-part name=\"day\" prefix=\"-\" range-delimiter=\"/\"/> </date> <terms> <term name=\"document-number-label\">No.</term> <term name=\"document-number-authority-suffix\">Doc.</term> <term name=\"un-sales-number-label\">U.N. Sales No.</term> <term name=\"collection-number-label\">No.</term> <term name=\"open-quote\">\u201c</term> <term name=\"close-quote\">\u201d</term> <term name=\"open-inner-quote\">\u2018</term> <term name=\"close-inner-quote\">\u2019</term> <term name=\"ordinal-01\">st</term> <term name=\"ordinal-02\">nd</ter |
Some exercises from the Falsy Values workshops.
The good parts:
| NEW | |
| ``disambiguate-add-year-suffix`` [Step (4)] | |
| If set to "true" ("false" is the default), an alphabetic year-suffix is | |
| added to ambiguous cites (e.g. "Doe 2007, Doe 2007" becomes "Doe 2007a, Doe | |
| 2007b") and to their corresponding bibliographic entries. The assignment of | |
| the year-suffixes follows the order of the bibliographies entries, and | |
| additional letters are used once "z" is reached ("z", "aa", "ab", ..., "az", | |
| "ba", etc.). By default the year-suffix is appended to the cite, and to the | |
| first year rendered through ``cs:date`` in the bibliographic entry, but its |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Dissent, Public Space and the Politics of Citizenship: Riots and the Outside Agitator</title> | |
| <script type="text/javascript" | |
| src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script> | |
| <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> | |
| <link | |
| rel="stylesheet" |
| bootstrap-tooltip.js | |
| bootstrap-popover.js | |
| bootstrap-alert.js | |
| bootstrap-button.js | |
| bootstrap-carousel.js | |
| bootstrap-collapse.js | |
| bootstrap-dropdown.js | |
| bootstrap-modal.js | |
| bootstrap-scrollspy.js | |
| bootstrap-tab.js |
| SLIDES := $(patsubst %.md,%.md.slides.pdf,$(wildcard *.md)) | |
| HANDOUTS := $(patsubst %.md,%.md.handout.pdf,$(wildcard *.md)) | |
| all : $(SLIDES) $(HANDOUTS) | |
| %.md.slides.pdf : %.md | |
| pandoc $^ -t beamer --slide-level 2 -o $@ | |
| %.md.handout.pdf : %.md | |
| pandoc $^ -t beamer --slide-level 2 -V handout -o $@ |