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
| const fs = require("fs"); | |
| const path = require("path"); | |
| var folderPath = "./"; | |
| var files = fs.readdirSync(folderPath, { recursive: true }) | |
| .filter(x => x.endsWith('.cs')) | |
| .map((fileName) => { | |
| return path.join(folderPath, fileName); | |
| }) |
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
| import 'package:flutter/material.dart'; | |
| class ShopScreen extends StatefulWidget { | |
| @override | |
| ShopScreenState createState() => ShopScreenState(); | |
| } | |
| class ShopScreenState extends State<StatefulWidget> { | |
| @override | |
| Widget build(BuildContext context) { |
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
| <ContentPage x:name="page"> | |
| <ListView> | |
| <ListView.ItemTemplate> | |
| <DataTemplate> | |
| <ViewCell> | |
| <CustomControl Command="{Binding BindingContext.ShowItemCommand, Source={Reference page}}" /> | |
| </ViewCell> | |
| </DataTemplate> | |
| </ListView.ItemTemplate> | |
| </ListView> |
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"?> | |
| <configuration> | |
| <packageSources> | |
| <add key="this-project" value="nugets" /> | |
| <add key="syncfusion" value="http://nuget.syncfusion.com/nuget_xamarin/nuget/getsyncfusionpackages/xamarin" /> | |
| <add key="private-remote-nugets" value="http://my-private-server.com" /> | |
| </packageSources> | |
| <activePackageSource> | |
| <add key="All" value="(Aggregate source)" /> | |
| </activePackageSource> |
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 ClassSample | |
| { | |
| pubic static readonly string StatidFieldA; | |
| pubic static readonly string StatidFieldZ; | |
| private static readonly string StatidFieldA; | |
| private static readonly string StatidFieldZ; | |
| public event EventHandler EventA; | |
| public event EventHandler EventZ; |
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 readonly BindableProperty $Name$Property = BindableProperty.Create( | |
| nameof($Name$), | |
| typeof($Type$), | |
| typeof($Class$), | |
| default($Type$), | |
| BindingMode.$Mode$); | |
| public $Type$ $Name$ | |
| { | |
| get { return ($Type$)GetValue($Name$Property); } | |
| set { SetValue($Name$Property, value); } |
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
| static class HttpContentExtensions | |
| { | |
| public static async Task<T> DeserializeJsonObjectAsync<T>(this HttpContent content) | |
| { | |
| using (var stream = await content.ReadAsStreamAsync()) | |
| { | |
| using (var textReader = new StreamReader(stream)) | |
| { | |
| using (var jsonReader = new JsonTextReader(textReader)) | |
| { |
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
| def scroll_to_edge(uiquery, direction) | |
| allowed_directions = [:up, :down] | |
| dir_symbol = direction.to_sym | |
| unless allowed_directions.include?(dir_symbol) | |
| raise ArgumentError, "Expected '#{direction} to be one of #{allowed_directions}" | |
| end | |
| lastYOffset = 99999999.0 * (dir_symbol == :up ? 1 : -1) | |
| while true |
NewerOlder