Skip to content

Instantly share code, notes, and snippets.

View gtaing1's full-sized avatar

Gigi Taing gtaing1

View GitHub Profile
@faustomorales
faustomorales / angular-tableau.js
Created March 6, 2016 05:03
Angular directive to embed Tableau dashboards
/* Using this directive is as easy as 1, 2, 3.
1. Grab the Tableau API JavaScript library as well as this module.
a. <script src="path/to/tableau-2.0.0.min.js"></script>
b. <script src="path/to/angular-tableau.js"></script>
2. Import the module into your app by adding 'angular-tableau' to your dependencies.
3. Use the directive like this:
<tableau-viz height="'500px'"
url="path/to/tableau-dashboard"
filters={'field1':['item1', 'item2'], 'dateField':{'min':startDate, 'max':endDate}}">
</tableau-viz>
@gtaing1
gtaing1 / BarQ-1.js
Last active January 3, 2016 06:26 — forked from anonymous/BarQ-1.js
https://repl.it/BarQ/1 created by Gereltuya
var totthree=0;
var totfive=0;
var a = 3983;
var dtotal=0;
for (var b=3; b<990; b++) {
if (b%3===0) {