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
| mymodule.services.yml | |
| Define a tax resolver plugin with a priority higher than the default tax resolver. | |
| ``` | |
| services: | |
| mymodule.tax_resolver: | |
| class: Drupal\mymodule\Resolver\TaxResolver | |
| tags: | |
| - { name: commerce_tax.tax_rate_resolver, priority: 100 } |
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 | |
| function ok($value) { | |
| return new Result('ok', $val); | |
| } | |
| function err($value) { | |
| return new Result('err', $val); | |
| } |
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
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: php7-fpm | |
| # Required-Start: $remote_fs $network | |
| # Required-Stop: $remote_fs $network | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts php7-fpm | |
| # Description: Starts The PHP FastCGI Process Manager Daemon | |
| ### END INIT INFO |
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
| extern crate rustc_serialize; | |
| /// Converts its argument from hex to base64. | |
| /// | |
| /// # Examples | |
| /// `$ challenge1 "af"` | |
| fn main() { | |
| let args: Vec<String> = std::env::args().collect(); | |
| let input: &String = match args.get(1) { | |
| Some(x) => x, |