Tutorial by Examples: e

<!DOCTYPE html> <html> <head> <title>My Leaflet Map</title> <link rel="stylesheet" href="//unpkg.com/[email protected]/dist/leaflet.css" /> <style type="text/css"> #map { height: 500px; ...
Three things are usually important when starting to learn to use MPI. First, you must initialize the library when you are ready to use it (you also need to finalize it when you are done). Second, you will want to know the size of your communicator (the thing you use to send messages to other process...
CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetLineWidth(context, 5.0); CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB(); CGContextMoveToPoint(context, 200, 400); CGContextAddLineToPoint(context, 100, 100); CGContextStrokePath(context); CGColorSpaceRelease(colors...
Draw To requires Core Text framework to be added in the Build Phase [NSString* textToDraw = @"Welcome to the world Of IOS"; CFStringRef stringRef = (__bridge CFStringRef)textToDraw; CFAttributedStringRef currentText = CFAttributedStringCreate(NULL, stringRef, NULL); ...
Using escaped brackets, you can define a capturing group in a pattern that can be backreferenced in the substitution string with \1: $ echo Hello world! | sed 's/\(Hello\) world!/\1 sed/' Hello sed With multiple groups: $ echo one two three | sed 's/\(one\) \(two\) \(three\)/\3 \2 \1/' three ...
What? : A fully supported and extensible framework for building HTTP based endpoints. In the world of HTML5, mobile devices, and modern development techniques HTTP have become the default option for building rich, scalable services. The ASP.NET Web API provides an easy to use set of default options...
<form asp-action="create" asp-controller="Home"> <!--Your form elements goes here--> </form>
<form asp-action="create" asp-controller="Home" asp-route-returnurl="dashboard" asp-route-from="google"> <!--Your form elements goes here--> </form> This will generate the below markup <form action=&qu...
Assuming your view is strongly typed to a view model like public class CreateProduct { public string Name { set; get; } } And you are passing an object of this to the view from your action method. @model CreateProduct <form asp-action="create" asp-controller="Home"...
Assuming your view is strongly typed to a view model like this public class CreateProduct { public IEnumerable<SelectListItem> Categories { set; get; } public int SelectedCategory { set; get; } } And in your GET action method, you are creating an object of this view model,...
Machine code is term for the data in particular native machine format, which are directly processed by the machine - usually by the processor called CPU (Central Processing Unit). Common computer architecture (von Neumann architecture) consist of general purpose processor (CPU), general purpose mem...
Extension methods enable you to simplify your interface definitions by only including core required functionality in the interface itself and allowing you to define convenience methods and overloads as extension methods. Interfaces with fewer methods are easier to implement in new classes. Keeping o...
An interface is a definition of a contract between the user of the interface and the class that implement it. One way to think of an interface is as a declaration that an object can perform certain functions. Let's say that we define an interface IShape to represent different type of shapes, we exp...
Shiny can run as a standalone application on your local computer, on a server that can provide shiny apps to multiple users (using shiny server), or on shinyapps.io. Installing Shiny on a local computer: in R/RStudio, run install.packages("shiny") if installing from CRAN, or devtools::i...
// Converts the string representation of a date and time to its DateTime equivalent var dateTime = DateTime.Parse("14:23 22 Jul 2016"); Console.WriteLine(dateTime.ToString());
// Converts the specified string representation of a date and time to its DateTime equivalent and returns a value that indicates whether the conversion succeeded string[] dateTimeStrings = new []{ "14:23 22 Jul 2016", "99:23 2x Jul 2016", "22/7/2016 14:23:0...
Data from a POST request is stored in the superglobal $_POST in the form of an associative array. Note that accessing a non-existent array item generates a notice, so existence should always be checked with the isset() or empty() functions, or the null coalesce operator. Example: $from = isset($_...
Data from a GET request is stored in the superglobal $_GET in the form of an associative array. Note that accessing a non-existent array item generates a notice, so existence should always be checked with the isset() or empty() functions, or the null coalesce operator. Example: (for URL /topics.ph...
Quickstart for Jekyll $ gem install jekyll $ jekyll new my-awesome-site $ cd my-awesome-site ~/my-awesome-site $ jekyll serve Now browse to http://localhost:4000 Quickstart for Jekyll with Bundler $ gem install jekyll bundler $ jekyll new my-awesome-site $ cd my-awesome-site ~/my...
First, we'll need to do some setup to get HStoreField working. make sure django.contrib.postgres is in your `INSTALLED_APPS Add HStoreExtension to your migrations. Remember to put HStoreExtension before any CreateModel or AddField migrations. from django.contrib.postgres.operations import HSt...

Page 298 of 1191