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 uri = "https://api.smartsheet.com/2.0/search/sheets/"; | |
let sheetId = inputData.sheetId; | |
let productCode = inputData.productCode; | |
let options = { | |
method: 'GET', | |
headers: {'Authorization': 'Bearer '+inputData.token} | |
}; | |
productCode = parseInt(productCode,10); |
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
from googleapiclient.discovery import build | |
import pprint | |
import csv | |
my_api_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
my_cse_id = "xxxxxxxxxxxxxxx:xxxxxxxxxxxxx" | |
def google_search(search_term, api_key, cse_id, **kwargs): | |
service = build("customsearch", "v1", developerKey=api_key) | |
res = service.cse().list(q=search_term, cx=cse_id, **kwargs).execute() | |
return res['items'] |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace AldeaDigital | |
{ | |
class Program | |
{ |
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 | |
@REM Variables con las credenciales de Azure | |
set azurestoragename=xxxxxxxxxxxxxx | |
set azurestoragekey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx== | |
set storagecontainername=xxxxx | |
@REM Azure Drive | |
@REM (A veces E:, A veces F:) | |
set drive=%cd:~0,3% |
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
<?xml version="1.0" encoding="utf-8"?> | |
<ServiceDefinition name="XentinelCloudInvoicingThreading" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-10.1.8"> | |
<WorkerRole name="XentinelCloudInvoicingThreadingService" vmsize="ExtraSmall"> | |
<Runtime executionContext="elevated" /> | |
<Imports> | |
<Import moduleName="Diagnostics" /> | |
<Import moduleName="RemoteAccess" /> | |
<Import moduleName="RemoteForwarder" /> | |
</Imports> | |
<Startup> |
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
var azure = require('azure'); | |
var blobService = azure.createBlobService('storageAccountName', 'storageAccountKey', 'host'); | |
blobService.createContainerIfNotExists(containerName, { | |
publicAccessLevel : 'blob' | |
}, function(error) { | |
if (error) { | |
console.log("Error : " + error); | |
} | |
}); | |
var mins = 10; |
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
public String GetBlobUriWithSAS(String containerName, String blobName) | |
{ | |
CloudBlobContainer container = this._blobClient.GetContainerReference(containerName); | |
container.CreateIfNotExists(); | |
CloudBlockBlob blockBlob = container.GetBlockBlobReference(blobName); | |
String sharedAccesSignature = blockBlob.GetSharedAccessSignature(new SharedAccessBlobPolicy() | |
{ | |
Permissions = SharedAccessBlobPermissions.Read, | |
SharedAccessExpiryTime = DateTime.UtcNow + TimeSpan.FromMinutes(10) |
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
var foo = function() { | |
return { | |
sendHttpPostToBlitline : function(job_data, callBackBitline) { | |
var http = require('http'); | |
var json_job_data = new Object(); | |
json_job_data.json = job_data; | |
var job_data_stringified = JSON.stringify(json_job_data); | |
var options = { | |
host : 'api.blitline.com', | |
port : 80, |