Skip to content

Instantly share code, notes, and snippets.

nomatteus / environment.yml
Created September 15, 2019 14:12
Her Code Camp Notebooks
View environment.yml
name: example-environment
- conda-forge
- python
- numpy
- graphviz
- pip:
- nbgitpuller
- sphinx-gallery
nomatteus / .slate
Created January 28, 2019 20:44
Slate window manager config.
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 ocmock-cheatsheet.m
#pragma mark - XCTAsserts
XCTAssert(expression, format...);
XCTAssertTrue(expression, format...);
XCTAssertFalse(expression, format...);
XCTAssertEqual(expression1, expression2, format...);
XCTAssertNotEqual(expression1, expression2, format...);
XCTAssertNil(expression, format...);
nomatteus / TWG Breakfast
Last active September 13, 2018 14:26
TWG Breakfast Mix
View TWG Breakfast


~3 parts each:

  • Hemp Hearts
  • Buckwheat (toasted)
  • Chia Seeds

~1 part each:

nomatteus /
Last active August 29, 2015 14:05
CentOS 6 Postgres Install
sudo vi /etc/yum.repos.d/CentOS-Base.repo
# At the bottom of the [base] section, add a line that excludes the postgres packages:
# Add the same line to the bottom of the [updates]
# Use URL for your version of CentOS:
cd ~
curl -O
sudo rpm -ivh pgdg*
nomatteus / fullcalendar.js
Last active December 25, 2015 02:19
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 / fullcalendar.1.6.4.js
Last active May 19, 2018 12:05
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 /
Created July 22, 2013 14:28
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 December 17, 2015 09:08
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 March 13, 2013 01:16
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];