Tutorial by Examples: amp

<div class="dropdown"> <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Dropdown Example <span class="caret"></span></button> <ul class="dropdown-menu"> &...
In the following example consider you have a solution hosting two projects: ConsoleApplication1 and SampleClassLibrary. The first project will have the classes SampleClass1 and SampleClass2. The second one will have SampleClass3 and SampleClass4. In other words we have two assemblies with two classe...
//Create a layout var tableLayout = new sap.ui.commons.layout.MatrixLayout({ layoutFixed : false, columns : 2, width : "100%", height : "100%", widths : [ "20%","80%"] }).addStyleClass('dsAvailLayout'); sap.ui.table.Table.extend(...
Encryption is used to transform data in its orignal format (Eg: The contents of a letter, Credentials part of authorizing a financial transaction) to something that cannot be easily reconstructed by anyone who is not intended to be part of the conversation. Basically encryption is used to preve...
'use strict'; import React, {Component} from 'react'; import ReactNative from 'react-native'; const { AppRegistry, StyleSheet, Text, View, Navigator, Alert, TouchableHighlight } = ReactNative; //This is the app container that contains the navigator stuff class AppC...
A minimal Flask application looks something like this: from flask import Flask app = Flask(__name__) @app.route("/") def index(): return "Hello World!" A large Flask application can separate one file into multiple files by blueprints. Purpose Make it easier for ...
Things are easy when you have to use a C++ library in a Python project. Just you can use Boost. First of all here is a list of components you need: A CMakeList.txt file, because you're going to use CMake. The C++ files of the C++ project. The python file - this is your python project. Let's...
<div class="container"> <h2>Alerts</h2> <div class="alert alert-success"> <strong>Success!</strong> </div> <div class="alert alert-info"> <strong>Info!</strong> </div> <div ...
Before understand require to follow some setup for project integrate with firebase. Create your project in Firebase Console and download google-service.json file from console and put it in app level module of your project, Follow link for Create Project in console After this we require to...
DECLARE -- declare a variable message varchar2(20); BEGIN -- assign value to variable message := 'HELLO WORLD'; -- print message to screen DBMS_OUTPUT.PUT_LINE(message); END; /
apply plugin: 'com.android.library' apply plugin: 'maven' apply plugin: 'maven-publish' android { compileSdkVersion 21 buildToolsVersion "21.1.2" repositories { mavenCentral() } defaultConfig { minSdkVersion 9 targetSdkVersion 21 versionCode 1 version...
Suppose we have container "CustomersContainer" which connects a "Customers" dumb component to the Redux store. In index.js: import { Component }, React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redu...
In this example we use a parameter in the route to specify the page number. We set a default of 1 in the function parameter page=1. We have a User object in the database and we query it, ordering in descending order, showing latest users first. We then use the paginate method of the query object in ...
I find that the examples in the docker inspect documentation seem magic, but do not explain much. Docker inspect is important because it is the clean way to extract information from a running container docker inspect -f ... container_id (or all running container) docker inspect -f ... $(docker p...
### Elixir ### /_build /cover /deps erl_crash.dump *.ez ### Erlang ### .eunit deps *.beam *.plt ebin rel/example_project .concrete/DEV_MODE .rebar
User defined table functions represented by org.apache.hadoop.hive.ql.udf.generic.GenericUDTF interface. This function allows to output multiple rows and multiple columns for a single input. We have to overwrite below methods : 1.we specify input and output parameters abstract StructObjectInspe...
[TestCase(0, 0, 0)] [TestCase(34, 25, 59)] [TestCase(-1250, 10000, 8750)] public void AddNumbersTest(int a, int b, int expected) { // Act int result = a + b; // Assert Assert.That(result, Is.EqualTo(expected)); }
Blackboard.cs using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Blackboard { public class BlackBoard { public List<KnowledgeWorker> knowledgeWorkers; protected Dictionary<string, ControlData> data; ...
/// <summary> /// Overrides the onDisconnected function and sets the user object to offline, this can be checked when other players interacts with them... /// </summary> /// <param name="stopCalled"></param> /// <returns></returns&gt...
This example extends the basic example passing parameters in the route in order to use them in the controller To do so we need to: Configure the parameter position and name in the route name Inject $routeParams service in our Controller app.js angular.module('myApp', ['ngRoute']) .contro...

Page 22 of 46