Skip to content

Instantly share code, notes, and snippets.

View jaxalo's full-sized avatar

Jattioui Ismail jaxalo

View GitHub Profile
@jaxalo
jaxalo / a.ts
Created July 21, 2022 13:44
Move TOC when converting html to docx after generation
const originalhtml = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
</head>
<h1>Title 1</h1>
<p>Some stuff 1</p>
<h2>Subtitle 1</h2>
pandoc-toc
@jaxalo
jaxalo / probC.py
Created October 29, 2019 22:29
implementation of problem C
import random
from collections import defaultdict
from datetime import datetime
from math import log, ceil
class Graph:
def __init__(self, nb_vertex, nb_max_edge_per_node):
self.graph = defaultdict(list)
@jaxalo
jaxalo / probB.py
Last active November 10, 2019 18:43
Indiv assign 1
import operator as op
import random
from functools import reduce
from datetime import datetime
''''
This four functions were used to find the lower bound
'''