python .\locust-workers.py -h
usage: locust-workers.py [-h] [-p path] [-s num] [-f LOCUSTFILE]
Run locust workers
optional arguments:
-h, --help show this help message and exit
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
#!/usr/bin/python3 | |
import sys | |
if sys.version_info < (3, 6): | |
print("Must be using Python 3.6 or higher") | |
exit(1) | |
from typing import List | |
import os |
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
SELECT | |
event_date, event_timestamp, event_name, app_info.id, user_pseudo_id, | |
max( | |
if(user_property.key = "user_status", user_property.value.string_value, NULL) | |
) user_status | |
FROM | |
( | |
SELECT *, ROW_NUMBER() OVER (PARTITION BY user_pseudo_id ORDER BY event_timestamp DESC ) as rn | |
FROM `project-id.dataset-id.events_*` |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<script src="https://kendo.cdn.telerik.com/2020.1.114/js/jquery.min.js"></script> | |
<script src="https://kendo.cdn.telerik.com/2020.1.114/js/jszip.min.js"></script> | |
<script src="https://kendo.cdn.telerik.com/2020.1.114/js/kendo.all.min.js"></script> | |
<!-- Load Pako ZLIB library to enable PDF compression --> | |
<script src="https://kendo.cdn.telerik.com/2017.3.913/js/pako_deflate.min.js"></script> |
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
[tool.poetry] | |
name = "test" | |
version = "0.1.0" | |
description = "" | |
[tool.poetry.dependencies] | |
python = "^3.7" | |
fastapi = {extras = ["all"], version = "^0.52.0"} | |
uvicorn = "^0.11.5" | |
orjson = "^3.2.2" |
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
import * as functions from 'firebase-functions'; | |
import { OAuth2Client } from 'google-auth-library'; | |
import { google, sheets_v4 } from 'googleapis'; | |
import admin from 'firebase-admin'; | |
// Use firebase functions:config:set to configure your watchedpaths object: | |
// googleapi.client_id = Google API client ID, | |
// googleapi.client_secret = client secret, and | |
// googleapi.sheet_id = Google Sheet id (long string in middle of sheet URL) | |
// watchedpaths.data_path = Firebase path for data to be synced to Google Sheet |
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
{"lastUpload":"2020-07-14T03:18:06.626Z","extensionVersion":"v3.4.3"} |
NewerOlder