Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jleechpe on github.
  • I am jleechpe (https://keybase.io/jleechpe) on keybase.
  • I have a public key ASDTq3SpdJD4ZzsRitIJIijkWVHB_X5_D5XJTQiUVx6R-go

To claim this, I am signing this object:

[CMDLetBinding()]
param([string]$VMNameStr)
Write-Verbose "Splitting list of VM Names based on commas. Excess whitespace is trimmed. Empty names are omitted."
Write-Verbose "Use -OutVariable to assign to a variable if needed."
# Trim before calculating length to ensure no blank lines.
$VMNameStr.split(',').trim() | ? length -gt 0
@jleechpe
jleechpe / gist:bc1ef519964d7bd8bd13
Created November 17, 2014 02:32
Extract function information for use in an org file
(defun extract-information (sym)
(if (fboundp sym)
(cons 'function (or (help-split-fundoc (documentation sym) sym)
(documentation sym)))
(cons 'variable (documentation-property sym 'variable-documentation))))
(defun def-to-org-headline (sym &optional level)
(let* ((toplevel (or level 1))
(info (extract-information sym))
(name (format "%s" sym))