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 looker_sdk | |
| from looker_sdk import models, error | |
| ########## UPDATE THIS ########## | |
| INI_FILE = "looker.ini" | |
| CONNECTION_NAME = "faa" | |
| dashboard_element_id = '123' | |
| old_string = 'old-string' | |
| new_string = 'new-string' | |
| ################################# |
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 requests, json, pandas as pd | |
| USERNAME = 'YOUR_EMAIL@WHATEVER.COM' | |
| PW = 'YOUR_PASSWORD' | |
| formdata = {"email": USERNAME, "password": PW, "scope": "webplayer"} | |
| response = requests.post("https://api.pocketcasts.com/user/login", data=formdata) | |
| response.raise_for_status() | |
| token = response.json().get('token') |
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 textwrap | |
| from typing import Optional | |
| import exceptions, urllib | |
| from looker_sdk import client, models | |
| import csv | |
| import json | |
| import pprint as pp | |
| sdk = client.setup("../looker.ini") |
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
| var vis = { | |
| id: 'flamegraph', | |
| label: 'Flamegraph', | |
| options: { | |
| color: { | |
| type: 'string', | |
| label: 'Custom Color', | |
| display: 'color', | |
| }, | |
| diameter: { |