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
| System.ArgumentException'jobject' must not be IntPtr.Zero. Parameter name: jobject | |
| Raw | |
| at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod, Android.Runtime.JValue* parms) <0x7c263f58 + 0x001b8> in <filename unknown>:0 | |
| at Android.Views.View.set_Alpha (Single value) <0x845e7e60 + 0x001ef> in <filename unknown>:0 | |
| at Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateOpacity () <0x84602bb0 + 0x0008f> in <filename unknown>:0 | |
| at Xamarin.Forms.Platform.Android.VisualElementTracker.HandlePropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) <0x7d47e880 + 0x006c7> in <filename unknown>:0 | |
| at (wrapper delegate-invoke) <Module>:invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs) | |
| at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) <0x7cc77528 + 0x0005b> in <filename unknown>:0 | |
| at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.Binda |
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
| internal class CustomListViewRender : ListViewRenderer | |
| { | |
| protected override void OnElementChanged(ElementChangedEventArgs<ListView> e) | |
| { | |
| base.OnElementChanged(e); | |
| var subview = Control?.Subviews; | |
| if (subview != null && subview.Any(x => x is UIRefreshControl)) | |
| { | |
| var refresh = (UIRefreshControl)subview.First(x => x is UIRefreshControl); |
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 EdgeJs; | |
| using Newtonsoft.Json; | |
| namespace RakutenMA | |
| { | |
| internal class Program | |
| { | |
| private static void Main(string[] args) | |
| { |
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 static IObservable<TResult> SyncTimeout<TSource, TResult>(this IObservable<TSource> first, | |
| IObservable<TSource> second, TimeSpan dueTime, Func<TSource, TSource, TResult> selectorFunc) | |
| { | |
| return | |
| first | |
| .Zip(second.Timeout(dueTime).Take(1), (f, s) => new {First = f, Second = s}) | |
| .Repeat() | |
| .Select(x => selectorFunc(x.First, x.Second)); | |
| } |
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
| namespace XFApp1 | |
| { | |
| public class App : Application | |
| { | |
| public App() | |
| { | |
| // The root page of your application | |
| MainPage = new ContentPage | |
| { | |
| Content = new StackLayout |
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
| [TestFixture] | |
| public class SpeakerTest | |
| { | |
| private IVoiceCapture _capture; | |
| private IVoiceSpeaker _speaker; | |
| [SetUp] | |
| public void Setup() | |
| { | |
| // サンプルレート8000にて16bits/1channelで250msec毎にデータを受け取る。 |
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
| [TestFixture] | |
| public class SpeakerTest | |
| { | |
| private IVoiceCapture _capture; | |
| private IVoiceSpeaker _speaker; | |
| [SetUp] | |
| public void Setup() | |
| { | |
| _capture = new VoiceCapture(8000, 250); |
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
| /// <reference path="NSpeex.Decoder.ts"/> | |
| /// <reference path="Scripts/collections.ts" /> | |
| class Greeter { | |
| element: HTMLElement; | |
| span: HTMLElement; | |
| timerToken: number; | |
| decoder: SpeexDecoder; | |
| socket: WebSocket; | |
| reader: FileReader; |
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 sealed class CommitDisposable : IDisposable | |
| { | |
| private readonly Action _commitAction; | |
| private readonly Action _rollbackAction; | |
| public bool DoCommit { get; set; } | |
| public CommitDisposable(Action commitAction, Action rollbackAction) | |
| { | |
| this.DoCommit = false; |
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 static class Singleton<T> where T : new() | |
| { | |
| public static T Instance = new T(); | |
| } |