Skip to content

Instantly share code, notes, and snippets.

@heardk
heardk / feed-wordpress.xml
Created February 21, 2019 16:34 — forked from gboone/feed-wordpress.xml
A simple jekyll template to generate WordPress eXtended RSS (WRX) feeds suitable for importing into a WordPress site
---
---
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
@heardk
heardk / OneNote-to-MD.md
Last active March 27, 2024 03:02
Convert notes from OneNote into Markdown

Converting One Note to Markdown

This is an example of how to convert notes from OneNote into Markdown to use in other, less annoying Note applications. I am using PowerShell on Windows here, but other shell/scripting environments would work as well. If you want separate .md files, you'll need to export your OneNote pages separately. Exporting a section, or a selection of pages creates a single .docx file.

  • Download and install Pandoc
  • Export each of your note pages to a .docx (Word) format using OneNote export from the File menu
  • Gather all of these .docx files into a directory
  • Open directory in File Explorer
  • Open Powershell from the File Explorer using File -> Open Windows Powersell
  • Run the following command:
@heardk
heardk / Jekyll-TLDR-tag.rb
Last active February 8, 2019 13:11
A custom Jekyll tag that looks for a TLDR blurb at the top of posts
module Jekyll
class TldrTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
@text = text
end
def render(context)
site = context.registers[:site]
converter = site.find_converter_instance(::Jekyll::Converters::Markdown)

Keybase proof

I hereby claim:

  • I am heardk on github.
  • I am kellyheard (https://keybase.io/kellyheard) on keybase.
  • I have a public key ASDtnV0Oy5QYLIy1ubIlvLXntpRvqWHcLespaENXsEmIcgo

To claim this, I am signing this object:

@heardk
heardk / ionic.md
Created May 5, 2017 20:29
Ionic Framework (Angular + Cordova)
@heardk
heardk / posgres-in-c9.md
Created December 18, 2016 15:55 — forked from mikeumus/posgres-in-c9.md
PostgreSQL in Cloud9 IDE
Gist shortlink: https://git.io/vV0xB

Official Living Doc for Postgres in C9: https://community.c9.io/t/setting-up-postgresql/1573

@mikeumus' Postgres in Cloud9 Notes:
@heardk
heardk / react.md
Last active December 11, 2016 22:29
React & Firebase
@heardk
heardk / angular.md
Created December 11, 2016 22:22
AngularJS & Visual Studio
@heardk
heardk / rest.md
Last active December 11, 2016 22:17
Consuming REST services in ASP.Net

Consuming REST Services in ASP.Net

HTTPWebRequest

HttpWebRequest http = (HttpWebRequest)WebRequest.Create("http://example.com");
WebResponse response = http.GetResponse();

MemoryStream stream = response.GetResponseStream();
StreamReader sr = new StreamReader(stream);
string content = sr.ReadToEnd();