This example will show you how to create a Windows Forms Application project in Visual Studio.
Create Windows Forms Project
Start Visual Studio.
On the File menu, point to New, and then select Project. The New Project dialog box appears.
In the Installed Templates pane, select "...
Open a text editor (like Notepad), and type the code below:
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace SampleApp
{
public class MainForm : Form
{
private Button btnHello;
// The form's con...
Mesos is a cluster manager aiming for improved resource utilization by dynamically
sharing resources among multiple frameworks. It was started at the University of
California, Berkeley in 2009 and is in production use in many companies, including
Twitter and Airbnb. It became an Apache top-level ...
docker network disconnect app-backend myAwesomeApp-1
This command detaches the myAwesomeApp-1 container from the app-backend network. The container will no longer be able to communicate with other containers on the network it has been disconnected from, nor use the embedded DNS resolver to look u...
6
ES6:
myFunction.name
Explanation on MDN. As of 2015 works in nodejs and all major browsers except IE.
5
ES5:
If you have a reference to the function, you can do:
function functionName( func )
{
// Match:
// - ^ the beginning of the string
// - function the w...
Used by awk to split each record into multiple fields:
echo "a-b-c
d-e-f" | awk 'BEGIN {FS="-"} {print $2}'
will result in:
b
e
The variable FS can also be set using the option -F:
echo "a-b-c
d-e-f" | awk -F '-' '{print $2}'
By default, the fields are se...
An Akka MessageDispatcher is what makes Akka Actors "tick", it is the engine of the machine so to speak. All MessageDispatcher implementations are also an ExecutionContext, which means that they can be used to execute arbitrary code, for instance Futures.
Every ActorSystem will have a def...
So in case you want to give your Actor a different dispatcher than the default, you need to do two things, of which the first is to configure the dispatcher in your application.conf:
my-dispatcher {
# Dispatcher is the name of the event-based dispatcher
type = Dispatcher
# What kind of Exe...
If you want to make sure cookies are enabled before using them, you can use navigator.cookieEnabled:
if (navigator.cookieEnabled === false)
{
alert("Error: cookies not enabled!");
}
Note that on older browsers navigator.cookieEnabled may not exist and be undefined. In those case...
Function Factorial(Value As Long) As Long
If Value = 0 Or Value = 1 Then
Factorial = 1
Else
Factorial = Factorial(Value - 1) * Value
End If
End Function
Early Bound (with a reference to Microsoft Scripting Runtime)
Sub EnumerateFilesAndFolders( _
FolderPath As String, _
Optional MaxDepth As Long = -1, _
Optional CurrentDepth As Long = 0, _
Optional Indentation As Long = 2)
Dim FSO As Scriptin...
TYPO3 has extensive documentation. This documentation is linked here, so people can find stuff that is not documented here.
Main Documentation
The documentation of TYPO3 CMS is collected at docs.typo3.org, there is a list of all documentation for the core, and documentation for extensions.
Promin...
OperatorComparisonExample==Equali == 0===Equal Value and Typei === "5"!=Not Equali != 5!==Not Equal Value or Typei !== 5>Greater thani > 5<Less thani < 5>=Greater than or equali >= 5<=Less than or equali <= 5
Open a text editor (like Notepad), and type the code below:
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Namespace SampleApp
Public Class MainForm : Inherits Form
Private btnHello As Button
' The form's constructor: thi...
==================
TODO: Link each of the drawing commands below to their individual examples. I don't know how to do this since the links to the individual examples point towards the "draft" folder.
TODO: Add examples for these path "action" commands: stroke(), fill(), clip()
...