This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script "UTM To LatLong Library" | |
/** | |
Summary: Converts UTM coordindates to lat/long | |
Parameters: | |
pZoneNumber: A number between 1 and 60. | |
pZoneLetter: A-Z, Zones A-M are soutern, N-Z are northern/ | |
pEasting: Number | |
pNorthing: Number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function htmlTextToMarkdown pText, pEscape | |
put pEscape is not false into pEscape | |
replace "<b>" with "<strong>" in pText | |
replace "</b>" with "</strong>" in pText | |
## http://daringfireball.net/projects/markdown/syntax | |
## Doesn't support targets as far as I can tell | |
_RemoveATagTarget pText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constant kMultiLineModeNone = 0 | |
constant kMultiLineModeLiteral = 1 | |
constant kMultiLineModeFolded = 2 | |
command YAMLToArray pYaml | |
local tInDocument = true | |
local tPath | |
local tArray | |
local tPathLists | |
local tReferences |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script "SignApplicationForOSX" | |
on preOpenCard | |
set the visible of this stack to true | |
put the rect of this stack into tRect | |
put item 1 of tRect + 400 into item 3 of tRect | |
put item 2 of tRect + 400 into item 4 of tRect | |
set the rect of this stack to tRect | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result = "" | |
theDomain = "[[Domain]]" 'domain with no trailing / | |
theQuery = "[[Query]]" 'query such as ou=Users,dc=... | |
theUser = "[[Username]]" | |
thePassword = "[[Password]]" | |
On Error resume next | |
Const E_ADS_PROPERTY_NOT_FOUND = &h8000500D | |
LDAPString = "LDAP://" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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" | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Handlers for converting XML to LiveCode arrays and vice versa. | |
* | |
* Provided by Trevor DeVore of Blue Mango Learning Systems. | |
*/ | |
/** | |
* \brief Escapes the predefined XML entities in a string. | |
* | |
* \param pStr The string to escape the characters in. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put the VBScript into a variable and then execute as follows: | |
do theScript as "vbscript" | |
if the result begins with "error," then put item 2 to -1 of the result into theError | |
else | |
put the result into theADUserInfo ## last name, first name & cr & group & tab & group ... | |
end if |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \brief Creates a zip file from a directory. The ZIP archive should already have been opened with revZipOpenArchive. | |
* | |
* \param pZipArchivePath The path to save the zip archive to. This should already have been opened with revZipOpenArchive. | |
* \param pRootFolderPath The folder to save in the zip archive. | |
* \param pIncludeRootFolderInArchiveItemNames Pass in true to include the name of pRootFolderPath in the zip archive. | |
* \param pFilesToExclude Files that should not be included in the archive. | |
* \param pExtensionsThatArentCompressed File extensions that should be added without any compression. | |
* \param pFolderPath Used when calling itself recursively. Pass in empty. | |
* |
NewerOlder