Tutorial by Examples: l

A simple example of a Function that gets triggered when a Azure Storage Blob is modified: public static async Task BlobTrigger( [BlobTrigger("my_container/{name}.{ext}")] Stream input, string name, string ext) { //Blob with name {name} and extension {ext} using (StreamRead...
Azure Webjobs run on an Azure App Service. If we scale our App Service horizontally (add new instances), each instance will have its own JobHost. Note that this only applies to WebJobs running in Continuous mode. On-demand and scheduled WebJobs are not affected by horizontal scaling, they always ru...
Use the packet manager to install Microsoft.Owin.SelfHost install-packet Microsoft.Owin.SelfHost Code for a bare minimum HelloWorld web application running from a console window: namespace HelloOwin { using System; using Owin; class Program { static readonly stri...
extern crate serde; extern crate serde_json; #[macro_use] extern crate serde_derive; #[derive(Serialize)] struct Person { #[serde(rename="firstName")] first_name: String, #[serde(rename="lastName")] last_name: String, } fn main() { let person = ...
If you created an empty project, or you still don't have mvc configured in your application, you can add dependency: "Microsoft.AspNetCore.Mvc": "1.0.1" To your project.json file under "dependencies". And register MVC middleware in your Startup class: public void ...
Sometimes builds take longer than expected. There are a few environment variables you can set to better understand what's happening during the build process. METEOR_DEBUG_BUILD=1 (logs progress) METEOR_PROFILE=<n> (logs time spent) METEOR_DEBUG_SPRINGBOARD=1 (?) METEOR_DEBUG_...
Meteor Tool To check the installed version of the Meteor tool, just run the following command outside of any Meteor projects: meteor --version To get a list of all official (recommended) Meteor releases, run: meteor show METEOR Meteor Projects If you want to check the project version of Me...
The Meteor Tool will notify you when a newer release is available. To update Meteor projects to the latest release, execute the following command inside a Meteor project: meteor update In case you want to update your Meteor project to a specific Meteor release, run the following command inside ...
<!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...
<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,...
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...
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...
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...
-> Note: make sure you set up HStoreField first before going on with this example. (above) No parameters are required for initializing a HStoreField. from django.contrib.postgres.fields import HStoreField from django.db import models class Catalog(models.model): name = models.C...

Page 211 of 861