A Github page central snippet repo. Accessible through experimental CentralSnippets add-on library. This repo is available on Github.
Access to this repo is implemented inside the CentralSnippets standard library.
Anyone is welcome to contribute!
- For non-official snippets, consider putting them in folder structure like
Snippets/Spaces/@<Contributor-Name>, e.g.Spaces/@Charles-Zhang/MyFirstScript.csand modify `` variable to point to your site. - Snippets should be self-contained and generally short and may import other libraries.
- Snippets should NOT depend on other snippets.
- Users of snippets should be aware of the dynamic nature of snippets and that their contents and paths may change at any time.
In Pure:
Import(CentralSnippets)
Pull("Markdown/BuildToC", disableSSL: false);To use another repo/develop locally:
Import(CentralSnippets)
SnippetsHostSite = @"C:\GithubProjects\CentralSnippets";
Preview("Markdown/BuildToC");During development and for local use, one can also make use of PUREPATH environment variable: point PUREPATH to local/path/to/CentralSnippets/Snippets, then do pure Demos\HelloWorld.cs.