Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric McCormick edm00se

View GitHub Profile
@edm00se
edm00se / UltiBroc.md
Last active Mar 13, 2021
Ultimate Broccoli!
View UltiBroc.md

Ultimate Broccoli

Prep

  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
edm00se / ReadMe.md
Created Jan 31, 2020
DIY scroll to top widget for vue.js use
View ReadMe.md

Scroll Top

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

Issue

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
edm00se / reset_https_npm.sh
Last active Jun 27, 2019
for re-setting https when npm install is dumb and removes https
View reset_https_npm.sh
# for re-setting https when npm install is dumb and removes https
# explainshell: https://www.explainshell.com/explain?cmd=sed+-i+-e+%27s%2Fhttp%3A%5C%2F%5C%2F%2Fhttps%3A%5C%2F%5C%2F%2Fg%27+package-lock.json
sed -i -e 's/http:\/\//https:\/\//g' package-lock.json
@edm00se
edm00se / nanorc.sh
Created Jan 19, 2019
nano syntax highlighting (macOS)
View nanorc.sh
# install
brew install nano
# configure
echo 'include "/usr/local/Cellar/nano/3.2/share/nano/*.nanorc"' > ~/.nanorc
# restart your shell
@edm00se
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
edm00se / Example.md
Last active Jan 19, 2019
How to Embed "Spoiler" Expandable Code Block in GitHub MD (Issues, etc.)
View Example.md
stuff with *mark* **down**

formatted heading with a

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

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
edm00se / About.md
Last active Aug 29, 2019
Progress bar indicator (jQuery).
View About.md
@edm00se
edm00se / About.md
Last active May 31, 2017
An open letter to CBS & Paramount, regarding the release of their fan film guidelines.
View About.md

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
edm00se / ReadMe.md
Last active Feb 7, 2016
Sample utility library
View ReadMe.md

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.

Adding

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