Tag:colon

  • Shell variable advanced usage

    Time:2021-6-13

    Variable replacement and testing Variable substitution grammar explain ${variable name # matching rule}} Dependent variablestartRule matching will meet the most important requirementsshortData deletion for ${variable name # matching rule}} Dependent variablestartRule matching will meet the most important requirementslongData deletion for ${variable name% matching rule}} Dependent variabletailRule matching will meet the most important requirementsshortData deletion for […]

  • Question mark statement

    Time:2021-4-28

    #include<iostream> using namespace std; int main(void) { int a = -1; a > 0 ? a = a : a = -a; cout << a; return 0; } The output is 1 Question mark statement means whether the statement before the question mark is true. If it is true, the statement before the colon will […]

  • The detailed use of V-model in vue3. X

    Time:2021-4-18

    1. When used to customize components, the prop and default event name of V-model are changed, and the model option is removed //Parent component Bound value: {message}} //Subcomponents export default { //2. X usage, you can modify the prop and trigger the event name, model to discard // model: { //Prop: ‘value’, // the default […]

  • Some usages of dataframe

    Time:2021-4-18

    Some usages of dataframe in pandas Pandas reading excel file pd.read_excelThe prerequisite is to install the xlrd library Conversion between dataframe, numpy and list Dataframe to numpy: dataframe object. Values Dataframe to list: dataframe object values.tolist () List to numpy: np.array (list object) List to dataframe: pd.DataFrame (list object) Numpy to list: numpy object. Tolist […]

  • Learn docker and install mysql8

    Time:2021-3-29

    Install docker yum install -y docker.ioyum install -y epel-release Modify docker image after installation My side is CentOS 7.5, so modifying the image configuration is in the/etc/docker/daemon.jsonincrease { “registry-mirrors”: [“https://id.mirror.aliyuncs.com”] } Other systems search by themselves Install MySQL Search the MySQL image, or install the latest version directlydocker search mysqlPull imagedocker pull mysql:latestThe installation is […]

  • Interesting things about regularity

    Time:2021-3-15

    -Sublime is a text editor, socolonIt’s not the beginning of a string, it’s a text character.-The colon doesn’t need to be escaped, and the equal sign doesn’t need to be escaped-ABC $matches the ABC ending with ABC, not the whole string with ABC ending. It is a substring. If you want to match with something, […]

  • [CSS advanced] skillfully use pseudo elements before and after to create gorgeous effects

    Time:2021-2-8

    original:Tell me Jen to hideSource:Do you think about itLink:Skillfully use pseudo elements before and after to make gorgeous effect The so-called “pseudo element” is a page element that does not exist in itself. There are no such elements in the HTML code, but when the page is displayed, you can see that these elements that […]

  • A case study of beautifying forms with valid and invalid pseudo classes

    Time:2020-12-23

    design sketch form <span style=”background-color: #f5f5f5; color: #800000;”> .container</span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”>margin</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”>100px</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span><span style=”background-color: #f5f5f5; color: #ff0000;”>position</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”> relative</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span><span style=”background-color: #f5f5f5; color: #ff0000;”>font-size</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: […]

  • Vscode regular substitution

    Time:2020-12-18

    for instance:Before replacement Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: https://movie.douban.com Cache-Control: must-revalidate, no-cache, private Connection: keep-alive Content-Encoding: br Content-Type: application/json; charset=utf-8 Date: Tue, 08 Dec 2020 08:12:04 GMT Expires: Sun, 1 Jan 2006 01:00:00 GMT Keep-Alive: timeout=30 Pragma: no-cache Server: dae Set-Cookie: bid=QfmDsWrTsvE; Expires=Wed, 08-Dec-21 08:12:04 GMT; Domain=.douban.com; Path=/ Strict-Transport-Security: max-age=15552000 Transfer-Encoding: chunked X-Content-Type-Options: nosniff X-DAE-App: talion X-DAE-Instance: […]

  • Vscode tool settings

    Time:2020-11-29

    One window.zoomLevel : sets the font size window scaling for the sidebar2 Ctrl + P: search files by file name3 Ctrl + P enter colon, enter line number to quickly locate the specified line

  • Solution to start crash of MAS / MAS dev packaged by electronic builder

    Time:2020-10-12

    If an electronic application is to be published to the app store, it needs to be packaged with electronic Builder (the target must be MAS) and then uploaded to the app store connect after being signed. Before uploading, the application needs to support sandbox, but after signing, if the com.apple.security If. App sandbox is true, […]

  • Get last opened directory

    Time:2020-9-23

    The path is simply saved to the CSV file, and is directly obtained next time. Call method: try { dialog.SelectedPath = FolderPathHelper.GetLastPath (“9009”, “menu 1″); } catch (Exception ex) { Log ($”failed to get path:{ ex.ToString ()}”); #if DEBUG throw ex; #endif } try { FolderPathHelper.SavePath (“9009”, “menu 1”, “C: \”); } catch (Exception ex) […]