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 | |
def to_camel_case(snake_str): | |
components = snake_str.split("_") | |
return components[0] + "".join(x.title() for x in components[1:]) | |
def getTerms(): | |
data = ( | |
("api_token", "your_api_token"), | |
("id", "your_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
#!/bin/bash | |
# Format commits using JIRA issue ID and conventional commits. | |
# E.g. | |
# Branch name: fix/ABC-123/bug-fixing | |
# Commit message: Bug fixed | |
# Formatted commit message: fix: [ABC-123] Bug fixed | |
REGEX_ISSUE_ID="[a-zA-Z0-9,\.\_\-]+-[0-9]+" | |
REGEX_ISSUE_TYPE="[a-z]+" |
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
#!/usr/bin/env sh | |
set -e | |
echo "⬇️ Pulling latest code..." | |
git pull --quiet | |
echo "🔥 Deleting local branches that were removed in remote..." | |
git fetch -p | |
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D | |
echo "🌳 Remaining local branches:" | |
echo "-------------------------" |
OlderNewer