$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UPnP.cs: UPnP Device Discovery Test. | |
// | |
// Authors: | |
// Eric Butler <eric@extremeboredom.net> | |
// | |
// (C) 2006 FileFind.net (http://filefind.net) | |
// | |
using System; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows; | |
namespace WpfLoadedClassHandler | |
{ | |
/// <summary> | |
/// Shows how to globally handle Loaded event. | |
/// Workarounds bug: https://connect.microsoft.com/VisualStudio/feedback/details/511753/window-loadedevent-doesnt-work-properly-when-used-to-register-a-class-event-handler | |
/// Discussed: http://stackoverflow.com/questions/11455800/routed-event-class-handler-for-loadedevent-does-not-work-for-most-classes | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Say you are in a world where you want to use progressive enhancement (sometimes for accessibility) | |
with ASP.NET MVC 3+. | |
Progressive Enhancement means the site WORKS WITHOUT JAVASCRIPT FOLKS. | |
Now say you have something like comments that will be on multiple pages. | |
You want the site to be maintainable so you want to use a partial with | |
form submission. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.js"></script> | |
<script> | |
var AggregateRootEntity = | |
function AggregateRootEntityConstructor(options, my) { | |
var that = {}, | |
handlers = options.handlers || {}, | |
changes = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
namespace FiveMinuteProject | |
{ | |
public class ProjectionBuilder<TState> | |
{ | |
private readonly ProjectionHandler<TState>[] _handlers; | |
public ProjectionBuilder() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AreaFallowed | |
{ | |
public AreaFallowed(string gardenID, NodaTime.LocalDate date, int x, int y, int width, int length) | |
{ | |
GardenId = gardenID; | |
Date = date; | |
X = x; | |
Y = y; | |
Width = width; | |
Length = length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class MassTransitDispatcher : IObserver<ICommit> | |
{ | |
private readonly IServiceBus _bus; | |
public MassTransitDispatcher(IServiceBus bus) | |
{ | |
_bus = bus; | |
} | |
public void Dispose() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static App() | |
{ | |
var lang = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag); | |
FrameworkElement.LanguageProperty.OverrideMetadata( | |
typeof(FrameworkElement), new FrameworkPropertyMetadata(lang) | |
); | |
var ceTypes = new Type[] { | |
typeof(System.Windows.Controls.DefinitionBase), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cp $HOME/.local/share/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com/schemas/org.gnome.shell.extensions.user-theme.gschema.xml /usr/share/glib-2.0/schemas && sudo glib-compile-schemas /usr/share/glib-2.0/schemas | |
# One liner fix that shouldn't be necessary |
OlderNewer