【GDScript】Properties of Design Items
Godot 3.2.4 In the game, we can directly set the attribute of the design item to aResource(resource file), so that we can easily design each item as a resource file of the same type but not the same file, and then place it on the item. We first design the properties of the item and cr
【GDScript】Drag and drop of items
Godot 3.2.4 Then the last article ( [GDScript] Designing Item Properties ) began to do We started to add drag and drop functions to the items, and started adding the following code to the script of the Goods node var drag_source # Used to record the last dragged node (exchange data t
[GDScript] Load csv file and convert to dictionary
Godot 3.3 rc6 The data stored in Excel cannot be directly saved as a json format file. If you want to save it, you need to install a plug-in, which is more troublesome. But it can be directly saved as a csv file. I use the WPS table as a demonstration, and write the following two line
【GDScript】Equipment Bar
Godot 3.2.4 rc3 Following the drag and drop of the previous [GDScript] item , we started to make the equipment bar . Before we start , add two signals to the Goods.gd script.swap_goodsThe method sends a signal to determine whether the item has changed. The modified code is as follows:
【Godot】Load file data
Godot 3.3 rc6 Then the last tutorial [GDScript] equipment bar We started to load the item data. The previous way of using resources was to load a small amount of data. If it is a large amount of data, it is inevitable to load the data in the file. For the code of loading data, see th
Time series data modeling predicts new coronavirus
The first article : I am Octopus, the name comes from my Chinese name - octopus; I love programming, algorithms, and open source. All the source code is in my personal github  ; this blog is to record the bits and pieces of my learning, if you are interested in Python, Java, AI, and algorithms, you can follow my news, learn together, and make progress to
Get file size in python _how to get file size in python
get file size in python We can get file size in Python using the os module. We can get the file size in Python using the os module . File Size in Python The python os module has stat() function where we can pass the file name as argument. This function returns a tuple structure that contains the file information. We can then get its st_siz
Python paramiko realizes real-time file synchronization (1)
      Related articles: python paramiko implements automatic file upload based on ssh (2) , resource directory The professional version of the pycharm sftp file synchronization tool is used to being used. The company should avoid using the cracked version of the software and replace it with the free version. There is no ssh file synchronization function, u
Raspberry Pi Change WiFi Information
method one: When burning the system, create it under the TF card/boot partitionwpa_supplicant.confdocument country=CN ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1network={ ssid="TP-LINK" psk="123456" priority=2}network={ ssid="link_010" psk="12345679" priority=3}   Explanation of special terms: ssid: SSID of
Python convert integer to hexadecimal string
We want to convert an integer data into a string. The common way is to use str() directly, but sometimes we want to convert it into hexadecimal string form, such as 125 to'0x7D'This, the following two methods to achieve this goal, 1. Using hex() data = 125 print(hex(data)) 12 The print is
Use flutter_inappwebview to load remote html files in Flutter
1. Install the plugin  Configure  the flutter_inappwebview  plugin. dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter date_format: ^1.0.6 flutter_cupertino_date_picker: ^1.0.26+2 flutter_swiper: ^ 1.1 . 6 fluttertoast: ^7.1.6 http: ^0.12.2 part: ^ 3.0 . 10 flutter_html: ^1.1.0 # Load remote HTML plugin flutter_inap
Verify that a method or property exists in a js object
1. Take window as an example, enter window in the console 2. The verification method takes WebSocket as an example if (window.WebSocket) { console.log('WebSocket');} if (typeof(window.WebSocket) === 'function') { console.log('WebSocket');} if (window.WebSocket instanceof Function) { console.log('WebSocket');} window.hasOwnProperty('WebSocket')
Flutter Dart regular RegExp interval [A-z0-9], [\s\S], \w (two)
Qingqing Zijin, you take my heart away, but for your sake, I have been pondering until now. ——Cao Cao DartPad Online Tools  [AZ], [az], [0-9] matching interval 1. Match uppercase letters AZ or lowercase letters  az   ( including A, Z, a, z )  2. Match A-Za-z (Az | aZ): including uppercase or lowercase letters
The performance of these commonly used official Go libraries is not as good as that of the third-party open source libraries
The official library of the Go language has always given us the impression that it is powerful and easy to use. However, no gold is enough, and no one is perfect. In some performance-critical scenarios such as json parsing, the performance of some official libraries is not satisfactory. This article introduces several open source libraries that are benc
Deployment and installation of Nakama on Centos
The deployment and installation of Nakama in Centos, this article is my practice record, please leave a message to correct me if there is any mistake, thank you What is Nakama Nakama is an open source , distributed server that supports multi-platform apps and real-time games 1. Install Do
Flutter issue log
Documenting  small problems encountered while struggling with Flutter 1  Navigator  Routes  GestureDetector Question 1: I/flutter (19058): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════I/flutter (19058): The following assertion was thrown building Setting(dirty, state: _SettingState#e1f3d):I/flutter (
[Flutter] Classes and objects in Dart
1. Write in front Introduced in the previous articleDartmiddleanonymous function,Closure, then continue to study nowDartmiddlekindandobjecthow it is defined and used. [Flutter] Apple Mac computer configuration flutter development environment [Flutter] Android Studio installs a third-part
[Flutter] Anonymous functions and closures in Dart
1. Write in front Introduced in the previous articleDartThe optional parameters in the method, the method is passed as a parameter , then continue to learn nowDartmiddleanonymous function,Closure. [Flutter] Apple Mac computer configuration flutter development environment [Flutter] Androi
[Flutter] Optional parameters and methods in Dart's methods are passed as parameters
1. Write in front Introduced in the previous articleDartmethod and arrow function , then continue to learn nowDartOptional parameters in the method, the method is passed as a parameter . [Flutter] Apple Mac computer configuration flutter development environment [Flutter] Android Studio i
[Flutter] Dart's method and arrow function
1. Write in front Introduced in the previous articleDartArrays of primitive data types (list) and a dictionary (Map), then continue learning nowDartHow to represent methods and functions in the basic grammar of . [Flutter] Apple Mac computer configuration flutter development environment
[Flutter] Dart's data type list&Map (array and dictionary)
1. Write in front Introduced in the previous articleDartString in primitive data type string, then continue to study nowDartArrays in the base syntax of (list) and a dictionary (Map). [Flutter] Apple Mac computer configuration flutter development environment [Flutter] Android Studio inst
[Flutter] String of Dart data type
1. Write in front Introduced in the previous articleDartNumeric types in the primitive data types of ,on onetypes (int and double), then continue learning nowDartThe basic syntax of the string typestring. [Flutter] Apple Mac computer configuration flutter development environment [Flutter
[Flutter] num of Dart data type
1. Write in front Introduced in the previous articleDartofwas,finalandconstgrammar and usage, then continue to learn nowDartThe basic grammar of it! [Flutter] Apple Mac computer configuration flutter development environment [Flutter] Android Studio installs a third-party emulator - Netea
[Flutter] Basic use of var, final and const in Dart
1. Write in front In the previous article, the environment installation and configuration of [ Flutter ], as well as the solutions to some problems encountered, will be officially opened now.dartgrammar learning! [Flutter] Apple Mac computer configuration flutter development environment
[Flutter] How to create a new project and run your first flutter project
📝【Flutter】Learning to develop a mind, 【Necessary knowledge for programmers】 📔 Today’s little knowledge——flutterRun the project in action! 1. Create a new project from the terminal command line existflutterBefore creating a new project, let's run itflutter doctorcommand to check your own