This file contains 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
import com.intellij.database.model.DasTable | |
import com.intellij.database.util.Case | |
import com.intellij.database.util.DasUtil | |
/* | |
* Available context bindings: | |
* SELECTION Iterable<DasObject> | |
* PROJECT project | |
* FILES files helper | |
*/ |
This file contains 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
@file:DependsOn("net.sf.biweekly:biweekly:0.6.4") | |
@file:DependsOn("com.squareup.okhttp3:okhttp:3.12.1") | |
import biweekly.component.* | |
import biweekly.util.* | |
import biweekly.ICalendar | |
import biweekly.io.text.ICalReader | |
import java.util.Date | |
import okhttp3.OkHttpClient | |
import okhttp3.Request |
This file contains 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
public sealed class KeyVaultConfigSystem | |
: IInternalConfigSystem | |
{ | |
private const string AppSettingsKey = "appSettings"; | |
private readonly IInternalConfigSystem _internalConfigSystem; | |
private object _appSettings; | |
private KeyVaultConfigSystem(IInternalConfigSystem internalConfigSystem) | |
{ |
This file contains 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
param ($xml, $xsl, $output) | |
if (-not $xml -or -not $xsl -or -not $output) | |
{ | |
Write-Host "& .\Transform-Xslt.ps1 [-xml] xml-input [-xsl] xsl-input [-output] transform-output" | |
exit; | |
} | |
trap [Exception] | |
{ |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> | |
<xsl:key name="ISSUETYPES" match="/Report/Issues/Project/Issue" use="@TypeId"/> | |
<xsl:output method="html" indent="yes"/> | |
<xsl:template match="/" name="TopLevelReport"> | |
<html> | |
<head> | |
<title>Resharper InspectCode Report</title> | |
This file contains 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
public string GetVirtualPath(VirtualPathContext context) | |
{ | |
foreach (var matcherParameter in _matcher.Template.Parameters) | |
{ | |
context.Values.Remove(matcherParameter.Name); // make sure none of the domain-placeholders are appended as query string parameters | |
} | |
return _innerRoute.GetVirtualPath(context); | |
} |
This file contains 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
job("00 - Generate license request") { | |
// This job needs to be run only once. | |
// Set the Space UNITY_USERNAME and UNITY_PASSWORD secrets to generate an activation file. | |
// | |
// After run: | |
// 1. The activation file is echoed to build output, and should be saved as *.alf | |
// 2. Visit https://license.unity3d.com/manual | |
// 3. Upload the file in the form | |
// 4. Answer questions (unity pro vs personal edition, both will work, just pick the one you use) | |
// 5. Download 'Unity_v2019.x.ulf' file |
This file contains 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
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); |
This file contains 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 | |
// 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; | |
} |
This file contains 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
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; |
NewerOlder