2020

    02

    Draw maps

    Before you start to draw maps with python, you first need to install basemap and pyshp.

    Install Basemap of Python(Linux)

    Basemap is a plug-in of matplotlib. Matplotlib is a drawing library that helps to draw data in multiple ways using python. And Basemap is used to draw maps. The followings are steps to install basemap.

    CodeForces-1296 C Yet Another Walking Robot

    Stimulate the walking process. Using map, int> to store the points. (The second parameter of map stands for the times of the move, that is the position in the string where it meets a certain points)

    CodeForces-1296 B Food Buying

    This is stimulating the process. First, spend the money of multiples of ten. Spend the most at once. Second, add up the rest and feedback money.

    CodeForces-1296 A Array with Odd Sum

    If there is no odd number, then no matter how to move it will stay all even, so it's NO.

    01

    Git Commands

    Just because I want to solve a problem while setting my gitee(It needs to input user name and password every time I deploy my Blog), a friend let me study git first so that I can understand what the bug is telling about!!! (not for solving the problem, I learn it just for understanding the alert ㅍ_ㅍ…) Life is so hard…

    I’ll just record some commonly used commands.

    Make previous windows blog available on Linux

    While using windows, I have already had a blog and using hexo system. And my blog is on my mechanical hard disk. I want it to be accessible while using Linux.

    There are two steps to make it.

    Absolute path and Relative path

    There are two ways to represents a directory, Absolute path and Relative path.

    path start start sign
    Absolute root directory /
    Relative current directory ~

    How to mount mechanical hard disk on Linux

    I’ve met a new problem recently: I switched into Linux but my Blog folder is under my mechanical hard disk. I want my Blog folder available to be achieved by command not manually. So to make this come true, I learned a word mount. By using mount, you can use my blog folder by command. There are three steps:

    1. create a new folder
    2. mount the disk
    3. make it mount automatically as long as booting Linux


TOP
COMMENT
made with ❤️ by o_oyao
©o_oyao 2019-2024

|