Today, I saw my colleagues in the Group talking about the last verification code of the EAN-13 standard bar code, so I wrote this algorithm with js. Today's Monday is the beginning of a week. I wish you a good mood every day!
/*
The calculation steps of the last digit verification code of the
1. In NiceLabel Pro, click bar code creation in the left-side toolbarClick the button and click the location where the bar code is to be placed. Switch the pop-up bar code dialog box to the "bar code" tab and click "define ".2. The edit bar code dialog bo
/**
* Product Check code algorithm
* EAN-13 Barcode Algorithm
* The first 12 digits of the odd digits and C1
* The first 12 digits of the parity and C2
* will be odd and even and three times times the sum * to
take the result of the single digit, to 10 remainder (If the single-digit number is 0, then the checksum code is not 10, but 0)
* @author
Tags: des style http ar io color using SP for1. Code quality Check Tool FindBugs and simian (Baidu Network disk share address). 2. Use ant integration.(Ant primer outer chain). 3. Execute the file. Staticcheck.xmlname="Staticcheck"default="Check" basedir=".. /">name="src"value="${BASEDIR}/SRC"/> name="Classes"value="${basedir}/webcontent/web-inf/classes"/>name="Staticcheck.home" value="${basedir}/staticcheck"/>name="Findbugs.home"value="${staticcheck.
The Code checker can help us check for some hidden bugs, and sonar is the better one in the Code checker tool. WebsiteSonar OverviewSonar is an open platform for code quality management. Through the plug-in mechanism, Sonar can integrate different test tools,
Introduced
When you use Google or Baidu search, enter the search content, Google can always provide a very good spelling check, such as you enter speling, Google will immediately return to spelling.Here is a simple, but full-featured spell checker implemented with 21 lines of Python code.
Code
Import Re, collectionsdef words (text): Return Re.findall (' [a-z]+ ',
The 21-line python code is a simple but complete spelling checker. If you are interested, refer to it.
Introduction
When you use Google or Baidu to search for content, Google always provides excellent spelling checks. For example, if you enter speling, Google will return spelling immediately.The following is a simple but complete spelling checker implemented usi
PMD is a Java program code checker that is released using the BSD protocol. The tool can check whether the Java code contains unused variables, contains empty fetch blocks, contains unnecessary objects, and so on. The software is powerful and highly efficient, and is a good helper for Java programmer Debug. the supported editors for PMD include:JDeveloper, Eclips
long, you can not let it output the report section, first, according to the Source Code Analysis section to find out the problem in the code. Use the option "–reports=n".
2. Use the option "–include-ids=y". You can get the ID of each piece of information in the Source Code Analysis section.
Listing 6. Using the results of pylint–reports=n–include-ids=y dw.py
Mo
state of the file
The structure of each class
Each version number controls the range of the system
We are able to configure the lint using these methods:
Configuration in Android Studio preferences: 7.14 Configure code review rules
Lint.xml file configuration: "7.17 in lint.xml file configuration lint Check"
Configuration in Build.gradle file: "7.18 configuring Lint Check in Gradle"
Configuring the 7.21 lint Check in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.