This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
" map jj to escape | |
imap jj <Esc> | |
" activate mouse control | |
set mouse=a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sstream> | |
typedef std::map<std::string,int> chemicalComposition; | |
void transferChemical(chemicalComposition& left, chemicalComposition& right) | |
{ | |
for(chemicalComposition::iterator it = right.begin(); it!=right.end(); ++it) | |
left[it->first] += it->second; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --------------------------------------------------------------------------- | |
* ** This software is in the public domain, furnished "as is", without technical | |
* ** support, and with no warranty, express or implied, as to its usefulness for | |
* ** any purpose. | |
* ** | |
* ** The file provide a way to avoid interleaved printing in a multithreaded | |
* ** environment. It works like qDebug() for the Qt framework | |
* ** | |
* ** Usage : | |
* ** Print() << " The debug value = " << 42; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SATURATE_CAST_HPP | |
#define SATURATE_CAST_HPP | |
#include <cmath> | |
// because C++ doesn't allow partial function | |
// specialization, we must use static method | |
// from specialized class | |
//----------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n "username in lowercase : " | |
read username | |
echo -n "password : " | |
read password | |
echo -n "team : " | |
read team | |
for r in $(echo */) | |
do | |
repo=${r%%/} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date +"%y_%m_%d_%Hh%Mmin%Ssec" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO TODO TODO TODO TODO TODO TODO | |
// TODO TODO TODO TODO TODO TODO TODO | |
// TODO TODO TODO TODO TODO TODO TODO | |
// TODO TODO TODO TODO TODO TODO TODO | |
// TODO TODO TODO TODO TODO TODO TODO | |
// TODO TODO TODO TODO TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// ---------------------------------------------------------- | |
/// Author : ArthurSonzogni | |
/// License : MIT | |
/// Description : wrap a QVboxLayout into a QScrollArea | |
/// if the QVBoxLayout is to big, a scroll bar | |
/// appear and let the user scroll | |
/// ---------------------------------------------------------- | |
#ifndef BUILDSCROLLABLEWIDGETLIST_H | |
#define BUILDSCROLLABLEWIDGETLIST_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# +---------------------------------------+ | |
# | Open commit's files as buffers in vim | | |
# +---------------------------------------+ | |
if [ -z $1 ] | |
then | |
# No argument provided => use the latest commit's files. | |
commit=HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
MIT License | |
Copyright (c) 2017 Arthur Sonzogni | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
OlderNewer