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
////////////////////// | |
// 1. crawler config | |
crawlerConfig = createObject("java", "com.norconex.collector.http.crawler.HttpCrawlerConfig"); | |
// straight test. does the default crawlerconfig have its appropriate methods. ? | |
//writeDump(crawlerConfig); //YES |
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
[ | |
{"type": "add", | |
"id": "tt0484562", | |
"fields": { | |
"title": "CloudSearch Rocks", | |
"content": "hello world", | |
"coid":42, | |
"minimumUserLevel": 500 | |
} | |
} |
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
// Create basic AWS credentials properties | |
BasicAWSCredentials = createObject("java", 'com.amazonaws.auth.BasicAWSCredentials').init(yourAccessKey, YourSecretKey); | |
// turn credentials into a provider object | |
AWSCredentialsProviderObj = createObject("java", "com.amazonaws.auth.AWSStaticCredentialsProvider").init(BasicAWSCredentials); | |
// documents endpoint | |
serviceEndpoint = 'search-mydomain-myendpointstring.us-east-1.cloudsearch.amazonaws.com'; | |
signingRegion = 'us-east-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
BasicAWSCredentials = createObject("java", 'com.amazonaws.auth.BasicAWSCredentials').init(yourAccessKey, your | |
secretKey); | |
// turn credentials into a provider object | |
AWSCredentialsProviderObj = createObject("java", "com.amazonaws.auth.AWSStaticCredentialsProvider").init(BasicAWSCredentials); | |
// create our client | |
AWSSNSClient = createObject("java", "com.amazonaws.services.sns.AmazonSNSClientBuilder").standard().withRegion("us-east-1").withCredentials(AWSCredentialsProviderObj).build(); | |
// create/identify the topicArn, snsMessage and snsSubject text strings of what you want your topic to publish. |
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
<snippet> | |
<content><![CDATA[/** | |
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name} | |
* @hint: ${1} | |
* @author: $TM_FULLNAME ($TM_EMAIL) | |
* @copyright: $TM_ORGANIZATION_NAME | |
* @created: ${2} | |
* @modified: ${2} | |
*/ |
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
--good for quick coding cruds | |
--- CF-specific. EDIT TO WORK WITH YOUR LANGUAGE | |
-- see http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f6f.html | |
-- for list of queryparam translations that might need to be done manually | |
declare @tablename varchar(50); | |
set @tablename = '[INSERT YOUR TABLE NAME HERE]'; | |
/*** |
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
<snippet> | |
<content><![CDATA[ | |
Peter V Lombardo [email protected] | |
]]></content> | |
<tabTrigger>me</tabTrigger> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[/** | |
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}.${1:functionName} | |
* @hint: ${2:Description} | |
* @returns: Numeric record ID | |
* @date: ${3:Date} | |
* @author: $TM_FULLNAME ($TM_EMAIL) | |
*/ | |
${4:public} Numeric function ${1:functionName}( | |
${5} |
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
<snippet> | |
<content><![CDATA[/** | |
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}.${1:functionName} | |
* @hint: ${2:Description} | |
* @returns: Query | |
* @date: ${3:Date} | |
* @author: $TM_FULLNAME ($TM_EMAIL) | |
*/ | |
${4:public} Query function ${1:functionName}( | |
${7} |
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
<snippet> | |
<content><![CDATA[/** | |
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}.${1:functionName} | |
* @hint: ${2:Description} | |
* @returns: Boolean for whether a record exists | |
* @date: ${3:Date} | |
* @author: $TM_FULLNAME ($TM_EMAIL) | |
*/ | |
${4:public} Boolean function ${1:functionName}( | |
${5} |
NewerOlder