Skip to content

Instantly share code, notes, and snippets.

acardy

Block or report user

Report or block acardy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@acardy
acardy / CheatSheet.cs
Last active Jun 24, 2019
Basic C# Terminology Cheat Sheet.cs
View CheatSheet.cs
// These are namespaces. We need to add these to find the classes we want
// to use in our code below.
using System;
using CSharp.Framework.ViewModels;
// This is the namespace that we are creating the following code in. Users of this code
// must add this namespace to their code to use it.
namespace MyNamespace.CheatSheet
{
// This is the class declaration. Interfaces and base classes are declared after a colon
@acardy
acardy / AssemblyDiscovery.cs
Created Jun 12, 2019
MEF and .NET Standard
View AssemblyDiscovery.cs
var path = Path.Combine(AppContext.BaseDirectory, "Plugins");
var assemblies = Directory.GetFiles(path, "*.dll").Select(Assembly.LoadFile);
View add_annotation.cpp
IPopupAnnotationPtr popup = IPopupAnnotation::create(jawsMako, FRect(location.x, location.y, 200, 200));
popup->setContents(description);
page->addAnnotation(popup);
ITextAnnotationPtr textAnnotation = ITextAnnotation::create(jawsMako, location, description.c_str());
textAnnotation->setPopup(popup);
page->addAnnotation(textAnnotation);
@acardy
acardy / Structure Tagging.md
Last active Apr 30, 2018
Structure Tagging
View Structure Tagging.md

Structure tagging

This accompanies the blog post.

You can’t perform that action at this time.