Proposed/ran by Andreas Schmidt, Nokia
Based off his design around the Nokia Places API
- Picked JSON, no support for XML
- Added ?accept=application/json to the URL in the browser for a raw response
[Test] | |
public void Extensible_the_command_line_should_be_yes() | |
{ | |
bool isSuperfly = false; | |
Host host = HostFactory.New(x => | |
{ | |
x.Service<MyService>(); | |
x.AddCommandLineSwitch("superfly", v => isSuperfly = v); |
using System.Collections.Generic; | |
namespace System.Linq | |
{ | |
public static class LeftJoinExtension | |
{ | |
public static IEnumerable<TResult> LeftJoin<TLeft, TRight, TKey, TResult>( | |
this IEnumerable<TLeft> left, | |
IEnumerable<TRight> right, | |
Func<TLeft, TKey> leftKeySelector, |
using System; | |
using System.Linq.Expressions; | |
using Automatonymous; | |
using NHibernate.Mapping.ByCode; | |
public static class AutomatonymousNHibernateExtensions | |
{ | |
public static void StateProperty<T, TMachine>(this IClassMapper<T> mapper, Expression<Func<T, State>> stateExpression) | |
where T : class | |
where TMachine : StateMachine, new() |
# Configs | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config secondsBetweenRepeat 0.1 | |
config checkDefaultsOnLoad true | |
config focusCheckWidthMax 3000 | |
config windowHintsShowIcons true | |
config windowHintsBackgroundColor 96;96;64;0.5 | |
config windowHintsIgnoreHiddenWindows true |
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Swap Fn-Keys and Functional Keys in Virtual Machine</name> | |
<appendix>For MacBook Pro</appendix> | |
<identifier>private.phatboyg_swap_fkeys_vm</identifier> | |
<not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not> | |
<autogen>--KeyToConsumer-- KeyCode::F1, ConsumerKeyCode::BRIGHTNESS_DOWN</autogen> | |
<autogen>--KeyToConsumer-- KeyCode::F2, ConsumerKeyCode::BRIGHTNESS_UP</autogen> | |
<autogen>--KeyToKey-- KeyCode::F3, KeyCode::MISSION_CONTROL</autogen> |
IServiceBus bus = ServiceBusFactory.New(c => | |
{ | |
c.ReceiveFrom("rabbitmq://logicalHost/my_queue"); | |
c.UseRabbitMq(r => | |
{ | |
r.ConfigureHost("rabbitmq://logicalhost/", h => | |
{ | |
h.SetUsername("testUser"); | |
h.SetPassword("test"); |
public class FreeConsumer | |
{ | |
public event EventHandler<MyPublishedEvent> MyPublish; | |
public void CommandHandler(MyCommand command) | |
{ | |
// process the command | |
// the event handler will be bound by MT to publish the event handler message type | |
MyPublish(this, new MyPublishedEvent(...)); |
Proposed/ran by Andreas Schmidt, Nokia
Based off his design around the Nokia Places API
namespace ConsoleApplication1 | |
{ | |
using System; | |
using System.Collections.Generic; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
[alias] | |
## Compound command alias | |
# View all alias | |
alias = !"git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\t=> \\2/' | sort" | |
# Pull in remote changes for the current repository and all its submodules | |
p = !"git pull; git submodule foreach git pull origin master" | |
# Stage all missing files for delete | |
r = !"git ls-files -z --deleted | xargs -0 git rm" | |
# Show all files modified using `git assume` alias | |
assumed = !"git ls-files -v | grep ^h | cut -c 3-" |