Skip to content

Instantly share code, notes, and snippets.

@mikexine
mikexine / autorefresh.html
Created November 3, 2017 12:28
Autorefresh a dashboard on Tableau Server
<html>
<body>
<script type="text/javascript">
getTableau = function() {
return parent.parent.tableau;
};
getCurrentViz = function() {
return getTableau().VizManager.getVizs()[0];
};

Keybase proof

I hereby claim:

  • I am mikexine on github.
  • I am mikexine (https://keybase.io/mikexine) on keybase.
  • I have a public key whose fingerprint is 761B 0E57 BB38 D818 A65B 1A31 F52F 58FE 3139 3970

To claim this, I am signing this object:

@mikexine
mikexine / openpgp.txt
Created May 16, 2016 15:37
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:761b0e57bb38d818a65b1a31f52f58fe31393970]
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import config
from tweepy import Stream
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
auth = OAuthHandler(config.consumer_key, config.consumer_secret)
auth.set_access_token(config.access_token, config.access_secret)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import operator
import json
from nltk import bigrams
from collections import Counter
import re
from collections import defaultdict
from nltk.corpus import stopwords
from datetime import datetime
import urllib2
import urllib
import json
import os
def ajaxRequest(url=None):
"""
Makes an ajax get request.
url - endpoint(string)