- Map
CAPS LOCK
key toESC
cuz' key is closer and prevent me from yelling. how to do this
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 for onename check. |
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
<TaskOptions> | |
<TaskOptions> | |
<option name="arguments" value="--verbose fix" /> | |
<option name="checkSyntaxErrors" value="true" /> | |
<option name="description" /> | |
<option name="exitCodeBehavior" value="ALWAYS" /> | |
<option name="fileExtension" value="php" /> | |
<option name="immediateSync" value="false" /> | |
<option name="name" value="php-cs-fixer" /> | |
<option name="output" value="" /> |
- Symfony's translation service is enabled and configured doc
- Translastion resources/files are createddoc
First, go to File > Settings > Languages & Frameworks > PHP > Symfony
.
- Check that the Symfony Plugin is enabled for the project.
- Check that the
Translation Root Path
settings is corrected, something likesrc/AppBundle/Resources/translations
.
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
-- when the database/ORM try to insert a record with an existing id/PK | |
ALTER SEQUENCE sequence_name RESTART WITH your_next_free_id; |
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
# today | |
curl wttr.in/~Nantes?0 | |
# this week | |
curl wttr.in/~Nantes |
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
* Be sure to set minimum-stability to dev | |
* Use options symlink true | |
* When requiring a package via path repository, there is no git related features (like requiring the package on a specific branch). The symlink use filesystem. |
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
#!/usr/bin/env bash | |
IFS=',' read -r -a locales <<< "$1" | |
bundle=$2 | |
echo "Check missing translation for locales $locales in $bundle" | |
for locale in $locales ; do | |
if ./bin/console debug:translation $locale $bundle | grep missing | |
then | |
(>&2 echo "Translations are missing for locale $locale") | |
exit 1 | |
else |
Use case: Translations in YAML
- Sign in with email/password (Live edit JS does not support SSO)
- Create project
- Import translations files with the correct language
- Connect Gitlab integration (Add Web category - required for exporting with MR & check include full path nin file name)
- Configure auto pull
- Export project with following settings
- Format: YAML
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 | |
// AliceBundle: https://github.com/hautelook/AliceBundle/blob/master/doc/faker-providers.md | |
// https://github.com/misd-service-development/phone-number-bundle/issues/27 | |
// Usage: <PhoneNumber()> | |
namespace App\DataFixtures\Faker\Provider; | |
use Faker\Factory; | |
use libphonenumber\PhoneNumberUtil; | |
class PhoneNumberProvider |
OlderNewer