Skip to content

Instantly share code, notes, and snippets.

View ghurlman's full-sized avatar
🎧
Building those Power Apps

Greg Hurlman ghurlman

🎧
Building those Power Apps
View GitHub Profile
@ghurlman
ghurlman / stay-within-the-lines--index.ts
Last active March 24, 2021 22:50
A Power Apps Component Framework example of how to keep your controls from escaping their boundaries when used in an app
import {IInputs, IOutputs} from "./generated/ManifestTypes";
export class NoEscape implements ComponentFramework.StandardControl<IInputs, IOutputs> {
context: ComponentFramework.Context<IInputs>;
container: HTMLDivElement;
noc: () => void;
constructor() { }
public init(context: ComponentFramework.Context<IInputs>, notifyOutputChanged: () => void, state: ComponentFramework.Dictionary, container:HTMLDivElement)
@ghurlman
ghurlman / git-nuke.ps1
Created April 27, 2019 17:10
Nuke that repo from orbit with this simple command!
# Put this in your $PROFILE! Or load it in from there. Whatever.
# Usage:
# gitnuke [path]
#
# If no path defined, uses the current directory
function gitnuke($path)
{
if ($path -eq '')
# Put this in your $PROFILE file.
Push-Location 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\'
cmd /c "VsDevCmd.bat&set" |
ForEach-Object {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
Pop-Location