Skip to content

Instantly share code, notes, and snippets.

View MatonAnthony's full-sized avatar
💉
Making healthcare better

Anthony Maton MatonAnthony

💉
Making healthcare better
  • Smals ASBL
  • Belgium
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TAILLE 5
typedef enum Categorie {
BOISSONS, BUREAU, CONSERVES, DEJEUNER, DIVERS, EPICES, FECULENTS, FRAIS, HYGIENE, MENAGE,
PATISSERIE, PHARMACIE, SURGELES
} Categorie;
#! /usr/bin/env bash
function interrupt_code()
# This code runs if user hits control-c
{
echored "\n*** Setup interrupted ***\n"
exit $?
}
# Trap keyboard interrupt (control-c)
Generate list of locales and supported Gaia versions
PHP Warning: parse_ini_file(/config.ini): failed to open stream: No such file or directory in /Users/anthony/Mozilla/transvision/app/scripts/generate_sources on line 21
Warning: parse_ini_file(/config.ini): failed to open stream: No such file or directory in /Users/anthony/Mozilla/transvision/app/scripts/generate_sources on line 21
Missing l10nwebservice parameter in config.ini
Checking if Transvision sources are available...
CRITICAL ERROR: no sources available, aborting.
Check the value for l10nwebservice in your config.ini
[config]
; Path to the data root folder. TMX files will be stored in root/TMX so that
; they could be shared between multiple versions of Transvision
root=/Users/anthony/transvision/data/
; Path to the local Mercurial clones, both en-US and l10n. Could be external
; to the Git checkout of Transvision, as long as scripts have access to it.
local_hg=/Users/anthony/transvision/data/hg
1213
23
aezezr
public class ListeDouble extends ListeSimple {
private Vecteur monVecteur;
public ListeDouble(){
monVecteur = new VecteurTable();
}
public int taille(){
return monVecteur.taille();
}
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<unistd.h>
#include<fcntl.h>
#define BUF_SIZE 180
#define TEL_SIZE 17
def test_to_internal_value_with_null(self):
feature = self.create(
Feature, slug='the_feature', name={'en': 'The Feature'})
history = feature.history.all()[0]
testData = {'id': 1, 'current_history': 'null', 'date': '2016-03-23T19:17:04+00:00'}
serializer = HistoricalFeatureSerializer()
self.assertRaises((serializer.to_internal_value(testData)), ValidationError)
{
"type": "danger",
"message": "Mot de passe incorrect !"
}
This file has been truncated, but you can view the full file.
py.test kuma
============================= test session starts ==============================
platform linux2 -- Python 2.7.6, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
django settings: kuma.settings.testing (from environment variable)
rootdir: /home/vagrant/src, inifile: pytest.ini
plugins: django-2.9.1, cov-2.2.1
collected 729 items
kuma/attachments/tests/test_models.py ........
kuma/attachments/tests/test_templates.py F