For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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 ScrollViewer GetScrollViewer(DependencyObject o) | |
| { | |
| // Return the DependencyObject if it is a ScrollViewer | |
| if (o is ScrollViewer) | |
| { | |
| return o as ScrollViewer; | |
| } | |
| for (int i = 0; i < VisualTreeHelper.GetChildrenCount(o); i++) | |
| { |
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
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
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
| => | |
| Add `AppxBundlePlatforms` section to .csproj | |
| ```xml | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |
| <PropertyGroup> | |
| ... | |
| <AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms> |
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 * as React from 'react'; | |
| import { push, replace } from './router'; | |
| export type RouteValidationResult = { | |
| url: string, | |
| needRedirect: boolean, | |
| state?: any, | |
| replace?: boolean | |
| }; |
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 IQueryableExtensions | |
| { | |
| public static string ToSql<TEntity>(this IQueryable<TEntity> query) where TEntity : class | |
| { | |
| IEnumerator<TEntity> enumerator = query.Provider | |
| .Execute<IEnumerable<TEntity>>(query.Expression) | |
| .GetEnumerator(); | |
| object relationalCommandCache = enumerator.Private("_relationalCommandCache"); | |
| SelectExpression selectExpression = relationalCommandCache.Private<SelectExpression>("_selectExpression"); |
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 next = require('next'); | |
| const express = require('express'); | |
| const passport = require('passport'); | |
| const session = require('express-session'); | |
| const oidc = require('openid-client'); | |
| const cookieParser = require('cookie-parser'); | |
| const { | |
| Issuer, | |
| Strategy |
- Add new App in Firebase Console, select iOS and follow exactly instruction.
1a. In the
GoogleService-Info.pliststep, after download the file, openxCode, inProject Navigatorright clickSupportingfolder and selectAdd files to ...then select the downloaded file. - Following this to create
App Id,APNs(.p8) andProvisioning ProfileforiOS: https://firebase.google.com/docs/cloud-messaging/ios/certs 2a. AddAPNfile (.p8) to Firebase App - Edit
Podfile, add following belowpod 'Firebase/Core':pod 'Firebase/Messaging'then$ pod installagain - Install
react-native-fcmmodule thenrnpm link react-native-fcm - Following this https://github.com/evollu/react-native-fcm#shared-steps and this https://github.com/evollu/react-native-fcm#xcode-post-installation-steps
- Write Component to handle Push Notifications:
# main.js
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 UserListScreen extends StatefulWidget { | |
| @override | |
| _UserListScreenState createState() => _UserListScreenState(); | |
| } | |
| class _UserListScreenState extends State<UserListScreen> { | |
| const bool isDarkModeEnabled = false; | |
| final userList = []; |
OlderNewer