Skip to content

Instantly share code, notes, and snippets.

@mottosso
Last active August 29, 2015 14:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mottosso/9b25f547d5364f050494 to your computer and use it in GitHub Desktop.
Save mottosso/9b25f547d5364f050494 to your computer and use it in GitHub Desktop.
That's the gist of it

That's the gist of it

Since be 0.3.0, you can now use gists for presets and register them with be-presets to have them appear in the online database of presets.

untitled

This is great for configurations that you wish to remain small and that may not need all of the flexibility that a full GitHub repository offers, such as pull-request, wiki and issue tracking. Gists also have support for comments, which is something unique. This means you can share a project configuration, and start a conversation about it, in context to the physical files that make up that configuration.

But perhaps the greatest thing about gists is the ability to glance over multiple files at once. Each file is laid out next to each other, alphabetically, top-to-bottom. Since be presets are so small, you can typically fit an entire configuration on a page without scrolling. Win!

As an example, this blog post is a fully featured project configuration. Glance over the files below, or give it a try right now on your own! Gists can either be registered with be-presets, or referenced directly via the two identifying components at the top of your browser window - username/id.

$ be new mottosso/9b25f547d5364f050494 --name website
$ be in website home body --enter
$ sublime

Enjoy!

alias:
# Support for editing in Sublime Text, on Windows-only.
# See here for cross-platform tips:
# https://github.com/mottosso/be/wiki/integration#alias
sublime: start "" "c:/program files/sublime text 3/sublime_text.exe"
# An inventory for a website
page:
- about
- home
meta:
- comment
- reply
- report
- issue
{
"schema": "0.0.1",
"type": "bepreset",
"description": "An example gist for a website project configuration"
}
page: "{cwd}/{0}/pages/{1}"
meta: "{cwd}/{0}/_meta/{1}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment