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) |
<h3>Converting current time</h3> | |
<div> | |
UTC: <span class="align" id="utc"></span> | |
</div> | |
<div> | |
London: <span class="align" id="london"></span> | |
</div> | |
<div> |
public static class SerializationSettings | |
{ | |
public static JsonSerializerSettings Json { get; } = new JsonSerializerSettings() | |
{ | |
ContractResolver = new CamelCasePropertyNamesContractResolver(), | |
Formatting = Newtonsoft.Json.Formatting.Indented | |
}; | |
} |
// 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
/** | |
* Returns a string representing the truthy/falsy value of the given value. Defaults to "Yes" or "No". | |
* @param {*} value The value to determine the truthy/falsy value of. | |
* @param {String} truthyString The string to use if the value is truthy. | |
* @param {String} falsyString The string to use if the value is falsy. | |
* @example {{ userSelected | boolean }} | |
* @example {{ userSelected | boolean('Included', 'Not Included') }} | |
*/ | |
const booleanFilter = (value, truthyString, falsyString) => | |
value |