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
Observable.FromEventPattern<MouseButtonEventHandler, MouseButtonEventArgs> | |
(h => JobsGrid.MouseDoubleClick += h, h => JobsGrid.MouseDoubleClick -= h) | |
.InvokeCommand(this, v => v.ViewModel.GoToJob); |
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
Note that this will ONLY work currently (10 March 2014) with the `dev` branch of Event Store as that has commits which fix the .csproj files to use dylibs instead of shared objects. Instructions are incomplete and untested, but there will be a working, tested script forthcoming soon! | |
1. Build a 64 bit mono from source (I'm on 3.8, the GC is broken in everything since 3.0.12 though (and that needs patching) but I guess if you're on OS X you're not talking production here). Assuming this is going in /opt/mono | |
2. Clone and build V8. Should be a simple case of: | |
- `make dependencies` | |
- `make x64.release library=shared` | |
- Copy the dylibs to `src/EventStore/libs/` |
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
~/Code locate mscorlib.dll | |
/Users/James/Code/mono-3.2.8/mcs/class/lib/basic/mscorlib.dll | |
/Users/James/Code/mono-3.2.8/mcs/class/lib/basic/tmp/mscorlib.dll | |
/Users/James/Code/mono-3.2.8/mcs/class/lib/build/mscorlib.dll | |
/Users/James/Code/mono-3.2.8/mcs/class/lib/build/tmp/mscorlib.dll | |
/Users/James/Code/mono-3.2.8/mcs/class/lib/monolite/mscorlib.dll | |
/Users/James/Code/mono-3.2.8/mcs/class/lib/net_2_0/mscorlib.dll | |
/Users/James/Code/mono-3.2.8/mcs/class/lib/net_2_0/mscorlib.dll.mdb | |
/Users/James/Code/mono-3.2.8/mcs/class/lib/net_2_0/tmp/mscorlib.dll | |
/Users/James/Code/mono-3.2.8/mcs/class/lib/net_4_0/mscorlib.dll |
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
var connSettings = ConnectionSettings.Create() | |
.DisableVerboseLogging() | |
.PerformOnMasterOnly() | |
.LimitConcurrentOperationsTo(500) | |
.LimitOperationsQueueTo(5000) | |
.KeepReconnecting() | |
.WithConnectionTimeoutOf(TimeSpan.FromMilliseconds(500)) | |
.SetReconnectionDelayTo(TimeSpan.Zero); | |
var clusterSettings = ClusterSettings.Create() |
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
export BOXEN_SRC_DIR=~/Code | |
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future script/boxen |
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
class people::jen20 { | |
boxen::osx_defaults { | |
"NormalFunctionKeys": | |
ensure => present, | |
domain => 'NSGlobalDomain', | |
key => "com.apple.keyboard.fnState", | |
type => 'boolean', | |
value => 'true'; | |
"NoPressAndHold": | |
ensure => present, |
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
set -g default-terminal "xterm-256color" | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix |
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
$ ./uuids | |
Completed test with libuuid: | |
Iterations: 10,000,000 | |
Duration: 786.47ms (786,467,499ns) | |
Completed test with libuuid: | |
Iterations: 10,000,000 | |
Duration: 723.36ms (723,363,115ns) | |
Completed test with libuuid: | |
Iterations: 10,000,000 | |
Duration: 742.35ms (742,345,965ns) |
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
$shell = new-object -com "Shell.Application" | |
$dir = $shell.Namespace("C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE") | |
$item = $dir.ParseName("devenv.exe") | |
$item.InvokeVerb('taskbarpin') |
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
As of commit 3b32dfd9e03940ac1b6e6a79a5f27fef79a54182 | |
Warnings: | |
/Users/James/Code/EventStore/src/EventStore/EventStore.sln (default targets) -> | |
(Build target) -> | |
/Users/James/Code/EventStore/src/EventStore/EventStore.Projections.Core.Tests/EventStore.Projections.Core.Tests.csproj (default targets) -> | |
/opt/mono-e1d0655a/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) -> | |
Services/checkpoint_tag/checkpoint_tag_by_stream_positions.cs(51,66): warning CS0219: The variable `r' is assigned but its value is never used |
OlderNewer