This file contains hidden or 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
<html> | |
<head> | |
<meta charset="utf8" /> | |
<style> | |
table { | |
border-collapse: collapse; | |
border-spacing: 0px; | |
} | |
td { | |
padding: 5px; |
This file contains hidden or 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
from heapq import heappush, heapify, heappop | |
#Question1 | |
def table_frequences(texte): | |
table={} | |
for i in texte: | |
if i in table: | |
table[i]=table[i]+1 |
This file contains hidden or 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
#!/usr/bin/env python3 | |
def rle(s): | |
encode = "" # La variable qui va contenir le résultat | |
count = 0 | |
current_char = "" | |
for c in s: | |
if c == current_char: | |
count += 1 | |
else: # On a rencontré un nouveau caractère |
This file contains hidden or 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
import numpy | |
from numpy.linalg import solve | |
lambdas = [0.01, 0.05, 0.09] | |
mu = [1, 0.7, 1.5 ] | |
Ns = [3, 3, 5 ] | |
N1s = [2, 2, 3 ] | |
N = Ns[1] | |
N1 = N1s[1] |
This file contains hidden or 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
import numpy | |
import itertools | |
import copy | |
from numpy.linalg import solve | |
def delath_kursovuyu(variant): | |
lambdas = variant["lambdas"] | |
mu = variant["mu"] | |
Ns = variant["Ns"] |
This file contains hidden or 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
import numpy | |
import itertools | |
import copy | |
import sys | |
from numpy.linalg import solve | |
def delath_kursovuyu(variant): | |
lambdas = variant["lambdas"] | |
mu = variant["mu"] |
This file contains hidden or 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
# elm-package generated files | |
elm-package.json | |
elm-stuff/ | |
# elm-repl generated files | |
repl-temp-* |
This file contains hidden or 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
sequenceResult : List (Result.Result a b) -> Result a (List b) | |
sequenceResult lst = | |
case lst of | |
x :: xs -> | |
x `Result.andThen` (\xval -> | |
(sequenceResult xs) `Result.andThen` (\xsval -> | |
Ok (xval::xsval))) | |
[] -> Ok [] |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys, re | |
if len(sys.argv) not in (2,3): | |
sys.stderr.write("Usage: %s dictionnary.txt [file.txt]\n\nChecks spelling of text in input file.\n" % sys.argv[0]) | |
sys.exit(1) | |
infile = open(sys.argv[2]) if len(sys.argv)>2 else sys.stdin | |
inwords = set(map(str.lower, re.split("[^\\w]", infile.read()))) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.