configuration files with sensitive information, such as the configuration files that store passwords.
For example:
For example, if you are developing python in windows, Windows will automatically generate hidden thumbnail files under the directory with images. If there is a custom directory, there will beDesktop. iniTherefore, you need to ignore the garbage files automatically generated by Windows:
# Windows:Thumbs.dbehthumbs.dbDesktop.ini
Then, continue to ignore. PyC,. Pyo,DistAnd other file
Here we will sort out the js methods used in my previous project. They are all very common javascript methods. I believe our friends can also use them frequently. Here we will sort them out and share them with you.
Verify whether the image format is used
The Code is as follows:
Function IsImgType (src ){Var rFilter =/^ (? : Image \/bmp | image \/cis \-cod | image \/gif | image \/ief | image \/jpeg | image \ /pipeg | image \/png | image \/svg \ + xm
This array contains common MIME types, and if you need to do a file download, you can view the file extension from this array to determine if you can download
$mime _types = Array ("323" = "text/h323",
"Acx" = "Application/internet-property-stream",
"AI" = "Application/postscript",
"AIF" = "Audio/x-aiff",
"AIFC" = "Audio/x-aiff",
"AIFF" = "Audio/x-aiff",
"ASF" = "video/x-ms-asf",
"ASR" = "video/x-ms-asf",
"ASX" = "video/x-ms-asf",
"Au" = "a
Most websites now have the "run code" function, which has been implemented for a long time. However, when I was working on a project recently, I found that some of them need to be refreshed to see the results, the solution is very simple. You can see the following code:Function runCode (cod1 ){Cod = document. getElementById (cod1)Var code = cod. innerText;Var newwin = window. open ('','','');Newwin. opener
3.3. Data TypesJava is a strongly typed language (strongly typed voice). This means , every variable must has a declared type (each variable must declare a type). There is eight primitive types in Java (Java has 8 primitive types). Four of them is integer types; Floatingpoint number types; One is the character type char, used for code units in the Unicodeencoding scheme; and one is a Boolean type for truth values.3.3.1. Integer TypesThe integer types is for numbers without fractional parts (deci
1. Why use a Python virtual environmentThe actual work, we touch the Python version and the relevant version of the Web framework is often different, such as some combinations may be python2 + Django1.8, some may be python3.6 + Django1.12, two is OK, I installed two versions of P on the computer Ython not good?However, if you have 5678 projects, you need 5678 sets of Python environments? This is the turn of the virtual environment.2. Download and installVirtual Image:Download the image of Tsingh
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.