Install the quick code writing plug-in emmet and html syntax

1. Emmet installation method: Step 1: First you need to install the Package Control component for sublime text: Press Ctrl + `to call out the console of sublime text Paste the following code into the bottom command line and press Enter: import urllib2,os;pf=’Package Control.sublime-package’;ipp=sublime.installedpackagespath();os.makedirs(ipp) if not os.path.exists(ipp) else None;open( os.path.join(ipp,pf),’wb’).write(urllib2.urlopen(‘http://sublime.wbond.net/’ + pf.replace(‘ ‘,’ ‘)).read()) Restart […]

Qt uses QAxObject to write to Excel tables for color filling, merging cells, multi-line writing, etc.

Qt uses QAxObject to write to Excel tables, including color filling, merging cells, multi-line writing, etc. QAxObject can call various functions or events in the Excel table to control reading and writing Excel tables. All interfaces in the Excel table can be viewed in the official documentation. Source code can be seen at the end. […]

[C++ rewriting the bottom layer of Skynet 03] skynet actual combat—insertion and pop-up of global message queue, imitating skynet sending messages, message transmission and message processing between services

Directory of series articles [C++ Rewriting Skynet Bottom Layer 01] Skynet Practical Combat-sunnet basic framework, create, open, wait for thread exit methods, imitate skynet to write message classes [C++ Rewrite Skynet Bottom Layer 02] Skynet Practical Combat-Imitating Skynet to write service classes, object management under multi-threading, spin lock mutex program writing, hash table management objects, […]

[C++ rewriting the bottom layer of Skynet 01] skynet actual combat—sunnet basic framework, create, start, wait for thread exit methods, imitate skynet to write message class

[C++ Rewriting Skynet Bottom Layer 01] Skynet Practical Combat-sunnet basic framework, create, open, wait for thread exit methods, imitate skynet to write message classes [C++ Rewrite Skynet Bottom Layer 02] Skynet Practical Combat-Imitating Skynet to write service classes, object management under multi-threading, spin lock mutex program writing, hash table management objects, and summary of program […]

Writing and reading operations of C language files

fopen FILE * fopen ( const char * filename, const char * mode ); Function: Opens the file whose name is specified in the parameter filename and associates it with the stream, which can be identified in future operations by the returned FILE pointer. The operations allowed on the stream and how they are performed […]

python file reading and writing

Reading and writing files are the most common IO operations. The functions of reading and writing files on the disk are provided by the operating system, and modern operating systems do not allow ordinary programs to directly operate the disk. Therefore, reading and writing a file means requesting the operating system to open a file […]

Writing and using HDFS Java API

First Need to set up a Hadoop environment and start Hadoop If you haven’t built it yet, you can read this article: Hadoop cluster construction and configuration-CSDN Blog Here I use the idea under windows to connect the Hadoop of the virtual machine (1) Install hadoop under windows The installed Hadoop needs to be the […]

Spring – Handwriting simulates the underlying principles of Spring

Handwritten Spring Define configuration class AppConfig @ComponentScan(“com.spring.zsj”) public class AppConfig { @Bean public ApplicationListener applicationListener() { return new ApplicationListener() { @Override public void onApplicationEvent(ApplicationEvent event) { System.out.println(“An event was received” + event); } }; } } Define container ZSJApplicationContext public class ZSJApplicationContext { private Class configClass; private Map<String,BeanDefinition> beanDefinitionMap =new HashMap<>();//bean definition private Map<String,Object> singleObjects […]