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
""" | |
Helper module for marshalling Python types with .NET types | |
""" | |
import numpy | |
import ctypes | |
import clr, System | |
clr.AddReference("System.Runtime") | |
clr.AddReference("System.Runtime.Numerics") | |
## Marshalling NumPy <==> .NET |
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
; DEMO innosetup script to let user select macros to install | |
#define MyAppName "Choose custom files for install" | |
#define MyAppVersion "1.0" | |
#define MyAppPublisher "CitizenInsane" | |
#define MyAppURL "https://stackoverflow.com/questions/58840411/innosetup-choose-custom-files-to-install" | |
[Setup] | |
; NOTE: The value of AppId uniquely identifies this application. | |
; Do not use the same AppId value in installers for other applications. |
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="xsl msxsl" | |
> | |
<xsl:import href="common.xslt"/> | |
<xsl:param name="help"/> | |
<xsl:param name="xml"/> | |
<xsl:param name="datacontract"/> | |
<xsl:param name="binary"/> |
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
namespace TestForNaNWithGenerics | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
[TestFixture] | |
class TestForNaN |
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
%% Main function | |
function [] = EmphaseSelectedRegion() | |
%[ | |
% Create data | |
[X, Y, Z, Data] = createTestData(); | |
% Select max - xxdB region | |
maxData = max(max(Data)); | |
W = ones(size(Data)); | |
W(Data < (maxData/1.2)) = 0; |
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"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- | |
Trying to figure out why incremental build is not working for larger | |
msbuild project but with similar structure as this one. | |
Here with targets defined as imported targets + separating as scrs/includes | |
and repeating scrs in includes + splitting the test target in BeforeTest, |
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
namespace Wmi | |
{ | |
using System; | |
class Program | |
{ | |
static void Main() | |
{ | |
try | |
{ |