1// Create folder if not exist
2 $folderName = 'images/gallery';
3 $config['upload_path'] = $folderName;
4 if(!is_dir($folderName))
5 {
6 mkdir($folderName, 0777);
7 }
1// Create a directory with the permission level (optional)
2<?php
3mkdir("/path/to/my/dir", 0700);
4?>
1<?php
2// Create a directory recursively (make sure to sanitize if taken from input as always!)
3mkdir("/path/to/my/dir", 0777, true);
1sudo mkdir /usr/local/sbin
2
3what that dose is make a new file at /usr/local/sbin
1sudo mkdir /usr/local/sbin
2
3what that dose is make a new file at /usr/local/sbin
4
5
6name = "Page Financials" ; year_of_est ="2014"
7print("Company name: %s. \nYear of establishment: %s." %(name, year_of_est))
8
9
10import pandas as ap
11data = ap.DataFrame({"a":a, "b":b})
12print(data)
13
14string.ascii_lowercase #print_all_lower_case_of_alphabet
15ascii_letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
16 ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'
17 ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18 digits = '0123456789'
19 hexdigits = '0123456789abcdefABCDEF'
20 octdigits = '01234567'
21 printable = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c'
22 punctuation = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'
23 whitespace = ' \t\n\r\x0b\x0c'
24pip install ...
25min_length = 2
26
27name = input('Please enter your name:')
28
29while not(len(name) >= min_length and name.isprintable() and name.isalpha()):
30 name = input('Please enter your name:')
31
32print('Hello, {0}'.format(name))
33
34from functools import reduce
35import operator
36pd.DataFrame() ... to create a data frame
37time.perf_counter() ... Time counter
38import ta ...Technical indicator
39
40## PANDAS_TA CONTAINING 133 INDICATORS
41import pandas as pd
42import pandas_ta as ta
43df = pd.DataFrame()
44df.ta.indicators()
45