One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| [HttpPost] | |
| public HttpResponseMessage CreateCustomer(string name, string billingInfo) | |
| { | |
| Result<BillingInfo> billingInfoResult = BillingInfo.Create(billingInfo); | |
| Result<CustomerName> customerNameResult = CustomerName.Create(name); | |
| return Result.Combine(billingInfoResult, customerNameResult) | |
| .OnSuccess(() => _paymentGateway.ChargeCommission(billingInfoResult.Value)) | |
| .OnSuccess(() => new Customer(customerNameResult.Value)) | |
| .OnSuccess( |
| #user nobody; | |
| #Defines which Linux system user will own and run the Nginx server | |
| worker_processes 1; | |
| #Referes to single threaded process. Generally set to be equal to the number of CPUs or cores. | |
| #error_log logs/error.log; #error_log logs/error.log notice; | |
| #Specifies the file where server logs. |
| /** | |
| * Actively wait for an element present and displayed up to specTimeoutMs | |
| * ignoring useless webdriver errors like StaleElementError. | |
| * | |
| * Usage: | |
| * Add `require('./waitReady.js');` in your onPrepare block or file. | |
| * | |
| * @example | |
| * expect($('.some-html-class').waitReady()).toBeTruthy(); | |
| */ |
| #!/usr/bin/ruby | |
| # Convert a Markdown README to HTML with Github Flavored Markdown | |
| # Github and Pygments styles are included in the output | |
| # | |
| # Requirements: json gem (`gem install json`) | |
| # | |
| # Input: STDIN or filename | |
| # Output: STDOUT | |
| # Arguments: "-c" to copy to clipboard (or "| pbcopy"), or "> filename.html" to output to a file | |
| # cat README.md | flavor > README.html |
| # The following command works for downloading when using Git for Windows: | |
| # curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
| # | |
| # Download this file using PowerShell v3 under Windows with the following comand: | |
| # Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore | |
| # | |
| # or wget: | |
| # wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
| # User-specific files |
| # Path to your oh-my-zsh configuration. | |
| export ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| #export ZSH_THEME="robbyrussell" | |
| export ZSH_THEME="zanshin" |