Skip to content

Instantly share code, notes, and snippets.

@LGM-AdrianHum
LGM-AdrianHum / ConvertWithoutExtension.bat
Last active May 28, 2019 00:24
Recursively Loop Across A Directory, execute a command with just the filename without the extension...
@echo off
for /R %%f in (*.ext) do (
echo "%%~nf"
)
pause
The following options are available:
Variable with modifier Description
@LGM-AdrianHum
LGM-AdrianHum / GridHelpers.cs
Last active September 20, 2021 14:49
GridHelpers - Dynamically or Statically Define the rows and columns of a table.
// <Grid local:GridHelpers.RowCount="{Binding RowCount}" local:GridHelpers.ColumnCount="{Binding ColumnCount}" />
// Original Article: https://rachel53461.wordpress.com/2011/09/17/wpf-grids-rowcolumn-count-properties/
public class GridHelpers
{
#region RowCount Property
/// <summary>
/// Adds the specified number of Rows to RowDefinitions.
/// Default Height is Auto
/// </summary>
@SamSaffron
SamSaffron / gist:101357
Created April 24, 2009 21:51
Control Vlc
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using Microsoft.Win32;
using System.Runtime.InteropServices;
using System.Management;
using System.Net.Sockets;
using System.IO;