Skip to content

Instantly share code, notes, and snippets.

View trevordevore's full-sized avatar

Trevor DeVore trevordevore

View GitHub Profile
@trevordevore
trevordevore / gist:5135156
Created March 11, 2013 15:44
LiveCode code that generates a UUID on OS X, Linux and Windows.
function generateUUID
local theError, theUUID
switch the platform
case "macos"
case "linux"
put shell("uuidgen") into theUUID
put word 1 to -1 of theUUID into theUUID
put the result into theError
break
@trevordevore
trevordevore / LiveCode Markdown Converter
Last active December 14, 2015 12:59
LiveCode Markdown converter
/**
* \brief Converts a styledText array to Markdown.
*
* \param pTextA The styledText array to convert.
*
* Test while typing in a field:
* on textChanged
* put StyledTextToMarkdown(the styledText of me)
* pass textChanged
* end textChanged
@trevordevore
trevordevore / StyledText to XHTML Converter
Last active October 1, 2015 02:37
Convert LiveCode styledText array to/from XHTML
/**
* \brief Converts a styled text array to XHTML.
*
* \param pStyledTextA The array to convert.
*
* \return XHTML
*/
function ConvertStyledTextToXHTML pStyledTextA
local theXHTML, theRun, theString
local theListKey
@trevordevore
trevordevore / gist:0983b633ef2d1c54ec1d
Created February 23, 2015 17:45
rotatingfont.mlc
-- declaring extension as widget, followed by identifier
widget com.livecode.extensions.devore.rotatingfont
--
-- adding metadata to ensure the extension displays correctly in livecode
metadata title is "Rotating Font"
metadata author is "Trevor DeVore"
metadata version is "1.0.1"
--