Skip to content

Instantly share code, notes, and snippets.

View mackwic's full-sized avatar
💭
I may be slow to respond, sorry for that.

Thomas Wickham mackwic

💭
I may be slow to respond, sorry for that.
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Première page</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
[["AAEXA","Assurance accident des exploitants agricoles"],["AAH","Allocation aux adultes handicapés"],["AAI","Autorités administratives indépendantes"],["ACAATA","Allocation de cessation anticipée d'activité des travailleurs de l'amiante"],["ACBUS","Accord de bon usage des soins"],["ACCA","Associations communales de chasse agréées"],["ACCRE","Aide aux chômeurs créateurs ou repreneurs d'entreprise"],["ACOSS","Agence centrale des organismes de sécurité sociale"],["ACOFA","Agence centrale des organismes d'intervention dans le secteur agricole"],["ACP (pays)","Pays d'Afrique, des Caraïbes et du Pacifique"],["ACSE","Agence nationale pour la cohésion sociale et l'égalité des chances"],["ACTA","Association de coordination technique agricole"],["ACTES","Aide au contrôle de la légalité dématérialisée"],["ACTIA","Association de coordination technique des industries agricoles et alimentaires"],["ACTIM","Agence pour la coopération technique, industrielle et économique"],["ACTP","Allocation compensatrice pour tierce perso
use pin_project::pin_project;
use thiserror::Error;
use tokio_postgres::{Client, Connection, Error as PgError};
pub type Oid = tokio_postgres::types::Oid;
pub type NoTlsConnection = Connection<tokio_postgres::Socket, tokio_postgres::tls::NoTlsStream>;
pub struct LargeObjectBridge {
client: Client,
}
import { expect } from 'chai'
import { curry, isArity0, castToCurry20, castToCurry21 } from '../../src/domain/FunctionalProgramming'
describe("Domain | FunctionalProgramming", () => {
describe("#isArity0", () => {
it("should be true when function takes zero arguments", () => {
expect(isArity0(() => void 0)).to.be.true
})
})
@mackwic
mackwic / puissance4.py
Created December 6, 2018 15:36
Groupe 3
YELLOW = 1
RED =2
EMPTY =0
COL = 7
ROW = 6
class Board:
def __init__(self):
self.state = []
for i in range(COL):
@mackwic
mackwic / puissance4.py
Created December 6, 2018 15:36
Groupe 2
YELLOW = 1
RED =2
EMPTY =0
COL = 7
ROW = 6
class Board:
def __init__(self):
self.state = []
for i in range(COL):
@mackwic
mackwic / puissance4.py
Created December 6, 2018 15:35
Groupe 1
YELLOW = 1
RED = 2
EMPTY = 0
COL = 7
ROW = 6
class Board:
def __init__(self):
self.state = []
import unittest
YELLOW = 1
RED = 2
EMPTY = 0
COL = 7
ROW = 6
class Board:
import unittest
YELLOW = 1
RED =2
EMPTY =0
COL = 7
ROW = 6
class Board:
def __init__(self):
import unittest
class Dictionnary:
def __init__(self):
self._words = []
def add(self, word):
self._words.append(word)