Skip to content

Instantly share code, notes, and snippets.

import boto3
import pandas as pd
s3 = boto3.client('s3')
def transfrom_member_df(
df,
select_cols:list,
new_col_suffix:str,
@baotran2207
baotran2207 / mt4_telegram.py
Created March 29, 2022 02:27
telegram to mt5
import MetaTrader5 as mt5
from pyrogram import Client, filters
import re
from time import sleep
channels = {
-1001416233252: {'type': 'channel', 'trading': 'str_long', 'url': 'test'}, #
-1001445377985: {'type': 'channel', 'trading': 'str_long', 'url': '@americanforexspecialist'}, #
-1001349935562: {'type': 'channel', 'trading': 'gold', 'url': '@bestForexSignalsPips'}, #
-1001246538371: {'type': 'channel', 'trading': 'scalping', 'url': '@bestforextradinggroup'}, #
@baotran2207
baotran2207 / iterm2.md
Created December 7, 2021 03:09 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab ⌘ + T
Close Tab or Window ⌘ + W (same as many mac apps)
Go to Tab ⌘ + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction ⌘ + Option + Arrow Key
Cycle iTerm Windows ⌘ + backtick (true of all mac apps and works with desktops/mission control)