<md-card>
<md-card-header>
<md-card-header-text>
<span class="md-title">This will be the title</span>
<span class="md-subhead">Here goes the (smaller, lighter) sub-header</span>
</md-car...
[MetadataType(typeof(RoleMetaData))]
public partial class ROLE
{
}
public class RoleMetaData
{
[Display(Name = "Role")]
public string ROLE_DESCRIPTION { get; set; }
[Display(Name = "Username")]
public string ROLE_USERNAME { get; set; }
}
If you us...
The possible types passed to a new instance of SomeClass must inherit SomeBaseClass. This can also be an interface. The characteristics of SomeBaseClass are accessible within this class definition.
Public Class SomeClass(Of T As SomeBaseClass)
Public Sub DoSomething(newItem As T)
new...
This example shows a call of AfxBeginThread that starts the worker thread and an example worker thread procedure for that thread.
// example simple thread procedure.
UINT __cdecl threadProc(LPVOID rawInput)
{
// convert it to the correct data type. It's common to pass entire structures this ...
<a data-bind="attr: { href: myUrl }">link with dynamic href</a>
ko.applyBindings({
myUrl: ko.observable("http://www.stackoverflow.com")
});
Since there is no native href binding in KnockoutJS, you need to use a different feature to get dynamic links. The abo...
href binding is not native to KnockoutJS, so to get dynamic links use a custom binding handler:
<a data-bind="href: myUrl">link with dynamic href</a>
ko.bindingHandlers['href'] = {
update: function(element, valueAccessor) {
element.href = ko.utils.unwrapObservable(v...
public class MyPage : ContentPage
{
RelativeLayout _layout;
Label MiddleText;
public MyPage()
{
_layout = new RelativeLayout();
MiddleText = new Label
{
Text = "Middle Text"
};
MiddleText.SizeChanged += ...
/*
SD card basic file example
This example shows how to create and destroy an SD card file
The circuit:
* SD card attached to SPI bus as follows:
** MOSI - pin 11
** MISO - pin 12
** CLK - pin 13
** CS - pin 4
created Nov 2010
by David A. Mellis
modified 9 Apr 2012
by ...
ggplot(iris[iris$Species == "setosa",],aes(Sepal.Width)) +
geom_density()
Here, we are subsetting the dataframe before passing it to ggplot. It is a very useful tool derived from the data frame data structure.
To make the code more readable, one can also use dplyr's filter:
libr...
This example shows how to find circular blobs in an grayscale image. The evaluation of the circularity of a blob is done using the area and the perimeter (arc length) of the contour. The center point gets evaluated using the moments of the contour.
#include "opencv/cv.h"
#include "...
When the temp table is created by itself, it will remain while the connection is open.
// Widget has WidgetId, Name, and Quantity properties
public async Task PurchaseWidgets(IEnumerable<Widget> widgets)
{
using(var conn = new SqlConnection("{connection string}")) {
...
Pretext:
These are detailed instructions on how to set up a Raspberry Pi with the Raspbian operating system.
These instructions are somewhat Windows specific.
Some installation steps may apply to other operating systems as well, but keep the former in mind.
Contents
Requirements
Choosing an ...
We would be creating mongodb as a replica set having 3 instances. One instance would be primary and the other 2 instances would be secondary.
For simplicity, I am going to have a replica set with 3 instances of mongodb running on the same server and thus to achieve this, all three mongodb instances...
[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));
}
!!! Container should be positioned relatively or absolutely
$direction - top, bottom, left, right
$margin - margin by the edge in $direction. For top and bottom direction - it's from left to right. For left and right - it's from top to bottom.
$colors - first is a border color, second - is a back...