There are lots of cases that you can improve. The examples use nullable reference types, but only the WhenNotNull
example requires it.
Consider adopting the new property pattern, wherever you use IsNullOrEmpty
.
string? hello = "hello world";
There are lots of cases that you can improve. The examples use nullable reference types, but only the WhenNotNull
example requires it.
Consider adopting the new property pattern, wherever you use IsNullOrEmpty
.
string? hello = "hello world";
extension UIHostingController { | |
convenience public init(rootView: Content, ignoreSafeArea: Bool) { | |
self.init(rootView: rootView) | |
if ignoreSafeArea { | |
disableSafeArea() | |
} | |
} | |
func disableSafeArea() { |
using System; | |
using System.Collections.Generic; | |
namespace Praeclarum | |
{ | |
/// <summary> | |
/// The type of <see cref="ListDiffAction{S,D}"/>. | |
/// </summary> | |
public enum ListDiffActionType | |
{ |
//usage: | |
// ContactGrid is the x:Name of the Grid within the ScrollView | |
protected override void OnAppearing() | |
{ | |
base.OnAppearing(); | |
ContactGrid.LayoutStars(((float)App.INSTANCE.Resources["PageHeight"])); | |
} | |
//In your MainActivity: |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
adminPassword: '', | |
solution: '', | |
versionNumber: grunt.option('versionNumber'), | |
buildAgent: grunt.option('buildAgent'), |
using System; | |
using Xamarin.Forms; | |
namespace TwinEvents.Core.Media.View | |
{ | |
public class FastCell : ViewCell | |
{ | |
} | |
} |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using System.Windows.Input; | |
using Xamarin.Forms; | |
namespace TimeTracker.Controls | |
{ | |
public class GridView : Grid |
using System; | |
using System.Collections; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using Xamarin.Forms; | |
namespace WrapPanelDemo.Controls | |
{ | |
public class AwesomeWrappanel : Layout<View> | |
{ |
import Foundation | |
let notified = dispatch_semaphore_create(0) | |
let group = dispatch_group_create() | |
let queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0) | |
for n in 0..<20 { | |
dispatch_group_async(group, queue) { | |
let timeInterval = Double(arc4random_uniform(1000)) * 0.01 |
/// Markov chain that learns by observing data. | |
/// Let it observe a sequence of states. | |
/// Then you can ask it, given a state, | |
/// what are the probabilities of the next states occuring? | |
/// This chain can remember history to make better predictions. | |
type MarkovChain (numStates : int, memory : int) = | |
let numPrevious = 1 + memory | |
let matrixSize = int (System.Math.Pow (float numStates, float numPrevious)) |