Skip to content

Instantly share code, notes, and snippets.

Avatar
🐓

Julian Bruyat BruJu

🐓
View GitHub Profile
@BruJu
BruJu / notes_latex.md
Last active Jun 30, 2021
Notes latex / papiers
View notes_latex.md
  • Most of the time, \tt / \texttt instead of verb!!
  • Create macro for common tools \Javascript
  • Section, Table and Figure with a majuscule, (stop forgetting about this)
  • an rdf because "an airdieff"
  • "semantic" → adjectif, "semantics" → nom (même au singulier)
@BruJu
BruJu / a_Wasm_Tree_cpp.md
Last active Dec 16, 2020
WasmTreeFrontEnd ... in C++ Experiments
View a_Wasm_Tree_cpp.md
View marche.rs
// https://play.rust-lang.org/
#[derive(Debug)]
struct A {
x: u32
}
fn main() {
let x = A { x: 7 };
@BruJu
BruJu / Graphy And Match.md
Last active Dec 16, 2020
Graphy and match
View Graphy And Match.md

Context : I had trouble to compare Graphy and WasmTree behaviour on match calls, so I tried to understand how Graphy works.

Graphy semmed like it used some cache or lazy matching, so I did some tests

const graphy_factory = require('@graphy/core.data.factory')

const dataset = require('@graphy/memory.dataset.fast')();
@BruJu
BruJu / wasmify-sophia_Add_Exported_Methods.md
Last active Dec 2, 2020
wasmify-sophia : Add exported methods
View wasmify-sophia_Add_Exported_Methods.md

https://github.com/BruJu/wasmify-sophia

wasm_bindgen_dataset!(TreedDataset, "TreedDataset", SophiaExportDataset);

+use crate::wrapping::*;
+
+#[wasm_bindgen(js_class="TreedDataset")]
+impl SophiaExportDataset {
+    pub fn get_nb_underlying(&self) -> usize {
@BruJu
BruJu / agent.md
Last active Dec 1, 2020
agent.md
View agent.md

Soit un fichier de la forme

4
7 4
4 0
3 4
8 3

Signifiant :

@BruJu
BruJu / languageindex.md
Last active Nov 29, 2020
Language Indexing
View main.cpp
// Trouver tous les noms qui finissent par 5 chiffres
/*******
* Read input from cin
* Use cout << ... to output your result to STDOUT.
* Use cerr << ... to output debugging information to STDERR
* ***/
#include <iostream>
#include <limits>
#include <sstream>
@BruJu
BruJu / MonStructCommaAdd.cpp
Last active Oct 31, 2020
MonStructCommaAdd.cpp
View MonStructCommaAdd.cpp
#include <iostream>
#include <string>
// Trying to understand / implement myself the magic behind
// https://www.boost.org/doc/libs/1_74_0/libs/assign/doc/index.html#operator+=
template<typename ... Ts>
void Print(const char * format, Ts ... ts) {
char buffer[256];
std::sprintf(buffer, format, ts ...);
View optionaltest.cpp
#include <iostream>
#include <optional>
struct Contained {
Contained() {
std::cout << "Contained()\n";
}
Contained(const Contained &) {
std::cout << "ContainedConstructor\n";