public static IEnumerable<(int Start, int Length)> DetectMentions(string text)
{
var matches = Regex.Matches(text, @"\B@(\w|@|\.)+", RegexOptions.IgnorePatternWhitespace);
foreach (Match mention in matches)
{
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
<?xml version="1.0" encoding="utf-8" ?> | |
<resources> | |
<!-- Colors --> | |
<color name="CustomHighlight">@android:color/transparent</color> | |
<color name="DarkOverride">@android:color/black</color> | |
<color name="Brand">#BE1003</color> | |
<style name="MainTheme" parent="MainTheme.Base"> | |
</style> | |
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
# EditorConfig is awesome: http://EditorConfig.org | |
# Based on: | |
# https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference | |
# https://github.com/dotnet/roslyn/blob/master/.editorconfig | |
# top-most EditorConfig file | |
root = true |
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
find -E . -regex ".*/(bin|obj)" -type d -exec rm -r "{}" \; |
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 UIKit; | |
namespace XamarinOfficeUIFabric | |
{ | |
public static class ColorExtensions | |
{ | |
// Original MS Source: | |
// https://github.com/OfficeDev/office-ui-fabric-ios/blob/master/OfficeUIFabricCore/OfficeUIFabricCore/Core/Colors/UIColorMSHashExtension.swift | |
public static UIColor MSHashColor(this string hash) |
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.Collections.Specialized; | |
using System.Threading; | |
using AsyncDisplayKitBindings; | |
using Foundation; | |
using UIKit; | |
using Softeq.XToolkit.Common.Collections; | |
using Softeq.XToolkit.Common.WeakSubscription; |
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 bash | |
# For Xamarin Android or iOS, change the package name located in AndroidManifest.xml and Info.plist. | |
# AN IMPORTANT THING: YOU NEED DECLARE PACKAGE_NAME, PACKAGE_VERSION ENVIRONMENT VARIABLE IN APP CENTER BUILD CONFIGURATION. | |
PACKAGE_NAME="com.your.name" | |
PACKAGE_VERSION="0.1" | |
ANDROID_PROJECT_PATH="ProjectName.Android" | |
ANDROID_MANIFEST_PATH="$ANDROID_PROJECT_PATH/Properties/AndroidManifest.xml" |
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 CoreGraphics; | |
using Foundation; | |
using System; | |
using UIKit; | |
namespace YPControls.iOS | |
{ | |
[Register("AutoScrollLabel")] | |
public class AutoScrollLabel : UIScrollView | |
{ |
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 Android.Content; | |
using Android.Graphics; | |
using Android.Graphics.Drawables; | |
using Android.Runtime; | |
using Android.Util; | |
using Android.Widget; | |
namespace DroidDotIndicator | |
{ |