Skip to content

Instantly share code, notes, and snippets.

View janis-veinbergs's full-sized avatar

Jānis Veinbergs janis-veinbergs

View GitHub Profile
@janis-veinbergs
janis-veinbergs / ControlManifest.xsd
Last active July 13, 2023 07:50
Power Apps PCF ControlManifest schema. Some undocumented elements also included found in the wild. Created from: https://learn.microsoft.com/en-us/power-apps/developer/component-framework/manifest-schema-reference/
View ControlManifest.xsd
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="manifest">
<xs:annotation>
<xs:documentation>
Manifest is the metadata file that defines a component. It is an XML file that describes:
- The namespace of the component.
- The kind of data it can be configured, either a field or a dataset.
- Any properties that can be configured in the application when the component is added.
@janis-veinbergs
janis-veinbergs / Out-Tree.ps1
Last active January 29, 2024 13:37
PowerShell Out-Tree: View object parent/child relationship within a hierarchy
View Out-Tree.ps1
Set-StrictMode -Version 3.0
function Out-Tree {
<#
.SYNOPSIS
View object parent/child relationship within a hierarchy
.DESCRIPTION
Outputs objects as a hierarchy, outputted as string. It is important that properties are sorted.
It is very important to sort list before Out-Tree cmdlet by ParentValueProperty. Because if objects come in NOT within sequence, the hierarchy will be "interrupted" and restart
@janis-veinbergs
janis-veinbergs / Slick.d.ts
Created February 21, 2022 10:33
Generated from SparkleXrm project using Rosetta.ScriptSharp.Definition.BuildTask
View Slick.d.ts
/**
* File: Cell.cs
*/
declare module Slick {
export class CellSelection {
public row : number;
public cell : number;
public grid : Slick.Grid;
}
}
@janis-veinbergs
janis-veinbergs / ssis_script_object_output.cs
Last active December 4, 2019 10:49
Use Script Task to output data within object variable as rows. You still have to define output columns.
View ssis_script_object_output.cs
using Microsoft.SqlServer.Dts.Pipeline;
using Microsoft.SqlServer.Dts.Runtime.Wrapper;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.Reflection;
using System.Text;
//Not using any syntax after .net 4.5 as won't be debuggable until 3.2 Preview https://marketplace.visualstudio.com/items?itemName=SSIS.SqlServerIntegrationServicesProjects