Coder Social home page Coder Social logo

chmodutil's Introduction

Tool description


JAVA PACKAGE

  • FilterAnnotationUtil.javaIs a tool for filtering file notes,The main filtration and two kinds of notes /**/ //. Call this methodString filterContent(URL url),URL path to the file
FilterAnnotationUtil.Instance().filterContent(fileUrl)

Thanks for Alienero's ideas

  • ReadWriteLockOfLockSimpleReadWriteLockCanAccessThese two classes are read and write lock implementation, the former is relatively simple to achieve, the latter is relatively complete,Basically realize the read / write lock can be re entered,Read lock upgrade, write lock degradation and other functions。Of course, the gap is still very large and JDK,Just to provide you with a learning idea。readwritelock.examplePackage is an example.
public void run() {                                                                
         if (!isWrite){                                             
             readWrite.readLock();                                  
             try {                                                  
                 Thread.currentThread().sleep(5000);              
             } catch (InterruptedException e) {                 
                 e.printStackTrace();                              
             }                                                  
             readWrite.unReadLock();                          
         }else{                                                 
             readWrite.writeLock();                                             
             try {                                                   
                 Thread.currentThread().sleep(3000);             
             } catch (InterruptedException e) {                     
                 e.printStackTrace();                        
             }                                                          
             readWrite.unWriterLock();                                               
         }                                                                              
     }                                                                                  

Python PACKAGE

  • python-db.pyIs a package of SQL tools.Use it(see below)
from DBUtils.PooledDB import PooledDB
#CRUDExceptSelect Can execute SQL CRUD
#The last parameter indicates whether is batch,the first is your SQL,the second is your value arrays
k=[['wo222ijoi'],['1231231']]
print CRUDExceptSelect(sql='insert into user (name) values(?)',kw=k,batch=True)

chmodutil's People

Contributors

yaccc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.