Skip to content

Instantly share code, notes, and snippets.


Eric McCormick edm00se

View GitHub Profile
edm00se /
Last active Mar 13, 2021
Ultimate Broccoli!

Ultimate Broccoli


  1. preheat your oven to 500F (yes it's hot, it'll roast quickly)
  2. cut up your broccolii into bite sized pieces, small-ish
  3. cover a 1/4 or 1/2 sized sheet pan with aluminum foil
  4. drizzle some olive oil on the pan, add broccoli and shuffle it around a bit ("tossing" the broc' in the olive oil)
  5. season with salt and ground black pepper to preference (err on a little as opposed to a lot)
edm00se /
Created Jan 31, 2020
DIY scroll to top widget for vue.js use

Scroll Top

A vue.js component to provide "scroll to top" of page functionality. Uses font awesome svg loader for the button/icon.


Currently there's an issue with this implmementation, in that mobile Safari tap events aren't triggering the click event as the desktop does.

This approach for its current project has been currently held in favor of vue-scroll-up

edm00se /
Last active Jun 27, 2019
for re-setting https when npm install is dumb and removes https
# for re-setting https when npm install is dumb and removes https
# explainshell:
sed -i -e 's/http:\/\//https:\/\//g' package-lock.json
edm00se /
Created Jan 19, 2019
nano syntax highlighting (macOS)
# install
brew install nano
# configure
echo 'include "/usr/local/Cellar/nano/3.2/share/nano/*.nanorc"' > ~/.nanorc
# restart your shell
edm00se / _darkMinima.scss
Created May 8, 2018
a Dark Minima "theme" on the cheap
View _darkMinima.scss
$brand-color: #d07922;
$background-color: #222426; /* a dark, off-black for the bg */
$text-color: #e6e6e6; /* an off-white for the text */
$grey-color-light: #565656; /* for the border-top separators */
$grey-color-dark: #adadad; /* such as the site title in the header, visited */
edm00se /
Last active Jan 19, 2019
How to Embed "Spoiler" Expandable Code Block in GitHub MD (Issues, etc.)
stuff with *mark* **down**

formatted heading with a

<omg>amazing code!</omg>
edm00se /
Last active May 28, 2021
Mac Setup for Homebrew, Casks, and Required Xcode CLI Tools

Older Macs

You probably need to:

  • install XCode CLI Tools (which can be difficult on older versions)
  • update OpenSSL
  • upgrade git

Install XCode CLI Tools

edm00se /
Last active Aug 29, 2019
Progress bar indicator (jQuery).
edm00se /
Last active May 31, 2017
An open letter to CBS & Paramount, regarding the release of their fan film guidelines.

An Open Letter to CBS & Paramount

CBS & Paramount recently released and announced the new guidelines for fan films (productions). That they are fairly limited in scope for those who seek to create as part of their passion is pretty obvious. I seek anyone who is so empassioned to provide the well reasoned and respectful feedback that Star Trek deserves.

In Short

To reach for the stars, we need to reach a little higher.

edm00se /
Last active Feb 7, 2016
Sample utility library

Utility Library Example

Adding a utility library is a great and convenient way to provide convenince functions for use at a global or near-global level.


Hooking a utility SSJS library works about the same as any Code > Script Library asset in XPages. You can add it via a Theme, my personal recommendation as it makes keeping things tidy quite easy, or by adding it as an xp:resource (resources at the root XPage or Custom Control via the pretty pane). The down side of relying on adding it to a Custom Control is that it will only be available in an SSJS code block if the Custom Control in question has been loaded as part of the user's component tree (the built page); this also leads to potential duplication if the developer starts loading it on lots of Custom Controls.

Via Theme