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
//@version=5 | |
strategy(title="Tony's EMA Scalper - Buy / Sell 1.1 (1H)", | |
shorttitle="TUX EMA Scalper", | |
overlay=true, | |
initial_capital=500, | |
default_qty_type=strategy.percent_of_equity, | |
default_qty_value=100, // 100% of balance invested on each trade | |
commission_type=strategy.commission.cash_per_contract, | |
commission_value=0.005) // Interactive Brokers rate |
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
version: '3.8' | |
services: | |
doris: | |
image: yagagagaga/doris-standalone | |
ports: | |
- "8030:8030" | |
- "8040:8040" | |
- "9030:9030" | |
mysql: |
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 DATABASE foo; | |
USE foo; | |
EXEC sys.sp_cdc_enable_db; | |
CREATE TABLE rockets ([id] bigint,[model] varchar(200), PRIMARY KEY (id)); | |
EXEC sys.sp_cdc_enable_table @source_schema = 'dbo', @source_name = 'rockets', @role_name = NULL, @supports_net_changes = 0; | |
EXEC sys.sp_cdc_help_change_data_capture |
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
from datetime import datetime | |
from pandas import os | |
import polars as pl | |
from google.cloud import bigquery | |
sqlserver_dsn = os.environ['SQLSERVER_DSN'] | |
sqlserver_query = os.environ['SQLSERVER_QUERY'] | |
bigquery_svc_acc_path = os.environ['BIGQUERY_SVC_ACC_PATH'] | |
bigquery_project_id = os.environ['BIGQUERY_PROJECT_ID'] |
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
kubectl run testnet --image jonlabelle/network-tools:latest --overrides='{"apiVersion": "v1", "spec": {"nodeSelector": { "kubernetes.io/hostname": "<node_name>" }}}' -it --rm -- bash |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
loc := time.UTC | |
hours := 1 |