C# Running JavaScript with MsieJavaScript Engine Engine Engine Engine

A js script engine code generator is implemented with this tool, which has little information in the research. I will explain it according to my own application. If there are any mistakes, please point out the discrepancies.   Using Nuget to install MsieJavaScript Engine I used version 3.0.3.0.   Add using 1 using MsieJavaScriptEngine; ...

Posted by businessman332211 on Tue, 23 Jul 2019 23:41:37 -0700

python learning notes multithreading, thread lock, daemon thread, multiprocess, thread pool, jsonpath module, faker module

1. Multithreading ''' Process: For the operating system, a task is a Process, such as opening a browser is to start a browser Process. Opening a notepad starts a notepad process, opening two notepads starts two Notepad processes, and opening a Word starts the process. A Word process. A process is a collection ...

Posted by pepperface on Tue, 23 Jul 2019 21:16:33 -0700

Docker Learning Notes: Installation and Basic Usage

I. Installation 1.1 Install docker-ce on centos7 Check system and kernel version [root@myhost img1]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) [root@myhost img1]# uname -r #Kernel version must be above 3.10, centos7 just meets. 3.10.0-514.21.1.el7.x86_64 Execute the following commands in turn #Adding Pac ...

Posted by steelerman99 on Tue, 23 Jul 2019 19:50:23 -0700

Simple operation summary of linear regression, logistic regression and svm based on sklearn

Some basic operations of AI algorithm based on sklearn Some related libraries in sklearn s Import the libraries of these related algorithms separately import pandas as pd #Import a container for reading csv data from sklearn.model_selection import train_test_split #Modules for data set partitioning from sklearn.model_selection import GridSearch ...

Posted by JukEboX on Tue, 23 Jul 2019 17:41:29 -0700

spring Framework Learning-aop-Annotation

Preface aop in annotation mode needs several new annotations 1.@Aspect// indicates that this is a faceted class 2. @Pointcut ("execution (* com.cong.service.AccountService Impl. *(.))")// pointcut expression   private void accountPointcut(){} 3. @Before (value = accountPointcut())// Pre-notification annotation, the parenthese ...

Posted by jamest on Tue, 23 Jul 2019 11:48:48 -0700

2019 hdu multi-school first scene

2019 Multi-University Training Contest 1 A Significance: Four colours are dyed for a sequence of length n, with m restrictions. There are exactly (x_i) colours in each shape ([l_i,r_i]) interval. Ask the number of legitimate plans. \ (n, mle 100) key: dp In fact, the idea is simple, the main problem is how to record the state to express this li ...

Posted by phpchamps on Tue, 23 Jul 2019 11:40:44 -0700

golang: function & array & slice & lock

Built-in function // 1. close: mainly used to turn off channel // 2. len: For length, such as string, array, slice, map, channel // 3. new: Used to allocate memory, mainly for value types, such as int, struct.Return is pointer // 4. make: Used to allocate memory, mainly to allocate reference types such as chan, map, slice // 5. append: u ...

Posted by chris270 on Tue, 23 Jul 2019 09:40:41 -0700

Algorithmic Basis-Enumeration

Enumeration: A Stylistic Solution Strategy Based on Attempting to Answer One by One 1. Perfect Cube Title Description: Equations such as a^3= b^3 + c^3 + d^3 are called perfect cubic equations. for example 12 ^ 3 = 6 ^ 3 + 8 ^ 3 + 10 ^ 3. Write a program to assign a positive integer N (N < 100), look for all quaternions (a, b, c, d), ...

Posted by Sinikka on Tue, 23 Jul 2019 08:50:32 -0700

GSON Source LinkedTreeMap Learning

In the process of learning GSON, LinkedTreeMap, the basic data type of GSON, was discovered, so learning was started. private final LinkedTreeMap<String, JsonElement> members = new LinkedTreeMap<String, JsonElement>(); LinkedTreeMap, everything is so familiar. In jdk, there are LinkedMap, TreeMap and TreeMap. What is ...

Posted by Luvac Zantor on Tue, 23 Jul 2019 08:41:08 -0700

USACO 2019 January Contest, Platinum Problem Solution

Problem 1. Redistricting Consider (H) as (+1), (G) as (-1), and get a prefix and array (sum_i) Note (dp_i) For the answer when (i), dp_i=min (dp_j+[sum_i-sum_j\\\\leq 0]\ The direct (dp) time is (O(nk), and the time complexity of monotone queue optimization is reduced to (O(nlog_2k) Note that monotone queues are double-keyed, with the first key ...

Posted by zildjohn01 on Tue, 23 Jul 2019 05:52:17 -0700