Skip to content

Instantly share code, notes, and snippets.

View brinko99's full-sized avatar

Terrence Jones brinko99

  • Paso Robles, CA
  • 11:51 (UTC -08:00)
View GitHub Profile
@brinko99
brinko99 / MintImporter.cs
Last active July 26, 2020 02:50
C# Mint Import of CSV data
// Submits CSV based transations to Mint as cash transaction.
// Used Chrome browser Developer Tools to get your custom cookies, token, etc. as cURL.
// For converting cURL to C# see: https://curl.olsh.me/
// I used LinqPad to run the code.
//
// Inspired by: Mint batch transaction import hack | Blog | Vote Charlie
// https://votecharlie.com/blog/2017/06/mint-batch-transaction-import-hack.html
var handler = new HttpClientHandler();
@brinko99
brinko99 / gist:2bb84da5351403ab076d262d9d8487a4
Created June 24, 2020 20:22
MSBuild Target that checks if build occurred
<!--Inpired by: https://stackoverflow.com/a/13849011/84522 -->
<Target Name="GetLastModifiedTime" BeforeTargets="BeforeBuild">
<PropertyGroup>
<LastModifiedTime>%(IntermediateAssembly.ModifiedTime)</LastModifiedTime>
</PropertyGroup>
</Target>
<Target Name="CheckWasBuilt" AfterTargets="AfterBuild">
<PropertyGroup>
<!--WasBuilt is true only if a build/rebuild occurred. Can be used as a condition on other Targets that only need
@brinko99
brinko99 / Collapsible.cs
Last active September 14, 2022 06:12
WPF CollapsibleRowDefinition, CollapsibleColumnDefinition
using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
namespace Controls
{
/// <summary>
/// <see cref="RowDefinition"/> implementation that supports a collapsed state.
/// </summary>
@brinko99
brinko99 / BindingWithDesignSupport.cs
Created February 8, 2018 22:09
.NET WPF Binding markup extension supporting designer specific value
using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Data;
using System.Windows.Markup;
using static System.Convert;
namespace MarkupExtensions
{
/// <summary>
Verifying my Blockstack ID is secured with the address 1DZtEvz7oSDHHEj1RoxHdwE81ePL3Q1Vty https://explorer.blockstack.org/address/1DZtEvz7oSDHHEj1RoxHdwE81ePL3Q1Vty
Verifying that +terrencejones is my Bitcoin username. You can send me #bitcoin here: https://onename.io/terrencejones