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...
A follow button is a button that links to a GitHub user page and prompts the user to follow the user. Here's how to create one:
Go onto github:buttons
Click "Follow"
Place your GitHub username in the box labeled ":user"
Customize the button using the boxes "...
All of the other buttons you can create, are buttons that link to a GitHub repository and prompts the user to complete a certain action. These buttons can do actions such as:
Watch a repository
Star a repository
Fork a repository
Download a repository
List an Issue with a repository
Here's...
The window resize events can fire in response to the movement of the user's input device. When you resize a canvas it is automatically cleared and you are forced to re-render the content. For animations you do this every frame via the main loop function called by requestAnimationFrame which does its...
npm init
This will initialize a new NPM project for you - just press enter until it stops asking you questions.
Now you'll notice that you have a new file called package.json. This file will, among other things, keep track of which packages or modules you've installed in your project.
The following command displays output only on the screen (stdout).
$ ls
The following command writes the output only to the file and not to the screen.
$ ls > file
The following command (with the help of tee command) writes the output both to the screen (stdout) and to the file.
$ ls | ...
You can also use tee command to store the output of a command in a file and redirect the same output to another command.
The following command will write current crontab entries to a file crontab-backup.txt and pass the crontab entries to sed command, which will do the substituion. After the substi...
Here we will create a rest APi which will take file object as a
multipart parameter from front end and upload it to S3 bucket using
java rest API.
Requirement :- secrete key and Access key for s3 bucket where you wanna upload your file.
code:-
DocumentController.java
@RestController
@Requ...
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)
posts = db.relationship('Post', backref='user')
class Post(db.Model):
id = db.Column(db.Integer,...
The cluster module allows one to start the same application multiple times.
Clustering is desirable when the different instances have the same flow of execution and don't depend on one another. In this scenario, you have one master that can start forks and the forks (or children). The children work...
A typical example of the implementation of a Looper thread given by the official documentation uses Looper.prepare() and Looper.loop() and associates a Handler with the loop between these calls.
class LooperThread extends Thread {
public Handler mHandler;
public void run() {
Lo...
A HandlerThread can be used to start a thread with a Looper. This looper then can be used to create a Handler for communications with it.
HandlerThread thread = new HandlerThread("thread-name");
thread.start();
Handler handler = new Handler(thread.getLooper());
In this example, we will plot a sine curve and a hyperbolic sine curve in the same plot with a common x-axis having different y-axis. This is accomplished by the use of twinx() command.
# Plotting tutorials in Python
# Adding Multiple plots by twin x axis
# Good for plots having different y axis ...