Blocks of code that may become useful later.
This is a script to embed raw text into a page as highlighted code. It uses ajax requests to fetch the raw content from the URL inside of an anchor element, and then [highlight.js] to render the code.
The benefit of this over Github's gist embedding is that it can be used in a full page. If you want to mirror a Gist to [StackOverflow] for example, this script can be wrapped inside of a code snippet. Every time the gist that the code snippet points to is updated, the code rendered on StackOverflow will also update.
|Set-PSReadlineOption -BellStyle None|
|$Projects = $Env:UserProfile + "\Documents\Projects"|
|$Documents = $Env:UserProfile + "\Documents"|
|$Music = $Env:UserProfile + "\Music"|
|$Videos = $Env:UserProfile + "\Videos"|
|$Downloads = $Env:UserProfile + "\Downloads"|
|$Pictures = $Env:UserProfile + "\Pictures"|
|$Desktop = $Env:UserProfile + "\Desktop"|
|$ProfileDirectory = "$((Get-Item $Profile).Directory.FullName)"|