One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
package main | |
import ( | |
"fmt" | |
"path/filepath" | |
"os" | |
"log" | |
"strings" | |
"os/exec" | |
"bufio" |
//We use this code to retrieve data directly from Tableau server 10.1 from our Node.js server | |
//This is just a simplified example, not the actual code :) | |
// You need to fill in all the things in < > | |
const tableauServer = 'https://<IP OF YOUR SERVER>/trusted'; | |
const username = '<username of a valid user to view the data>'; | |
const reportPath = '/views/<WORKBOOK>/<view>'; | |
const request = require('request-promise-native'); | |
//This is optional, you can add filter parameters directly into the URL | |
//Check if you need to URI encode the parameter value |
param($target = "C:\MyProject", $companyname = "My Company", $date = (Get-Date)) | |
$header = "//----------------------------------------------------------------------- | |
// <copyright file=""{0}"" company=""{1}""> | |
// Copyright (c) {1}. All rights reserved. | |
// <author>Leniel Macaferi</author> | |
// <date>{2}</date> | |
// </copyright> | |
//-----------------------------------------------------------------------`r`n" | |
function Write-Header ($file) |
var AppRouter = Backbone.Router.extend({ | |
routes: { | |
"" : "list", | |
"clients/:id" : "clientDetails" | |
}, | |
initialize: function () { | |
}, | |
list: function(page) { | |
$('#header').html(new HeaderView().render().el); |
var data = [0,1]; | |
function retrieveData(callback){ | |
var x = data[data.length - 1]; | |
var y = data[data.length - 2]; | |
setTimeout(function(){ | |
callback(x,y); | |
},0); | |
} | |