I hereby claim:
- I am maartenba on github.
- I am maartenba (https://keybase.io/maartenba) on keybase.
- I have a public key ASAN0rTRGCC1fneJiGtoNylp9QheKdUJNd6-psu_Mw7X_go
To claim this, I am signing this object:
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
List<Person> source = new List<Person>(); | |
source.Add(new Person { Id = 1, Name = "Maarten" }); | |
source.Add(new Person { Id = 2, Name = "Xavier" }); | |
var cache = new List<Person>(); |
public static class CloudBlobExtensions | |
{ | |
/// <summary> | |
/// Uploads a string of text to a block blob. | |
/// </summary> | |
/// <param name="content">The text to upload, encoded as a UTF-8 string.</param> | |
public static void UploadText(this ICloudBlob blob, string content) | |
{ | |
UploadText(blob, content, Encoding.UTF8, null); | |
} |
#!/bin/bash | |
# ---------------------- | |
# KUDU Deployment Script | |
# ---------------------- | |
# Helpers | |
# ------- | |
exitWithMessageOnError () { |
<?php | |
class BankAccount { | |
/** @var int */ | |
protected $_balance; | |
function __construct() | |
{ | |
$this->_balance = 0; | |
} |
<?xml version="1.0" encoding="UTF-8"?> | |
<framework xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.3.xsd" name="azure" invoke="C:\Program Files (x86)\Microsoft SDKs\Windows Azure\CLI\0.6.9\wbin\azure.cmd" alias="azure" enabled="true" version="2"> | |
<help><![CDATA[Windows Azure: Microsoft's Cloud Platform]]></help> | |
<command> | |
<name>help</name> | |
<params>command</params> | |
<help>Display help for a givencommand</help> | |
</command> | |
<command> | |
<name>portal</name> |
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
This file is used by the publish/package process of your Web project. You can customize the behavior of this process | |
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121. | |
--> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<WebPublishMethod>MSDeploy</WebPublishMethod> | |
<PublishProvider>AzureWebSite</PublishProvider> | |
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> |
public class BatchCatalogProcessor | |
: ICatalogProcessor | |
{ | |
private const string CatalogResourceType = "Catalog/3.0.0"; | |
private const int BatchSize = 12; // TODO: make this configurable | |
private readonly ICatalogLeafProcessor _leafProcessor; | |
private readonly ICatalogClient _client; | |
private readonly ICursor _cursor; | |
private readonly ILogger<BatchCatalogProcessor> _logger; | |
private readonly CatalogProcessorSettings _settings; |
<?php | |
// Clean argument values | |
$phpStormRunner = null; | |
$cleanedArgv = array(); | |
foreach ($_SERVER['argv'] as $key => $value) { | |
if (strpos($value, 'ide-phpunit.php') === false) { | |
$cleanedArgv[] = $value; | |
} else { | |
$phpStormRunner = $value; | |
} |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var regex = new Regex(@"(\w+) (\d+)"); | |
var input = "John 9731879"; | |
var (_, name, phone) = regex.Match(input); | |
Console.WriteLine(name); |