TypeScript, Understanding the code you write
:-====-:
-+-. .:-+**-
+= =+:...-*+
{ | |
"React Functional Component with Props": { | |
"prefix": "rfcp", | |
"body": [ | |
"interface $1Props {}", | |
"", | |
"export const $1 = ({}: $1Props) => {", | |
" return $2;", | |
"};" | |
] |
Hey 👋 This is the function I've created for exporting specific notion database to GitHub Repo in my telegram bot (full code) The function supports nested databases.
ctx is used for telegram bot you can ignore it.
const handleDatabases = async (
#!bin/bash | |
pushit () { | |
echo "Getting data..."; | |
jira issue list -a"Zeyad Etman" -s"IN PROGRESS"; | |
echo "\nPlease enter ticket id: " | |
read id; | |
echo "\n" | |
desc=$(jira issue list -q "key = $id" --plain); | |
A=$(awk -F"$id" '{print $2}' <<< $desc) |
I hereby claim:
To claim this, I am signing this object:
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/zeyadetman/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
#https://github.com/zeyadetman/RemoveDuplicateFiles | |
import os | |
import hashlib | |
import sys | |
files = [] | |
def hashing(Filepath): | |
with open(Filepath, 'rb') as f: | |
HashedFile = hashlib.sha256(f.read()).hexdigest() | |
return HashedFile |