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
@attilah
attilah / X.Y.Z.Sources.csproj
Last active April 8, 2025 20:22
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>
@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;
@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>
using System;
using System.Globalization;
using System.Text;
namespace HibernatingRhinos.Encoding
{
public class EmojiEncoder
{
public static byte[] Decode(string text)
{
@skarllot
skarllot / net35-cf.md
Last active February 26, 2025 20:28
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:
@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)" />
<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" />