Tutorial by Examples

/// <summary> /// Button with some additional options /// </summary> public class TurboButton : Button { public static readonly BindableProperty StringDataProperty = BindableProperty.Create( propertyName: "StringData", returnType: typeof(string), d...
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}")) { ...
Places to find React components and libraries; Catalog of React Components JS.coach
The simplest way to wrap and access a piece of state is Agent. The module allows one to spawn a process that keeps an arbitrary data structure and allows one to send messages to read and update that structure. Thanks to this the access to the structure is automatically serialized, as the process onl...
To install openshift follow installation steps on https://install.openshift.com
import pygame pygame.init() WIDTH = 300 HEIGHT = 200 SCREEN = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption('My Game') WHITE = (255, 255, 255) BLACK = (0, 0, 0) RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) YELLOW = (255, 255, 255) SCREEN.fill(R...
function myFunction { param( # If parameter 'a' is used, then 'c' is mandatory # If parameter 'b' is used, then 'c' is optional, but allowed # You can use parameter 'c' in combination with either 'a' or 'b' # 'a' and 'b' cannot be used together [p...
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 ...
Here is the corresponding Java configuration: Add this annotation to an @Configuration class to have the Spring Security configuration defined in any WebSecurityConfigurer or more likely by extending the WebSecurityConfigurerAdapter base class and overriding individual methods: @Configuration @En...
This example uses SqlConnection, but any IDbConnection is supported. Also any IDbTransaction is supported from the related IDbConnection. public void UpdateWidgetQuantity(int widgetId, int quantity) { using(var conn = new SqlConnection("{connection string}")) { conn.Open()...
Wrapping a group of inserts in a transaction will speed them up according to this StackOverflow Question/Answer. You can use this technique, or you can use Bulk Copy to speed up a series of related operations to perform. // Widget has WidgetId, Name, and Quantity properties public void InsertWidg...
I found the solution. Please consider below mention steps. Install wp Markdown Editor plugin. Then Install "acf-wp-wysiwyg" for repeater field. Now you have to update in some files. Open this file and go to line number "180" or go to "create_field" function add echo...
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...
Given a file Sample called movieslist. Troy Gladiator Robin Hood King Arthur BraveHeart The Last Samurai Normal grep returns grep "Gladiator" movieslist Gladiator Now,using grep to print the below or above lines of the file. To print the below line grep -A 1 Gladiator movie...
Scala has the following built-in operators (methods/language elements with predefined precedence rules): TypeSymbolExampleArithmetic operators+ - * / %a + bRelational operators== != > < >= <=a > bLogical operators&& & || | !a && bBit-wise operators& | ^ ~ <...
In Scala you can define your own operators: class Team { def +(member: Person) = ... } With the above defines you can use it like: ITTeam + Jack or ITTeam.+(Jack) To define unary operators you can prefix it with unary_. E.g. unary_! class MyBigInt { def unary_! = ... } var ...
CategoryOperatorAssociativityPostfix() []Left to rightUnary! ~Right to leftMultiplicative* / %Left to rightAdditive+ -Left to rightShift>> >>> <<Left to rightRelational> >= < <=Left to rightEquality== !=Left to rightBitwise and&Left to rightBitwise xor^Left to ri...
[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...
//define a short alias to avoid chubby method signatures using AppFunc = Func<IDictionary<string, object>, Task>; class RequestTimeMiddleware { private AppFunc _next; public RequestTimeMiddleware(AppFunc next) { _next = next; } public async Task...

Page 901 of 1336