Usage of date format in angular4

Processing date in.ts file The format of the date will have different display outputs in different methods. dateTime: Date; this.dataTime = new Date(); // Get the current date // Output: Fri Dec 08 2017 00:33:01 GMT+0800 (China Standard Time) Sometimes we need some string type output in other formats. You can see all the tostring methods ...

Added by callie212 on Thu, 02 Jul 2020 18:51:06 +0300

An algorithm for searching all paths between two points based on a graph's contiguity list implementation

The algorithm is implemented in C++. Why write this algorithm? Because it is so hard to find only the implementation of the adjacency matrix on the network, I have made an implementation of the adjacency chain table myself, which can increase the speed. This is achieved by using one of three stacks to traverse all vertices, the second stack t ...

Added by LoganK on Thu, 02 Jul 2020 18:16:21 +0300

Android sesame credit access (old version)

Android sesame credit access (old version) 1. Add jar package, permission and manifest to configure activity zmxySDKALCmini_V1.01450366738902_release.jar Put it in the libs directory jurisdiction <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.perm ...

Added by essjay_d12 on Wed, 01 Jul 2020 18:25:22 +0300

JavaScript learning - Array object

Defining arrays Array objects are used to store a series of values in separate variable names. We use the keyword new to create array objects. The following code defines an array object called myArray: var myArray=new Array(); There are two ways to assign values to an array (you can add as many values as you want, ...

Added by The Swedish Tower on Wed, 01 Jul 2020 17:31:04 +0300

Analysis on the speed of inserting a large amount of data into MongoDB database

Requirement background: a certain timing task generates thousands or more JSON data. This data has not been fully written into the database, and the data of the next scheduled task has been generated. How to solve the data congestion caused by this? When spring boot is used to insert data into MongoDB database, the save method in MongoTempla ...

Added by ghettopixel on Tue, 30 Jun 2020 19:43:06 +0300

cocos2d loads plist files (frame animation)

Integrate the pictures into one large picture, reduce the picture occupancy, there are plist files and png supporting files. cocos loads plist files in two ways (queried) 1. If you load in the following way, your plist file must contain an animations node, otherwise the load will fail auto cache = AnimationCache::get ...

Added by zahidraf on Tue, 30 Jun 2020 19:21:37 +0300

tarjan algorithm board

Undirected graph Cut the edge,Cut point,Double dot,Side double Digraph Strong connectivity component,Example Undirected graph concept time stamp\(dfn[x] \), in depth first traversal, integer marks are made in the order in which each node is first accessed Retroactive value\(low[x] \), the minimum time ...

Added by kriek on Tue, 30 Jun 2020 12:48:48 +0300

A logic problem: who is the killer

Previous articles in this series: Simple implementation of logical programming language (using C ා) - 1. Introduction of logical programming language This is a classic Prolog exercise. The Chinese translation is from Ruan Yifeng's article Introduction to Prolog language. problem Mr. Boddy died of murder. There are six suspects. Each of them ...

Added by ginga8 on Tue, 30 Jun 2020 11:18:10 +0300

Spring source code interpretation of "IOC container 2-Bean loading process"

In the last article, we implemented a simple IOC container. In this article, we will introduce the implementation of Spring IOC container. 1. Preparation In order to learn the source code implementation of Spring, we need to prepare the source code environment of Spring. At this time, we generally ...

Added by djg_uk on Tue, 30 Jun 2020 09:33:14 +0300

Using javaScript to implement a queue

1. A queue is a group of ordered items following the first in first out (FIFO) principle. Elements are added at the end of the queue and removed from the top. The newly added elements must be at the end of the queue. Common examples in life, such as queuing. 2. Create a queue class class Queue{ constructor(){ this.count = 0;//Numb ...

Added by davidwhiteuk on Tue, 30 Jun 2020 08:18:42 +0300