Tutorial by Examples: c

if you want to see component's individual coverage of tests follow these steps. npm install --save-dev karma-teamcity-reporter Add `require('karma-teamcity-reporter')` to list of plugins in karma.conf.js ng test --code-coverage --reporters=teamcity,coverage-istanbul note that l...
This is the approach proposed by the stackoverflow's user rojo which also can handle the command line arguments : <# : batch portion @echo off & setlocal (for %%I in ("%~f0";%*) do @echo(%%~I) | ^ powershell -noprofile "$argv = $input | ?{$_}; iex (${%~f0} | out-string)&q...
// add tags and categories to pages function add_taxonomies_to_pages() { register_taxonomy_for_object_type( 'post_tag', 'page' ); register_taxonomy_for_object_type( 'category', 'page' ); } add_action( 'init', 'add_taxonomies_to_pages' ); if ( ! is_admin() ) { add_action( 'pre_get_posts...
You can add this code to your custom functions.php file: // add tags and categories to pages function add_taxonomies_to_pages() { register_taxonomy_for_object_type( 'post_tag', 'page' ); register_taxonomy_for_object_type( 'category', 'page' ); } add_action( 'init', 'add_taxonomies_to...
If you're familiar with languages like Java, C# or C++ and the concept of generics/templates then this comparison might be useful for you. Say we have a generic function in C# public static T DoNothing<T>(T in) { return in; } To call this function with a float we can do DoNothing(5.0f) or...
This sample demonstrates the use of AD B2C for securing an AngularJS based web and mobile app. Refer https://github.com/NewtonJoshua/Azure-ADB2C-Angularjs-sample Azure AD B2C Azure AD B2C is a cloud identity management solution for your web and mobile applications. It is a highly available global...
Say you're introducing a class of types that have a size in bytes. class SizeOf a where sizeOf :: a -> Int The problem is that the size should be constant for every value of that type. We don't actually want the sizeOf function to depend on a, but only on it's type. Without type applica...
Create an Azure AD B2C Directory Note the Domain name, it'll be used as the tenantName. Register your application Follow the instructions to create an application and enable both Web App and Native client. Refer Register a web application and Register a mobile/native application Enter th...
The Azure AD B2C login screen can be customized to suit our branding. Refer Customizing the UI Refer https://github.com/NewtonJoshua/Azure-ADB2C-Angularjs-sample In this sample we have two customized UI screens, AD B2C Sign in ansd Sign up page: adCustomPages/unified.html AD B2C Password reset...
Step 1 Making the environment suitable for Notification. Make sure you enabled Background Modes and Push Notification Step 2: Creating an UNNotificationContentExtension Click on the + icon in the bottom which creates a target template and select Notification Content Extention -> next -> ...
let in Kotlin creates a local binding from the object it was called upon. Example: val str = "foo" str.let { println(it) // it } This will print "foo" and will return Unit. The difference between let and also is that you can return any value from a let block. also ...
Refer the example here: https://github.com/NewtonJoshua/Azure-ADB2C-Angularjs-sample Azure AD B2C Azure AD B2C is a cloud identity management solution for your web and mobile applications. It is a highly available global service that scales to hundreds of millions of identities. Mobile app - ADAL...
Refer the example in https://github.com/NewtonJoshua/Azure-ADB2C-Angularjs-sample Web app implementation uses Hello.js that performs identity management with Azure AD B2C . Hello.js is a client-side JavaScript SDK for authenticating with OAuth2 web services and querying REST APIs. jwtHelper of ang...
In this document we'll see how to create a Google Cloud SQL Instance and connect them in your Google App Engine application and MySQL Workbench admin tool. Google Cloud SQL: Google Cloud SQL is a fully-managed database service that makes it easy to set-up, maintain, manage and administer your rela...
This example explain how to use an Intent for start a new Activity. You need two activities: CurrentActivity DestinationActivity In CurrentActivity you have to created an Intent. For that you have to specify two arguments: Context: It's CurrentActivity, because Activity is a subclass of C...
The documentation of apply says the following: calls the specified function block with this value as its receiver and returns this value. While the kdoc is not so helpful apply is indeed an useful function. In layman's terms apply establishes a scope in which this is bound to the object you ca...
public class CurrentActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.current_activity); Intent intent = new Intent(this, DestinationActivity.c...
<body onload="__init();"> ... <script src="http://requirejs.org/docs/release/2.3.2/comments/require.js"></script> <script> function __init() { require(["view/index.js"]); } </script> </body>...
{ "module": "amd", // Using AMD module code generator which works with requireJS "rootDir": "./src", // Change this to your source folder "outDir": "./view", ... }
Camel's DSL (Domain Specific Language) is one of the features that makes Camel standout from other Integration frameworks. While some other frameworks also feature a DSL concept, typically in the form of a XML file, the DSL was in such cases always a custom based language. Camel offers multiple DSL...

Page 812 of 826