Skip to content

Instantly share code, notes, and snippets.

nomatteus /
Created Oct 17, 2011
Format HTML Using Python (Non-destructive, unlike HTML Tidy)
# This is a quick script that will format/indent HTML
# HTML Tidy is often too destructive, especially with bad HTML, so we're using Beautiful Soup
# USAGE: Designed to be used on the command line, just pipe HTML to it, and it will output
# cat file.html | python
# Download & Install Beautiful Soup, if you don't have it already:
# Go to the Beautiful Soup web site,
# Download the package
nomatteus / environment.yml
Created Sep 15, 2019
Her Code Camp Notebooks
View environment.yml
name: example-environment
- conda-forge
- python
- numpy
- graphviz
- pip:
- nbgitpuller
- sphinx-gallery
View .slate
# Slate is a flexible window management system.
# See docs:
# Also see:
config defaultToCurrentScreen true
# Abstract positions
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
View TWG Breakfast


~3 parts each:

  • Hemp Hearts
  • Buckwheat (toasted)
  • Chia Seeds

~1 part each:

nomatteus / fullcalendar.1.6.4.js
Last active May 19, 2018
FullCalendar Vertical Week View
View fullcalendar.1.6.4.js
* FullCalendar v1.6.4
* Docs & License:
* (c) 2013 Adam Shaw
* Use fullcalendar.css for basic styling.
* For event drag & drop, requires jQuery UI draggable.
* For event resizing, requires jQuery UI resizable.
nomatteus / fullcalendar.js
Last active Dec 25, 2015
FullCalendar with vertical week view (better version)
View fullcalendar.js
* <%= meta.title %> v<%= meta.version %>
* Docs & License: <%= meta.homepage %>
* (c) <%= meta.copyright %>
* Use fullcalendar.css for basic styling.
* For event drag & drop, requires jQuery UI draggable.
* For event resizing, requires jQuery UI resizable.
nomatteus /
Created Jul 22, 2013
Learning how to use psql instead of pgAdmin (mostly), and these are the command I want to remember.

Useful psql commands:

How to start/quit the program

  • $ psql database_name: Start psql with database name.
  • \q: Quit psql


  • \l: List all databases
nomatteus / pgAdmin Keyboard
Last active Dec 17, 2015
pgAdmin Useful Keyboard Shortcuts (on Mac) (work in progress...)
View pgAdmin Keyboard


  • Opens Query Editor (Only works when in main view)


  • In query editor, executes query.
  • In table view, refreshes table.
  • In main view, executes whatever is highlighted (tables, columns, etc)
nomatteus / gist:5148606
Created Mar 13, 2013
Code to animate a search bar out of view after a few seconds.
View gist:5148606
// This code is in a table view class.
// Idea was to show the search bar, to let the user know it exists, then animate it away after a couple seconds.
// This code works great, but I took the feature out, and just showed the search bar persistently.
- (void)setupSearchBar {
// Hide search bar after a couple seconds, to let user know it's there.
[self performSelector:@selector(animateHideSearchBar) withObject:nil afterDelay:2.5];

## AppName vX.X does something interesting

AppName vX.X is on the App Store now, and features the following very interesting feature. This is a summary, so I'm focusing on the lead. Just something to make me want to read the rest. Done.

City, State/Country - [Company/Developer] has released AppName vX.X, available in the Mac App Store. AppName is/does [broad, general strokes]. [A few more specific points about who it's for and why it's of benefit to them].

New features!