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
/** | |
* | |
*/ | |
package tableauSrvrWebservice.Auth; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.StringReader; |
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
// ----------------------------------------------------------------------- | |
// The information in this file is the property of Tableau Software and | |
// is confidential. | |
// | |
// Copyright (C) 2012 Tableau Software. | |
// Patents Pending. | |
// ----------------------------------------------------------------------- | |
// externalapi/samples/com/tableausoftware/demos/MakeOrder.java | |
// ----------------------------------------------------------------------- | |
package com.tableausoftware.demos; |
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
# CoffeeScript version of Google Spreadsheet Driver for Tableau Data Web Connector | |
init = -> | |
if !tableau | |
alert 'init- tableau NOT defined!' | |
return | |
tableau.scriptVersion = '1.0' | |
tableau.log 'init' | |
tableau.initCallback() |
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 OR REPLACE FUNCTION from_url( | |
-- The URL to download. | |
IN url text, | |
-- The maximum number of bytes to download. | |
-- If 0 then the whole response is returned. | |
IN max_bytes integer DEFAULT 0, | |
-- Should any errors (like HTTP transport errors) | |
-- throw an exception or simply return default_response | |
IN should_throw boolean DEFAULT true, | |
-- The default response if any errors are found. |
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
(ns tabsync.tableau | |
(:require [clj-http.client :as client] | |
[clojure.zip :refer [xml-zip]] | |
[clojure.data.zip.xml :refer [xml-> xml1-> attr ]] | |
[clojure.data.xml :as xml]) | |
) | |
(defn tableau-url-for | |
"Constructs server API url. Target can be hostname or session returned from logon-to-server" | |
[target api-path] |
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 this file to the apache\conf directory | |
# Load mod_jk module | |
# Update this path to match your modules location | |
LoadModule jk_module modules/mod_jk.so | |
# Declare the module for <IfModule directive> (remove this line on Apache 2.x) | |
#AddModule mod_jk.c | |
# Where to find workers.properties | |
# Update this path to match your conf directory location (put workers.properties next to httpd.conf) |
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
require 'httpclient' | |
module TableauLDAPSync | |
class Tableau | |
def initialize(server_url) | |
proxy = ENV['HTTP_PROXY'] | |
@http_client = HTTPClient.new(proxy) | |
@http_client.set_cookie_store("cookie.dat") |
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 TABLE emp ( | |
name text, | |
age integer, | |
salary numeric(10,2) | |
); | |
CREATE OR REPLACE FUNCTION get_emps(float8) RETURNS SETOF emp AS ' | |
names <- c("Joe","Jim","Jon") | |
ages <- c(41,25,35) | |
salaries <- c(250000,120000,50000) |
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
REPORT ZAL_ABAP message-id 26 line-size 255 | |
no standard page heading. | |
* Y_XI_G00D_KONV_FASTFULL_2. | |
PARAMETER $PARAM1 TYPE I. | |
PARAMETER DOWNLOAD(1) DEFAULT 'N' lower case. "N-svr,Y-clnt | |
PARAMETER EXECMODE(1) DEFAULT 'B' lower case. "D-dlg,B-btch | |
PARAMETER OUT_DIR(48) DEFAULT "output file dir | |
'/dwacta/out/LD2' lower case. | |
PARAMETER IN_DIR(48) DEFAULT "input file dir | |
'/dwacta/out/LD2' lower case. |
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
ALTER SESSION SET plsql_compiler_flags = 'NATIVE'; | |
-- | |
ALTER TYPE geomean_impl COMPILE; | |
-- | |
CREATE FUNCTION geomean( input NUMBER ) | |
RETURN NUMBER | |
PARALLEL_ENABLE | |
AGGREGATE USING geomean_impl; |