Skip to content

Instantly share code, notes, and snippets.

@chuckdee68
chuckdee68 / clickdefaultbutton.cs
Last active August 29, 2015 14:02
Programmatically Click the Default Button in WPF
System.Windows.Input.AccessKeyManager.ProcessKey(null, "\x000D", false);
@chuckdee68
chuckdee68 / FocusExtension.cs
Created June 13, 2014 19:58
FocusExtension - Focusing Controls in View from ViewModel using MVVM principles
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace Supporting
{
@chuckdee68
chuckdee68 / FocusBehavior.cs
Created June 13, 2014 20:09
FocusBehavior - Set the focus when a form first opens
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace Supporting
{
@chuckdee68
chuckdee68 / NotifyingObject.cs
Created June 13, 2014 20:19
NotifyingObject - Making Magic Strings not a necessity for INotifyPropertyChanged
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace Supporting
{
/// <summary>
@chuckdee68
chuckdee68 / 0_reuse_code.js
Created June 14, 2014 02:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@chuckdee68
chuckdee68 / .gitignore
Last active June 2, 2016 11:58
Default Visual Studio .gitignore
# git ignore file
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

Keybase proof

I hereby claim:

  • I am chuckdee68 on github.
  • I am chuckdee (https://keybase.io/chuckdee) on keybase.
  • I have a public key whose fingerprint is 8CC1 9292 2303 BCED 1F43 CCD9 35FA 67E7 8529 6320

To claim this, I am signing this object:

@chuckdee68
chuckdee68 / keybase.md
Created May 11, 2017 23:38
Keybase Proof

Keybase proof

I hereby claim:

  • I am chuckdee68 on github.
  • I am chuckdee (https://keybase.io/chuckdee) on keybase.
  • I have a public key ASDARrFdYHrIK1QP_ra9yWGj2UyQoQPCHfwOwJC5773SeQo

To claim this, I am signing this object:

@chuckdee68
chuckdee68 / docx2md.md
Last active February 25, 2018 19:17 — forked from aembleton/docx2md.md
Convert a Word Document into MD

Converting a Word Document to Markdown in One Move

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

The Solution

As it turns out, there are several open-source tools that allow for conversion between file types. Pandoc is one of them, and it's powerful and open source. In fact, pandoc's website says "If you need to convert files from one markup format into another, pandoc is your swiss-army knife." Pandoc can convert from markdown into .docx, and it also works in the other direction.

@chuckdee68
chuckdee68 / History\-1005c527\entries.json
Last active November 4, 2023 05:29
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///e%3A/Writing/Obsidian/obsidian-zettel.code-workspace","entries":[{"id":"3Cye.code-workspace","timestamp":1672549113581}]}