This file contains hidden or 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.Reactive.Linq; | |
| using System.Reactive.Subjects; | |
| using Microsoft.VisualStudio.TestTools.UnitTesting; | |
| namespace ReactivePipes.Tests | |
| { | |
| /// <summary> | |
| /// Summary description for UnitTest1 | |
| /// </summary> |
This file contains hidden or 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
| ------ Build started: Project: ReactiveUI.Sample, Configuration: Debug x86 ------ | |
| c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFX.targets(269,9): error MC1000: Unknown build error, 'Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.' | |
| ------ Build started: Project: ReactiveUI.Sample.Tests, Configuration: Debug Any CPU ------ | |
| ReactiveUI.Sample.Tests -> C:\Users\Administrator\Desktop\ReactiveUI.Sample\ReactiveUI.Sample.Tests\bin\Debug\ReactiveUI.Sample.Tests.dll | |
| ========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ========== |
This file contains hidden or 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
| ------ Build started: Project: ReactiveUI.Sample.Tests, Configuration: Debug Any CPU ------ | |
| Build started 3/23/2012 11:41:01 PM. | |
| Environment at start of build: | |
| MSBuildExtensionsPath32 = C:\Program Files (x86)\MSBuild | |
| MSBuildExtensionsPath64 = C:\Program Files\MSBuild | |
| MSBuildExtensionsPath = C:\Program Files (x86)\MSBuild | |
| LOCALAPPDATA = C:\Users\Administrator\AppData\Local | |
| ALLUSERSPROFILE = C:\ProgramData | |
| APPDATA = C:\Users\Administrator\AppData\Roaming | |
| AWE_DIR = C:\Program Files (x86)\Khrona LLC\Awesomium SDK\1.6.3\ |
This file contains hidden or 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 interface ILoginViewModel : IRoutableViewModel | |
| { | |
| string User { get; set; } | |
| string Password { get; set; } | |
| ReactiveAsyncCommand Confirm { get; } | |
| } | |
| public class LoginViewModel : ReactiveObject, ILoginViewModel | |
| { | |
| string _User; |
This file contains hidden or 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
| [Fact] | |
| public void LoginScenarioRoutingTest() | |
| { | |
| var mock = new MoqMockingKernel(); | |
| mock.Bind<ILoginViewModel>().To<LoginViewModel>(); | |
| // Fake out the actual login code that makes sure the password is right | |
| mock.Bind<Func<IObservable<Unit>>>() | |
| .ToConstant<Func<IObservable<Unit>>>(() => Observable.Return(Unit.Default)) | |
| .Named("confirmUserPass"); |
This file contains hidden or 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 MainPageViewModel : ReactiveObject | |
| { | |
| ObservableAsPropertyHelper<BitmapImage> _OriginalImage; | |
| public BitmapImage OriginalImage { | |
| get { return _OriginalImage.Value; } | |
| } | |
| public ReactiveCommand TakePhoto { get; protected set; } | |
| public MainPageViewModel() |
This file contains hidden or 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 inputs = new[] { "http://www.google.com", "http://www.yahoo.com", "http://www.aol.com", }; | |
| var results = await inputs.AsAsync() | |
| .WhereAsync(async x => await IsPageInTop10WebSitesByTraffic(x)) | |
| .SelectAsync(async x => await DownloadPageAsync(x)) | |
| .GetResults(); |
This file contains hidden or 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
| git remote add upstream [Clone Url] | |
| git fetch upstream | |
| git checkout master | |
| ## At this point, you have two options: | |
| git merge upstream/master # Merge yours and theirs | |
| git push origin master # Push back to your fork | |
| git reset --hard upstream/master # Make yours look *exactly* like theirs, lose your changes; |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| if ARGV.include? '--help' | |
| puts "simulate-network [speed-option] [lossiness-option]" | |
| puts "" | |
| puts "[speed-option] is one of:" | |
| puts "--edge - Simulate an EDGE (GPRS) wireless network" | |
| puts "--3g - Simulate a 3G wireless network" | |
| puts "--wifi - Simulate an average (but not great) WiFi network" | |
| puts "" |
This file contains hidden or 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.Collections.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Reactive.Linq; | |
| using System.Reactive.Subjects; | |
| using System.Text; | |
| using ReactiveUI; | |
| using RestSharp; |