Tutorial by Examples

If you are unsure which rules to list in your .gitattributes file, or you just want to add generally accepted attributes to your project, you can shoose or generate a .gitattributes file at: https://gitattributes.io/ https://github.com/alexkaratarakis/gitattributes
PGSQL> SELECT COALESCE(NULL, NULL, 'HELLO WORLD'); coalesce -------- 'HELLO WORLD'
PGSQL> SELECT COALESCE(NULL, NULL, 'first non null', null, null, 'second non null'); coalesce -------- 'first non null'
PGSQL> SELECT COALESCE(NULL, NULL, NULL); coalesce --------
<Image style={[this.props.imageStyle]} source={this.props.imagePath ? this.props.imagePath : require('../theme/images/resource.png')} /> If the path is available in imagePath then it will be assigned to source else the default image path will be assigned.
let imagePath = require("../../assets/list.png"); <Image style={{height: 50, width: 50}} source={imagePath} /> From external resource: <Image style={{height: 50, width: 50}} source={{uri: userData.image}} />
Installation pip install Flask-SQLAlchemy Simple Model class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80)) email = db.Column(db.String(120), unique=True) The code example above shows a simple Flask-SQLAlchemy model, we can add an ...
This following example is created by user Michael Dillon from this answer. Consider the following script: @set @junk=1 /* @echo off cscript //nologo //E:jscript %0 %* goto :eof */ //JScript aka Javascript here This script snippet does: Execute the cscript command which calls itsel...
As mentioned here, the old-school method to run another script is by using temporary files. Simple echo it into a file and then run it(and remove it optionally). Here's the basic concept: @echo off echo //A JS Comment > TempJS.js echo //Add your code>>TempJS.js cscript //nologo //e...
from flask_wtf import FlaskForm from wtforms import StringField, IntegerField from wtforms.validators import DataRequired class MyForm(FlaskForm): name = StringField('name', validators=[DataRequired()]) age = InterField('age', validators=[DataRequired()]) To render the template you...
The rotate(r) method of the 2D context rotates the canvas by the specified amount r of radians around the origin. HTML <canvas id="canvas" width=240 height=240 style="background-color:#808080;"> </canvas> <button type="button" onclick="rotate_c...
You can save a canvas to an image file by using the method canvas.toDataURL(), that returns the data URI for the canvas' image data. The method can take two optional parameters canvas.toDataURL(type, encoderOptions): type is the image format (if omitted the default is image/png); encoderOptions is ...
Detailed instructions on getting prism set up or installed.
Reverse proxies can detect if a client provides a X-Request-ID header, and pass it on to the backend server. If no such header is provided, it can provide a random value. map $http_x_request_id $reqid { default $http_x_request_id; ...
Heroku will always pass on a X-Request-ID header send by the client, or generate its own. See documentation at HTTP Request IDs.
When using Django as a web service framework, the package django-log-request-id can be used to parse and log request IDs. Settings MIDDLEWARE_CLASSES = ( 'log_request_id.middleware.RequestIDMiddleware', # ... other middleware goes here ) LOGGING = { 'version': 1, 'disable_e...
My laptop is having Windows 10. Here i am giving steps that you can follow to test and learn Ansible. SOME THEORY For Ansible you need a Control Machine and a host(or hosts) to run the Playbook. Control Machine should be Linux based or MacOS(windows not allowed) and need Python (2.6 or higher v...
ChromeDriverManager.getInstance().setup(); FirefoxDriverManager.getInstance().setup(); OperaDriverManager.getInstance().setup(); PhantomJsDriverManager.getInstance().setup(); EdgeDriverManager.getInstance().setup(); InternetExplorerDriverManager.getInstance().setup();
High Level Design Document MOBILE Tool (Azure AD authentication for Node.js) Version 1.0 (Draft) Table of Contents Introduction 4 Architectural Representation (Logical View) 5 Technical Process 7 Architectural Goals and Constraints 8 Size and Performance 9 Issues and concer...
It is a powerful and mostly used keyword in Ansible to run Playbook using Ad-Hoc commands Example: ansible-playbook demo.yml Further Reading on ansible-plabook

Page 1287 of 1336