This file contains 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
# used Python 3.8 | |
import _thread | |
from time import sleep | |
items = [2, 4, 5, 2.5, 1, 7] | |
def sleep_sort(i): | |
sleep(i) | |
print(i) |
This file contains 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
// Add these settings to your VS Code's existing settings.json file (2020) | |
"php.suggest.basic": false, | |
"[php]": { | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "junstyle.php-cs-fixer", | |
}, | |
"php-cs-fixer.executablePath": "C:\\Users\\your_user_name_here\\AppData\\Roaming\\Composer\\vendor\\bin\\php-cs-fixer.bat", | |
"php-cs-fixer.executablePathWindows": "C:\\Users\\your_user_name_here\\AppData\\Roaming\\Composer\\vendor\\bin\\php-cs-fixer.bat", | |
"php-cs-fixer.onsave": true, | |
"php-cs-fixer.rules": "@PSR2", |
This file contains 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
<?php | |
return PhpCsFixer\Config::create() | |
->setRules(array( | |
'@PSR2' => true, | |
'indentation_type' => true, | |
// for indentation to work: 1 of 2. Works! | |
'array_indentation' => true, |