Skip to content

Instantly share code, notes, and snippets.

View MyelinsheathXD's full-sized avatar
🎯
Focusing

Sunnatulla Esanov MyelinsheathXD

🎯
Focusing
View GitHub Profile
@sebclaeys
sebclaeys / example.cpp
Created September 19, 2011 21:19
Light weight C++ XML writer
#include "xml_writer.hpp"
#include <iostream>
int main()
{
Writer writer(std::cout);
writer.openElt("Movies");
writer.openElt("Goldeneye").attr("date", "1998").content("This is a James Bond movie").endElt();
writer.openElt("Leon").attr("director", "Luc Besson");
writer.openElt("Actor").attr("role", "Leon").attr("name", "Jean Reno").endAll();
@dawsontoth
dawsontoth / LowLevelMouseHooks.cs
Created February 11, 2011 20:42
Adds some low level mouse hooks to a WPF app, turning any left click into a double click.
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Dawson.Accessibility
{
/// <summary>
/// Interaction logic for MouseHooker.xaml
/// Derived from http://blogs.msdn.com/b/toub/archive/2006/05/03/589468.aspx
/// </summary>