Reconstructing a jquery-based project based on angular Js

Preface All the projects in the company are based on jQuery library. Seriously, jQuery is really the Opium in scripts. Once it happens, it's really hard to quit. When I was studying in school, I didn't know much about the big js plug-ins outside. Native scripting almost immediately uses jquery. As a result, I am lazy to write scripts natively ...

Posted by gregzor on Thu, 18 Apr 2019 16:30:33 -0700

Plug-in Skin Change Framework - setContentView Source Reading

1. overview The first phase of the content segment sub-architecture has been updated, and later we mainly focus on google source code. Today I'll show you the source code of setContentView. Please first see if you print a TextView from Activity and a TextView from AppCompatActivity. Inherit from Activity: android.widget.TextView{ac5cd1 ...

Posted by chaking on Thu, 18 Apr 2019 15:45:33 -0700

Thread pool for source code analysis of java.util.concurrent package

The diagram of the main classes of the Executor interface in the concurrent package is as follows: Executor Executor interface is very simple, that is, to execute a Runnable command. public interface Executor { void execute(Runnable command); } ExecutorService The ExecutorService interface extends the Executor interface, adds state ...

Posted by stanleycwb on Thu, 18 Apr 2019 00:39:34 -0700

PostSharp is used in. NET project and MemoryCache is used to process (transfer) caches.

A previous essay< Using PostSharp in. NET Project to Realize AOP Aspect-Oriented Programming Processing > This paper introduces the use of PostSharp framework. Using PostSharp can bring me a lot of convenience and advantages, reduce code redundancy, improve readability, and can more elegantly realize the processing of routine business sce ...

Posted by Divine Winds on Wed, 17 Apr 2019 22:42:34 -0700

Using vs2013 to call caffe's c++ interface directly under Windows

1 Overview Because of the most urgent need for flame detection, at first, we thought about using traditional machine learning algorithm to do it. Later, we found that the current flame detection is based on color. In actual scenes, there are often serious false alarms due to the external effects of street lights and the sun. Later, we decided ...

Posted by Cogen2 on Wed, 17 Apr 2019 10:06:33 -0700

Drupal 8 renames uploaded Chinese name files

The complete module code file is on Coding.net. If you want to use it directly, please download it: https://coding.net/u/yamus/p/... Recently, when Drupal8 was deployed to Windows platform, it was found that uploading files with Chinese names would be wrong. The relevant modules were found, and the error remained after installation. Later, it w ...

Posted by Deivas on Wed, 17 Apr 2019 02:27:32 -0700

Four Operations Based on GUI

Four Operations Based on GUI Li Zhiqiang 201421123028 Lian Yonggang 201421123014 Lin Dialect 201421123023 Coding address https://git.coding.net/lizhiqiang0x01/GUI-sizeyunsuan.git I. Brief description of Title requirements: 1. In addition to integers, four operations of true fraction should be supported, such as 1/6 + 1/8 = 7/24. 2. Operators a ...

Posted by Vincent III on Tue, 16 Apr 2019 16:54:32 -0700

Javascript Object Creation Method

create object 1.1 Creation through Object Objects var person = new Object(); person.name = "Albert"; person.sayName = function(){ console.log(this.name) } 1.2 Create by Literal Quantity var person = { this.name = "Albert"; this.sayName = function(){ console.log(this.name) } } Object and literal creation issues: A lot of ...

Posted by swizenfeld on Tue, 16 Apr 2019 12:12:32 -0700

Thread Synchronization under Windows (Mutex)

Usage method: 1. Create a mutex. 2. Open an existing mutex. 3. Obtain ownership of mutexes: WaitForSingleObject, WaitForMultipleObjects and other waiting functions... (may cause obstruction); 4. Release Mutex; 5. Close the mutex: CloseHandle; Function prototype: HANDLE WINAPI CreateMutex( __in_opt LPSECURITY_ATTRIBUTES lpMutexAttri ...

Posted by RecoilUK on Tue, 16 Apr 2019 02:03:32 -0700

A Brief Talk on the Layout of EXTJS

1.fit layout In fit layout, child elements will automatically fill the entire parent container. Note: In fit layout, setting the width of its child elements is invalid. If multiple components are placed in the fit layout, only the first child element is displayed. A typical case is when a client requests a grid component to be placed in a wind ...

Posted by cristiano on Mon, 15 Apr 2019 09:54:32 -0700