Skip to content

Instantly share code, notes, and snippets.

View AlexPerrot's full-sized avatar

Alexandre Perrot AlexPerrot

View GitHub Profile
@AlexPerrot
AlexPerrot / pip_install_one_at_a_time.sh
Created February 27, 2023 15:40
Install pip requirements one at a time
cat requirements.txt | xargs -n 1 -L 1 pip install
@AlexPerrot
AlexPerrot / main.cpp
Created March 20, 2017 14:40
Embind overload destructor
#include <iostream>
class Foo {
friend class FooManager;
private:
Foo(){};
~Foo(){std::cout << "foo destructor called !" <<std::endl;};
};
class FooManager {
@AlexPerrot
AlexPerrot / embindreferences.cpp
Created March 15, 2017 14:38
Embind references test
#include <emscripten/bind.h>
#include <functional>
class ByRef {
int field=0;
public:
ByRef& getRef() {return *this;}
ByRef* getPtr() {return this;}
const ByRef& getConstRef() const {return *this;}
@AlexPerrot
AlexPerrot / README.md
Last active August 29, 2015 14:19
HelloWorld

This is my readme