// jQuery
$(document).ready(function() {
// code
})
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
| <?php | |
| // https://stackoverflow.com/questions/53048413/display-a-custom-text-if-user-has-already-bought-the-current-product-in-woocomme | |
| // Utility function to check if a customer has bought a product (Order with "completed" status only) | |
| function customer_has_bought_product( $product_id, $user_id = 0 ) { | |
| global $wpdb; | |
| $customer_id = $user_id == 0 || $user_id == '' ? get_current_user_id() : $user_id; | |
| $status = 'wc-completed'; |
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
| <?php | |
| require 'google-api/apiClient.php'; | |
| require 'google-api/contrib/apiOauth2Service.php'; | |
| require 'google-api/contrib/apiDriveService.php'; | |
| $pdfFile = 'test.pdf'; | |
| // API Console: https://code.google.com/apis/console/ | |
| // Create an API project ("web applications") and put the client id and client secret in config.ini. |
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
| # Put this in your ~/.gitconfig or ~/.config/git/config | |
| # Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName> | |
| [user] | |
| name = Your Full Name | |
| email = [email protected] | |
| [color] | |
| # Enable colors in color-supporting terminals | |
| ui = auto | |
| [alias] | |
| # List available aliases |
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
| Cible : Développeur PHP / Symfony / MySQL | |
| Niveau : Senior | |
| Ce document propose des questions classiques, sans piège, à poser lorsque vous désirez valider un candidat pour un poste de développeur back. | |
| J'utilise personnellement cette trame de questions, libre à vous de vous en inspirer, d'ajouter vos propres questions, et de déterminer lesquelles sont éliminatoires à vos yeux. | |
| Veille technologique | |
| Quelle est la version actuelle de PHP ? | |
| > http://php.net/supported-versions.php |
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
| /* -------------------------------------------------------------------------- */ | |
| // All Bootstrap 4 Sass Mixins [Cheat sheet] | |
| // Updated to Bootstrap v4.5.x | |
| // @author https://anschaef.de | |
| // @see https://github.com/twbs/bootstrap/tree/master/scss/mixins | |
| /* -------------------------------------------------------------------------- */ | |
| // Grid variables | |
| $grid-columns: 12; | |
| $grid-gutter-width: 30px; |
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
| /** | |
| Due to best practices, we need to create a new service which is used by the ImageListener. | |
| Its role is to upload files and generate an unique filename. | |
| NOTA: | |
| The default $uploadPath is autowired by argument binding inside services.yaml | |
| but in this case, we override it with the $path argument of the upload method. | |
| */ | |
| <?php |
NewerOlder