Giter Site home page Giter Site logo

dotfiles's People

Contributors

alanyee avatar gagbo avatar hedone21 avatar jdevlieghere avatar vegerot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotfiles's Issues

minor change to .ycm_extra_conf.py

Very good idea to define a function in ycm_extra_conf.py to add project's include directory and its subdirectories to compilation flags. But I think the flag variable should be initialized to ["-I" + include_path] instead of [], because we want to track headers not only in subdirectories but also in include_path.

def FlagsForInclude(root):
    try:
        include_path = FindNearest(root, 'include')
        flags = ["-I" + include_path] # flags = []
        for dirroot, dirnames, filenames in os.walk(include_path):
            for dir_path in dirnames:
                real_path = os.path.join(dirroot, dir_path)
                flags = flags + ["-I" + real_path]
        return flags
    except:
        return None

Erroneous call to FindNearest in `.vim/.ycm_extra_conf.py`

In dotfiles/.vim/.ycm_extra_conf.py the function FindNearest is sometimes called with 2 arguments instead of the 3 compulsory arguments. I don't know what to put as 3rd argument so I can't make any pull request.

Thank you for providing the file, by the way!

Finding compile db in out of source builds with YCM

Hello,

I stumbled upon your article about a better .ycm_extra_conf and I found it really great ! The only thing I missed was the possibility to keep the compile db in the not synced build folder while working with an out-of-source project. I added a few lines to FindNearest to make it look for a "build" folder each time it goes one directory up (the line starting with next_build_folder and the following 5) :

def FindNearest(path, target):
    candidate = os.path.join(path, target)
    if(os.path.isfile(candidate) or os.path.isdir(candidate)):
        logging.info("Found nearest " + target + " at " + candidate)
        return candidate;
    else:
        parent = os.path.dirname(os.path.abspath(path));
        next_build_folder = os.path.join(os.path.dirname(os.path.abspath(parent)),"build")
        if (os.path.isdir(next_build_folder)):
            if re.search("build",path):
                logging.info("NOT doing twice " + path + " folder")
            else:
                return FindNearest(next_build_folder ,target)
        if(parent == path):
            raise RuntimeError("Could not find " + target);
        return FindNearest(parent, target)

Linux alias ip shadows ip program

On linux there is actually a program called ip which is used to manage networking.

The alias ip shadows this. You might want to change the ip alias to something like ipof.

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.