Skip to content

Instantly share code, notes, and snippets.

@jassinm
jassinm / .ycm_extra_conf.py
Last active May 1, 2016 14:20
youcompleteme c
import os
import ycm_core
from clang_helpers import PrepareClangFlags
compilation_database_folder = ''
# These are the compilation flags that will be used in case there's no
# compilation database set.
flags = [
'-Wall',
@jassinm
jassinm / nosetests profiling
Created March 16, 2012 00:24
nosetest profiling
nosetests --with-profile --profile-stats-file=nose.prof
python -c "import hotshot.stats ; stats = hotshot.stats.load('nose.prof') ; stats.sort_stats('time', 'calls') ; stats.print_stats(20)"
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd
graylevel = 1.0 
mpl.rc('figure', facecolor = (graylevel, graylevel, graylevel), edgecolor ='r')
%pylab inline
@jassinm
jassinm / .ycm_extra_conf.py
Last active April 7, 2020 04:05
c++11 youcompleteme
import os
import ycm_core
from clang_helpers import PrepareClangFlags
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''