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
<script type="text/javascript"> | |
var viewModel = { | |
currentView: ko.observable("template-1") | |
}; | |
viewModel.template = ko.dependentObservable(function(){ | |
return this.currentView(); | |
}, viewModel); | |
$(document).ready(function() { |
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
Autofac.Core.DependencyResolutionException: | |
An exception was thrown while invoking the constructor 'Void .ctor(Halfwit2.Helpers.AggregateService, System.Func`3[Halfwit2.ViewModels.TimelineViewModel,Halfwit2.IHalfwitUser,Autofac.Features.OwnedInstances.Owned`1[Halfwit2.ViewModels.DirectMessageViewModel]], | |
System.Func`3[Halfwit2.ViewModels.TimelineViewModel,Halfwit2.ViewModels.StatusViewModel,Autofac.Features.OwnedInstances.Owned`1[Halfwit2.ViewModels.ReplyViewModel]], | |
System.Func`3[Halfwit2.ViewModels.TimelineViewModel,Halfwit2.ViewModels.StatusViewModel,Autofac.Features.OwnedInstances.Owned`1[Halfwit2.ViewModels.RetweetViewModel]], Halfwit2.ViewModels.TimelineViewModel, Budgie.TwitterStatus)' on type 'StatusViewModel'. | |
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
{"Unexpected character encountered while parsing value: <. Line 0, position 0."} | |
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) | |
at System.Threading.Tasks.Task`1.get_Result() | |
at Halfwit2.Pollers.HomePoller.<>c__DisplayClass3.<PollAsync>b__2(Task`1 t) | |
at System.Threading.Tasks.Task`1.<>c__DisplayClass17.<ContinueWith>b__16(Object obj) | |
at System.Threading.Tasks.Task.InnerInvoke() | |
at System.Threading.Tasks.Task.Execute() | |
{"Unexpected character encountered while parsing value: <. Line 0, position 0."} | |
at Newtonsoft.Json.JsonTextReader.ParseValue() |
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
NullRef: {"Object reference not set to an instance of an object."} | |
at Halfwit2.ViewModels.ConnectionViewModel.Save() | |
at GalaSoft.MvvmLight.Command.RelayCommand.Execute(Object parameter) | |
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated) | |
at System.Windows.Controls.Primitives.ButtonBase.OnClick() | |
at System.Windows.Controls.Button.OnClick() | |
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) | |
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e) | |
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) |
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
<!-- You ALSO need to set this, which is KiloByte: | |
<httpRuntime maxRequestLength="51200" /> | |
--> | |
<system.webServer> | |
<security> | |
<requestFiltering> | |
<!-- in bytes. Documentation says that 0 means Unlimited, but this is NOT true. 0 means zero bytes. 2 GB is the max. --> |
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 AnnounceResultModelBinder : IModelBinder | |
{ | |
private ByteArrayModelBinder _byteBinder = new ByteArrayModelBinder(); | |
public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) | |
{ | |
if (bindingContext.ModelName == "info_hash" || bindingContext.ModelName == "peer_id") | |
{ | |
var query = controllerContext.RequestContext.HttpContext.Request.Url.Query; | |
if (query.StartsWith("?")) query = query.Substring(1); |
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
// client.ClearHandlers(); | |
// client.AddHandler("*", new WebApiJsonDeserializer()); | |
using System; | |
using System.Net; | |
namespace RestSharp.Deserializers | |
{ | |
public class WebApiJsonDeserializer : IDeserializer | |
{ |
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
private static IEnumerable<byte> Add(byte register, int value) | |
{ | |
yield return Opcodes.Add.Code; | |
yield return register; | |
foreach (var bt in WriteInt(value)) yield return bt; | |
} | |
private static IEnumerable<byte> WriteInt(int value) | |
{ |
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
private static Dictionary<string, int> ResolveLabels(IList<Token> tokens) | |
{ | |
var result = new Dictionary<string, int>(StringComparer.InvariantCultureIgnoreCase); | |
var currentPosition = 0; | |
foreach (var token in tokens) | |
{ | |
var commandToken = token as CommandToken; | |
if (commandToken != null) | |
{ |
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
<dependencies> | |
<group targetFramework="net40"> | |
<dependency id="Microsoft.Bcl.Async" version="1.0.14-rc" /> | |
<dependency id="DotNetOpenAuth.OAuth.ServiceProvider" version="4.2.2.13055" /> | |
</group> | |
<group targetFramework="net45"> | |
<dependency id="DotNetOpenAuth.OAuth.ServiceProvider" version="4.2.2.13055" /> | |
</group> | |
</dependencies> |
OlderNewer