spaces_length = ((the expected length to make them all equal - the length of the task name) / 2)
and then replace the task name with:
(' ' * space_length[0]) + task_name + (' ' * spaces_length[1])
spaces_length = ((the expected length to make them all equal - the length of the task name) / 2)
and then replace the task name with:
(' ' * space_length[0]) + task_name + (' ' * spaces_length[1])
" Opps, a critical error has occurred, we will be ": { | |
"ar": "\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u0627\u062f\u062d \u0641\u064a \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0646\u0638\u0627\u0645 , \u0633\u0646\u0643\u0648\u0646 \u0634\u0627\u0643\u0631\u064a\u0646 \u0644\u0643 \u0625\u0646 ", | |
"en": " Opps, a critical error has occurred, we will be ", | |
"es": " un error cr\u00edtico ha ocurrido. ", | |
"fr": " une erreur critique est survenue. veuillez ", | |
"it": " si \u00e8 verificato un errore critico. ", | |
"bg": "Опс, възникна критична грешка, ще бъдем" | |
} |
{ | |
"window.zoomLevel": 1, | |
"editor.fontSize": 17, | |
"window.menuBarVisibility": "hidden", | |
"workbench.colorTheme": "Dracula", | |
"workbench.iconTheme": "easy-icons", | |
"python.jediEnabled": false, | |
"workbench.sideBar.location": "right", | |
"terminal.integrated.rendererType": "dom", | |
"editor.minimap.enabled": false, |
set_ps () { | |
PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @ \[\033[0;36m\]\h \w\[\033[0;32m\] ($(git branch 2>/dev/null | grep '^*' | colrm 1 2))\n\[\033[0;32m\]└─\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\] ▶\[\033[0m\] '; | |
} |
{ | |
"workbench.sideBar.location": "right", | |
"macros": { | |
"toggleBars": [ | |
"workbench.action.toggleActivityBarVisibility", | |
"workbench.action.toggleSidebarVisibility", | |
], | |
"focusExplorer": [ | |
"macros.toggleBars", | |
"workbench.files.action.focusFilesExplorer" |
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+alt+space", | |
"command": "macros.toggleBars" | |
}, | |
{ | |
"key": "ctrl+x ctrl+c", | |
"command": "workbench.action.keepEditor" | |
}, |
dbaeumer.vscode-eslint-1.8.2 geddski.macros-1.2.1 ms-python.python-2019.2.5558 | |
file-icons.file-icons-1.0.16 jmfirth.vsc-space-block-jumper-1.2.2 rubymaniac.vscode-paste-and-indent-0.0.8 | |
formulahendry.auto-close-tag-0.5.6 lfs.vscode-awesome-emacs-keymap-0.8.2 streetsidesoftware.code-spell-checker-1.6.10 | |
formulahendry.vscode-mysql-0.3.0 monokai.theme-monokai-pro-vscode-1.1.12 wayou.vscode-todo-highlight-1.0.4 |
#!/usr/bin/env bash | |
# Shell prompt based on the Solarized Dark theme. | |
# Screenshot: http://i.imgur.com/EkEtphC.png | |
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles | |
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing. | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM='gnome-256color'; | |
elif infocmp xterm-256color >/dev/null 2>&1; then |
# | |
# ~/.bashrc | |
# | |
source ~/.bash_prompt | |
export VISUAL="emacs -nw" | |
export EDITOR="emacs -nw" | |
# If not running interactively, don't do anything |
class Touch_name(FlaskForm): | |
name = SelectField(coerce=str) | |
submit = SubmitField("Register") | |
def __init__(self, defLang='en', *args, **kwargs): | |
super(Touch_name, self).__init__(*args, **kwargs) | |
self.name.label = "Select one of the following options :" | |
self.name.choices = [ | |
("First option", "First option"), | |
("Second option", "Second option"), |