Tutorial by Examples: add

app.store.ts import {InjectionToken} from '@angular/core'; import {createStore, Store, compose, StoreEnhancer} from 'redux'; import {AppState, default as reducer} from "../app.reducer"; export const AppStore = new InjectionToken('App.store'); const devtools: ...
You can add comment and status to order. Get order : $orderid = 12345; $order = Mage::getModel('sales/order')->load($orderid); And add comment: //$isNotify means you want to notify customer or not. $order->addStatusToHistory($status, $message, $isNotify); $order->save()
Use Nuget to find the Web Api Package. You can do that either by using the Manage Nuget Packages and searching for the Web Api package or use Nuget Package Manager and type PM> Install-Package Microsoft.AspNet.WebApi Add WebApiConfig.cs to the App_Start/ folder The config file should contain...
Suppose this struct is defined and compiled with a 32 bit compiler: struct test_32 { int a; // 4 byte short b; // 2 byte int c; // 4 byte } str_32; We might expect this struct to occupy only 10 bytes of memory, but by printing sizeof(str_32) we see it uses 12 by...
string emailValidationFormula = GetEmailValidationFormula(targetFirstCol); CellRangeAddressList cellRangeFieldsType5 = new CellRangeAddressList(1, DVRowLimit, targetFirstCol, targetLastCol); dvConstraint = (XSSFDataValidationConstraint)validationHelper.CreateCustomConstraint(emailValidation...
// 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...
Each element of text you want to use distinct formatting on should be added separately, by adding to the cell's RichText collection property. var cell = ws.Cells[1,1]; cell.IsRichText = true; // Cell contains RichText rather than basic values cell.Style.WrapText = true; // Required to honor n...
First in case you are consulting mobile.angular.io the flag --mobile doesn't work anymore. So to start , we can create a normal project with angular cli. ng new serviceWorking-example cd serviceWorking-example Now the important thing, to said to angular cli that we want to use service worker w...
LibGDX is designed in a way that you can write the same code and deploy it on several different platforms. Yet, there are times when you want to get access to platform specific code. For an instance, if you have leaderboards and achievements in your game, you may want to use platform-specific tools ...
Project build.gradle allprojects { repositories { jcenter() // Add this if you use Gradle 4.0+ google() // Add this if you use Gradle < 4.0 maven { url 'https://maven.google.com' } } } ext { archVersion = '1.0.0-alpha5' } Applic...
/***************************** @return all events ****************************/ public function getallevents(){ //get data from model $events = array( array('Event 1', '2015-04-03'), array('Event 2', '2015-04-03'), array('Event 3', '2015-06-16'), array('Event 4', '2015-0...
An Annotation parameter can accept multiple values if it is defined as an array. For example the standard annotation @SuppressWarnings is defined like this: public @interface SuppressWarnings { String[] value(); } The value parameter is an array of Strings. You can set multiple values by u...
On every generated model classes there are no documentation comments added by default. If you want to use XML documentation comments for every generated entity classes, find this part inside [modelname].tt (modelname is current EDMX file name): foreach (var entity in typeMapper.GetItemsToGenerate&l...

Page 32 of 32