Skip to content

Instantly share code, notes, and snippets.

View mrf345's full-sized avatar

Mohamed Feddad mrf345

  • UAE
View GitHub Profile
// 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"
},
{
"workbench.sideBar.location": "right",
"macros": {
"toggleBars": [
"workbench.action.toggleActivityBarVisibility",
"workbench.action.toggleSidebarVisibility",
],
"focusExplorer": [
"macros.toggleBars",
"workbench.files.action.focusFilesExplorer"
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\] ';
}
{
"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,
@mrf345
mrf345 / translation_example.json
Created February 10, 2020 13:46
Example of adding Bulgarian to FQM translations
" 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": "Опс, възникна критична грешка, ще бъдем"
}
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])