1. config git

    Git saves your system config in /etc/gitconfig , user config in ~/.gitconfig or ~/.config/git/config and repository config in .git/config

    Each config will override the previous one so the repository config will override the other config

    Config your username and email:

    $ git config --global user.name "fx-moon"
    $ git …
    Tagged as : git
  2. strlen_analyze

    #include <iostream>
    
    #include <vector>
    
    #include <string>
    
    #include <stack>
    #include <ctime>
    #include <windows.h>
    
    const int n = 1024*1024*500;
    
    using namespace std;
    class timer
    {
        long long t;
    
      public:
        timer()
        {
            t = clock();
        }
        ~timer()
        {
            cout << clock() - t << endl;
        }
    };
    size_t strlen1(const char *str)
    {
        register int length = 0;
    
        while (*str++)
    
            ++length;
    
        return (length …
    Tagged as : program analyze
  3. Very Simple Powershell

    Basic Powershell

    Variable

    $<name>=<value>

    $usrname='John'
    $len=32
    

    $null -> null value

    $true -> boolean true

    $false -> boolean false

    $_ -> the variable currently being processed

    Data Structure

    Array

    $var[email protected](<element>,<element>,...)
    $var[0]
    $var[100]=2333
    

    Hash Table

    $var[email protected]{<key>=<value>,...}
    $var[<key>]
    $var.key
    

    Process Control

    Branch

    if()
    {
        ...
    }
    elseif()
    {
        ...
    }
    else …
    Tagged as : powershell
  4. boost learning note (1) getting started on Windows

    1 Get boost

    just find a copy on https://www.boost.org

    2 The boost distribution

    boost_1_67_0\ .................The “boost root directory”
       index.htm .........A copy of www.boost.org starts here
       boost\ .........................All Boost Header files
       lib\ .....................precompiled library binaries
       libs\ ............Tests, .cpps, docs, etc., by library
         index.html ........Library …
    Tagged as : boost
  5. try pelican

    try pelican

    I just forget the usage again and again,so I decided to WcRoIpTyE it=.=

    getting start

    installing

    Pelican currently runs best on Python 2.7.x and 3.3+; earlier versions of Python are not supported.

    You can install Pelican via several different methods. The simplest is via …

    Tagged as : pelican
  6. git learning note

    git learning note


    git init

    This creates a new subdirectory named .git that contains all of your necessary repository files — a Git repository skeleton. At this point, nothing in your project is tracked yet.

    git add

    If you want to start version-controlling existing files (as opposed to an empty directory …

    Tagged as : git

Pages