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
# parallel compression with progress bar | |
tar -cf - *.pdf | pv | pigz > pdfs.tar.gz |
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 <cassert> | |
#include <cmath> | |
#include <iostream> | |
#include <list> | |
#include <vector> | |
template <typename T> | |
class Sorter | |
{ | |
public: |
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 <algorithm> | |
#include <cassert> | |
#include <chrono> | |
#include <cmath> | |
#include <fstream> | |
#include <iterator> | |
#include <numeric> | |
#include <ostream> | |
#include <tuple> | |
#include <vector> |
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
--- | |
AccessModifierOffset: '-2' | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: 'true' | |
AlignConsecutiveDeclarations: 'true' | |
AlignEscapedNewlines: Right | |
AlignOperands: 'true' | |
AlignTrailingComments: 'true' | |
AllowAllParametersOfDeclarationOnNextLine: 'false' | |
AllowShortBlocksOnASingleLine: 'true' |
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
cmake_minimum_required(VERSION 3.13) | |
project( | |
project | |
VERSION 1.0 | |
DESCRIPTION "project" | |
LANGUAGES CXX) | |
# Standard Project Settings Set a default build type if none was specified | |
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | |
message( |
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 "TimerOne.h" | |
#define DEBUG | |
//#define TESTANEMO | |
//PINS | |
#define PWM_MOTOR OCR2A | |
#define PIN_P_MOT 11 // digital pin (out) : polulu pwm | |
#define PIN_P_SER 5 // digital pin (out) | |
#define DIR_MOTOR 12 // digital pin (out) : polulu dir |
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
;********************************************************************** | |
; | |
; | |
; PROGRAMME BOUTON POUSSOIR | |
; | |
; | |
;********************************************************************** | |
LIST p=16F84 ; Définition de processeur | |
#include <p16f84a.inc> ; Définitions de variables |
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 <cstdlib> | |
void tst_ptr(){ | |
int a=5; | |
int *p; | |
p =&a; | |
std::cout << a << std::endl; | |
std::cout << p << std::endl; |
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 <cstdlib> | |
int main() | |
{ | |
//Création d'un tableau rempli de zéros | |
//Pour avoir des adresses mémoire accessibles | |
int *tst=(int*)std::calloc(10, sizeof(int)); | |
//définition d'une struct à 5 champs |