Skip to content

Instantly share code, notes, and snippets.

Avatar

Bruno Juchli BrunoJuchli

View GitHub Profile
@somewhatabstract
somewhatabstract / AssemblyInfo.cs
Last active Jul 24, 2017
Getting appveyor to do prerelease and release nuget packages based on branch versus tag builds
View AssemblyInfo.cs
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle( "MyAssembly" )]
[assembly: AssemblyDescription( "" )]
[assembly: AssemblyConfiguration( "" )]
@hmemcpy
hmemcpy / undef.md
Last active Nov 16, 2020
Disabling Visual Studio Git Provider
View undef.md

Here's how to disable the package that is responsible for loading the Git source control support in Visual Studio. Use at your own risk!

  • Create a file called devenv.pkgundef and place it next to devenv.exe in you Visual Studio's Common7\IDE (you'll need elevation for this)
  • Add the following entries to the file:
[$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}]
[$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]
  • Close VS if open, open a Developer command prompt, and type devenv /updateconfiguration
@marcosfreitas
marcosfreitas / search.html
Last active May 20, 2019
Autocomplete Search With Semantic UI
View search.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Autocomplete Search With Semantic UI</title>
<link rel="stylesheet" href="semantic/dist/semantic.css">
</head>
<body>
@bradphelan
bradphelan / Exceptional.cs
Last active Nov 30, 2018
Exceptional Monad in C#
View Exceptional.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reactive.Linq;
namespace ReactiveUI.Utils
{
// From http://stackoverflow.com/questions/10772727/exception-or-either-monad-in-c-sharp
View gist:324732
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace DynamicDispatch
{
interface IAnimalVisitor