Skip to content

Instantly share code, notes, and snippets.

View jcelerier's full-sized avatar
🏳️‍🌈
bash the fash

Jean-Michaël Celerier jcelerier

🏳️‍🌈
bash the fash
View GitHub Profile
@jcelerier
jcelerier / gist:0f170a9446f3a9419848
Created April 4, 2015 18:26
Sort TODO's by chronological order in git
git grep -n TODO | while IFS=: read -r file line junk; do git --no-pager blame --line-porcelain -L "$line,$line" -- "$file" | grep -v 'previous' | awk 'NR==4 || NR==12' | sed 'N;s/\n/ /' ; done | sort -k 2
@jcelerier
jcelerier / gccsegfault.cpp
Created August 30, 2015 07:24
GCC segfault
This file has been truncated, but you can view the full file.
# 1 "/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp"
# 1 "<interne>"
# 1 "<ligne-de-commande>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<ligne-de-commande>" 2
# 1 "/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp"
# 1 "/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.hpp" 1
# 1 "/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Document/Constraint/ConstraintModel.hpp" 1
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <array>
#include <memory>
#include <boost/range/algorithm.hpp>
using std::string;
using std::vector;
using std::array;
@jcelerier
jcelerier / openmp-FasterGameOnHeap.cpp
Last active September 14, 2016 21:58 — forked from jackmott/FasterGame.cpp
Faster Game CPP
#include <cstdio>
#include <cstdlib>
#include <chrono>
#include <random>
#include <thread>
#include <cmath>
#include <string>
#include <vector>
#include <array>
#include <map>
#include <boost/container/flat_map.hpp>
#include <unordered_map>
#include <string>
#include <chrono>
#include <iostream>
#include <vector>
#include <experimental/string_view>
const auto strings = {"token0", "foobar", "bee happy, very happy, very very happy", "", "12345"};
@jcelerier
jcelerier / gist:4d2d96d1d3374212f93298d5300f8d36
Created September 13, 2018 08:14
gnu gold flto / threads error
This file has been truncated, but you can view the full file.
# 1 "/home/jcelerier/score/API/OSSIA/ossia-python/ossia_python.cpp"
# 1 "<interne>"
# 1 "<ligne-de-commande>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<ligne-de-commande>" 2
# 1 "/home/jcelerier/score/API/OSSIA/ossia-python/ossia_python.cpp"
namespace pybind11
@jcelerier
jcelerier / keybase.md
Created October 7, 2018 09:59
keybase.md

Keybase proof

I hereby claim:

  • I am jcelerier on github.
  • I am jcelerier (https://keybase.io/jcelerier) on keybase.
  • I have a public key ASDuDRC91oz2RnzMRILX_bEBhwij8X7y743yFFAonD2rcQo

To claim this, I am signing this object:

Determining if the include file link.h exists failed with the following output:
Change Dir: /home/blah/llvm-mingw/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_237b0/fast"
/usr/bin/make -f CMakeFiles/cmTC_237b0.dir/build.make CMakeFiles/cmTC_237b0.dir/build
make[1]: Entering directory '/home/blah/llvm-mingw/llvm/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_237b0.dir/CheckIncludeFile.c.o
/usr/bin/cc.exe -o CMakeFiles/cmTC_237b0.dir/CheckIncludeFile.c.o -c /home/blah/llvm-mingw/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/blah/llvm-mingw/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: link.h: No such file or directory
#include <link.h>
$ ./build-all.sh llvm
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /mingw64/bin/cc.exe
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Check for working C compiler: /mingw64/bin/cc.exe
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
c:\dev\build-verdigris-Desktop_Qt_5_12_0_MSVC2017_64bit-Debug>"C:\Qt\Tools\Preview\Qt Creator 4.8.0-beta2\bin\jom.exe" -j1
jom 1.1.2 - empower your cores
cd tutorial\ && ( if not exist Makefile C:\Qt\5.12.0\msvc2017_64\bin\qmake.exe -o Makefile C:\dev\verdigris\tutorial\tutorial.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" ) && "C:\Qt\Tools\Preview\Qt Creator 4.8.0-beta2\bin\jom.exe" -f Makefile
"C:\Qt\Tools\Preview\Qt Creator 4.8.0-beta2\bin\jom.exe" -f Makefile.Debug
cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -std:c++14 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fddebug\tutorial.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_QML_DEBUG -DQT_CORE_LIB -I..\..\verdigris\tutorial -I. -I..\..\verdigris\src -I..\..\..\Qt\5.12.0\msvc2017_64\include -I..\..\..\Qt\5.12.0\msvc2017_64\include\QtCore -Idebug -I..\..\..\Qt