This file contains hidden or 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 numbers ( | |
num int | |
); | |
create table superstore_orders ( | |
RowID integer | |
, OrderID integer | |
, OrderDate varchar(50) | |
, OrderPriority varchar(50) |
This file contains hidden or 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
import sys | |
import bitly_api | |
import os | |
import datetime | |
from datetime import date | |
from config import config | |
import time | |
#connect to bitly |
This file contains hidden or 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
import sys | |
import bitly_api | |
import os | |
import datetime | |
from datetime import date | |
from config import config | |
import time | |
#connect to bitly |
This file contains hidden or 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
<script src="https://togetherjs.com/togetherjs-min.js"></script> | |
<script type="text/javascript"> | |
// add button for viz talk | |
window.onload = function() { | |
var buttons=document.getElementsByClassName('tab-masthead-toolbar')[0]; | |
var new_button=document.createElement('a'); | |
var new_button_text=document.createTextNode('VizTalk'); | |
new_button.setAttribute('onclick','TogetherJS(this); return false;'); |
This file contains hidden or 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
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<script> | |
d3.html("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22https%3A%2F%2Fcoinbase.com%2Fapi%2Fv1%2Fprices%2Fhistorical%22&format=xml&diagnostics=true&callback=cbfunc", function(error, data) { | |
if(error){ | |
console.log(error); |
This file contains hidden or 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
http://mzl.la/1a98hsp | |
http://mzl.la/16O2m6R | |
http://mzl.la/16O3Ga2 | |
http://mzl.la/16Oc0Gx | |
https://bitly.com/142Q2kL | |
http://mzl.la/1f4yacn | |
http://mzl.la/1h1oxzD | |
http://mzl.la/HuqTYr | |
http://mzl.la/1h1oqnN | |
http://mzl.la/1eY0IXG |
This file contains hidden or 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
{ "data": [ | |
{ | |
"category": "Furniture", | |
"region": "West", | |
"monthlySales": | |
[{ | |
"month":20130101, | |
"sales":38 | |
}, |
This file contains hidden or 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
<h4>The Dilemma</h4> | |
Your Tableau Server instance has a backup policy in place (please say yes) but you also want to ensure your most valuable Tableau Server workbooks are always somewhere safe and secure. What’s more, you’ll have <b>version control</b>! | |
<h4>The Catch</h4> | |
It should all be automatic. No living soul should ever touch this process (except when it needs some upgrades and further improvements). And in keeping with the spirit of ‘utility’, it should be small, fast, and functional. | |
<h4>The High-Level Steps</h4> | |
You’ll need a PostgreSQL script to grab workbook names for export with <a href="http://onlinehelp.tableausoftware.com/current/server/en-us/tabcmd_cmd.htm">tabcmd get</a><b><i>. </i></b>You’ll use this query inside your PowerShell script (file: <a href="https://github.com/MikeRobertsPS/TsHacks">TsGetWorkbookDownloadURL</a>) which leverages the outputted csv for workbook names. | |
[code]SELECT | |
w.id as "WorkbookId" | |
, w.name |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<title>I'm an HTML file!</title> | |
<!-- Replace the reference to the JS API on Tableau Public to your server --> | |
<script type="text/javascript" src="http://public.tableausoftware.com/javascripts/api/tableau_v8.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
This file contains hidden or 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
<?php | |
//get dashboard if one is setup | |
global $current_user; | |
get_currentuserinfo(); | |
// $custom_fields = get_post_custom_values('dashboard_url'); //post must have this configured | |
// $dashboard_url = $custom_fields[0]; //the first value, there technically could be more than 1 |
OlderNewer