Skip to content

Instantly share code, notes, and snippets.

View Nirmal4G's full-sized avatar
🆖
Something BIG is brewing!

Nirmal Guru Nirmal4G

🆖
Something BIG is brewing!
View GitHub Profile
<duixml>
<UIGroupItem resid="item.general.grouped" layout="borderlayout()" capabilities="selectable|focusable" padding="rect(0,0,0,3rp)">
<UIGroupHeader id="atom(UIGroupHeader)" layoutpos="top" customlayout="viewareaawarelayout(borderlayout)">
<element layoutpos="left" layout="borderlayout()">
<UIExpandoButton layoutpos="left" id="atom(UIGroupButton)" contentalign="middleleft" active="mouse|nosyncfocus" />
<UIProperty layoutpos="client" id="atom(GroupName)" propertycanonicalname="System.ItemNameDisplay" EnableHitHighlighting="false" contentalign="middleleft|endellipsis" />
<UICount layoutpos="right" contentalign="middleleft" />
</element>
<UIBase layoutpos="client" customlayout="centeringlayout()" padding="rect(5rp,2rp,5rp,0rp)">
<element id="atom(UIGroupSeparator)" layoutpos="2" />
@evanpurkhiser
evanpurkhiser / UIFILE.diff
Created November 29, 2012 18:57
Fixes windows 7 Explorer Content Margins
diff --git a/UIFILE 40960.xml b/UIFILE 40960.xml
index 475878a..3120476 100644
--- a/UIFILE 40960.xml
+++ b/UIFILE 40960.xml
@@ -45,7 +45,7 @@
<UIProperty id="atom(FileName)" propertycanonicalname="System.ItemNameDisplay" padding="rect(0,2rp,0,2rp)" layoutpos="left" tooltip="false" />
</UIItem>
<UICollection resid="collection.smallicons" layout="borderlayout()" UIItemCreationPropMap="item.smallicons">
- <ItemGridLayout id="atom(UIItemsHost)" layoutpos="top" padding="rect(14rp,0,0,0)" columnwidth="230rp" itemspacing="size(1rp,1rp)" />
+ <ItemGridLayout id="atom(UIItemsHost)" layoutpos="top" padding="rect(0,0,0,0)" columnwidth="230rp" itemspacing="size(1rp,1rp)" />
@skarllot
skarllot / net35-cf.md
Last active July 3, 2024 08:47
Build .NET Compact Framework 3.5

Install

Force MSBuild support

  • Copy files and directories from 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5';
  • Copy files from 'C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\CompactFramework' directory;
  • Create 'RedistList' directory inside created 'CompactFramework' directory;
  • Create 'FrameworkList.xml' inside 'RedistList' directory and type the following:
using System;
using System.Globalization;
using System.Text;
namespace HibernatingRhinos.Encoding
{
public class EmojiEncoder
{
public static byte[] Decode(string text)
{
@Nirmal4G
Nirmal4G / MSBuild.OutputPaths.Check.targets
Last active September 29, 2023 10:04
MSBuild Output Configurations
<Project>
<Target
Name="_FixupOutputPathsCheck"
BeforeTargets="_CheckForInvalidConfigurationAndPlatform">
<PropertyGroup>
<CheckForBuildPathMismatch>true</CheckForBuildPathMismatch>
<EnableBaseIntermediateOutputPathMismatchWarning>false</EnableBaseIntermediateOutputPathMismatchWarning>
</PropertyGroup>
</Target>
@kennykerr
kennykerr / gclip.cpp
Last active April 26, 2018 09:53
Generates a GUID and copies it to the clipboard.
// cl /EHsc /std:c++17 /O2 gclip.cpp
// Requires VS 2017 15.6+ and the RS4 Windows SDK.
#pragma comment(lib, "windowsapp")
#pragma comment(lib, "ole32")
#include <winrt/Windows.ApplicationModel.DataTransfer.h>
#include <windows.h>
using namespace winrt;
@attilah
attilah / X.Y.Z.Sources.csproj
Last active April 18, 2024 08:52
X.Y.Z.Sources nuget package
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<IsPackable>true</IsPackable>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>contentFiles</ContentTargetFolders>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>
@jeffkl
jeffkl / Improvements to MSBuild 15.md
Last active November 17, 2022 23:45
Improvements to MSBuild 15

Improvements to MSBuild 15

In MSBuild 15, we've been hard at work adding features that make it easier to manage your build. The development world has evolved greatly in the last 10 years with NuGet packages, more platforms, and the internet in general. We wanted to modernize some of MSBuild to propel it forward to a new era.

Open Source

MSBuild 15 is open source for the first time. This has allowed us to work in the open in a tighter loop with our customers. It also has allowed community contribution so that features of MSBuild can be provided that the core MSBuild development team does not have time to implement.

@dotMorten
dotMorten / MSBuildCheatSheet.xml
Created January 14, 2019 23:19
MSBuild Cheat Sheet
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
How to define a variable.
Just stick a new node in a property group.
-->
<PropertyGroup>
<!-- This node in a property group will define a variable -->
<TestVariable>Test Variable Value</TestVariable>