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
Let ( [ | |
$sqlQuery = | |
"SELECT " | |
& SQLTableAndField ( field ) | |
& "¶FROM " | |
& SQLTable ( field ) | |
& "¶LEFT JOIN " | |
& SQLTable ( field ) | |
& "¶ON " | |
& SQLTableAndField ( field ) |
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
// XPathParseWithNamespace ( someXML ; xpathQuery ; namespaceList ) | |
// adapted from this code: http://www.java2s.com/Code/Java/XML/implementsNamespaceContext.htm | |
// and the prior XPath Parse function in ScriptMaster | |
import javax.xml.XMLConstants; | |
import javax.xml.namespace.NamespaceContext; | |
import javax.xml.xpath.XPath; | |
import javax.xml.xpath.XPathFactory; | |
import javax.xml.xpath.XPathConstants; | |
import javax.xml.xpath.XPathExpressionException; |
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
/** | |
* ===================================== | |
* GetDelimitedValue ( text ; delimiter ; occurrence ) | |
* | |
* RETURNS: | |
* Value in specified location of delimited text. | |
* | |
* PARAMETERS: | |
* text = (text) delimited data | |
* delimiter = (text) single character used to separate values |
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
@ECHO OFF | |
ECHO.------------------------------------------------------------------------------- | |
ECHO. | |
ECHO. VirtualBoxFixNIC.cmd | |
ECHO. | |
ECHO. Created on 2013-DEC-13 by Dan Smith http://scr.im/dansmith | |
ECHO. | |
ECHO. Fix issue with VirtualBox Host-Only Network adapter in Windows by adding | |
ECHO. *NdisDeviceType=1 to registry. | |
ECHO. |
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
/* ListContains ( ValueList ; ValuesToTestExistence ) | |
PURPOSE: | |
Test if all specified values exist in a list. | |
PARAMETERS: | |
ValueList (text) values to search in | |
ValuesToTestExistence (text) value(s) to search for | |
RETURNS: |
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
/** | |
* ============================================================================ | |
* #SanitizeName ( name ) | |
* | |
* PURPOSE: | |
* Remove characters that are not valid for use in a Let() variable name. | |
* | |
* RETURNS: | |
* Text that is a valid Let() variable name, if an error occurs, the original text is returned. | |
* |
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
/** | |
* ===================================== | |
* RowContainingValue ( data ; firstColumnValue ; columnSeparator ; rowSeparator ) | |
* | |
* RETURNS: | |
* First row from an array of data where the first columns value matches. | |
* WITHOUT trailing column separator. | |
* | |
* PARAMETERS: | |
* data: array of data with single characters delimiting columns/rows |
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
/** | |
* ===================================== | |
* # ( name ; value ) | |
* | |
* RETURNS: | |
* An name-value pair in Let notation. | |
* | |
* PARAMETERS: | |
* name: The name for the returned name-value pair. name can be any value | |
* that would be a valid Let() variable name. |
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
/** | |
* ===================================== | |
* VerifyVariablesNotEmpty ( nameList ) | |
* | |
* RETURNS: | |
* True (1) if a locally scoped $variable matching each value in nameList | |
* is not empty; False (0) otherwise. | |
* | |
* PARAMETERS: | |
* nameList: A return-limited list of names to check. Names do not need to |
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
# Get-TodoistBackup.ps1 | |
# Created By: Daniel Smith dan@dansmith65.com | |
# | |
# Download the latest backup from Todoist | |
# | |
$token = "" | |
# get list of backups from Todoist |
OlderNewer