Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace AhoCorasickTree | |
| { | |
| public class AhoCorasickTree | |
| { | |
| internal AhoCorasickTreeNode Root { get; set; } | |
| public AhoCorasickTree(IEnumerable<string> keywords) |
| public static class SerializationSettings | |
| { | |
| public static JsonSerializerSettings Json { get; } = new JsonSerializerSettings() | |
| { | |
| ContractResolver = new CamelCasePropertyNamesContractResolver(), | |
| Formatting = Newtonsoft.Json.Formatting.Indented | |
| }; | |
| } |
| <h3>Converting current time</h3> | |
| <div> | |
| UTC: <span class="align" id="utc"></span> | |
| </div> | |
| <div> | |
| London: <span class="align" id="london"></span> | |
| </div> | |
| <div> |
| let fizzbuzz n = | |
| match n % 3 = 0, n % 5 = 0 with | |
| | true, false -> "Fizz" | |
| | false, true -> "Buzz" | |
| | true, true -> "FizzBuzz" | |
| | false, false -> sprintf "%d" n | |
| let fizzbuzzSequence x y = | |
| [x..y] |> Seq.map fizzbuzz |
| // https://eslint.org/docs/user-guide/configuring | |
| module.exports = { | |
| root: true, | |
| parserOptions: { | |
| parser: 'babel-eslint' | |
| }, | |
| env: { | |
| browser: true, | |
| }, |
| https://medium.com/@lachlanmiller_52885/mocking-vuex-in-vue-unit-tests-b6eda1c4d301 |
| [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( |
| internal class Program | |
| { | |
| private readonly static ManualResetEvent _manualResetEvent = new ManualResetEvent(false); | |
| internal static void Main(string[] args) | |
| { | |
| Console.WriteLine("Hello World!"); | |
| Console.CancelKeyPress += HandleExit; | |
| // Application logic here. |
This is a dead-simple way to test that GPIO on the Raspberry Pi is working. I have an SKPang Raspberry Pi starter kit A. But all you need is