This file contains 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
<?php | |
/** | |
* Convertit un ensemble de fichiers de format ANSI en UTF8. | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
This file contains 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
<?php | |
/** | |
* Gestion de feuilles de styles CSS | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
This file contains 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
# -*- coding: cp1252 -*- | |
"""décomposition de la base d'image MNIST""" | |
import os | |
import struct | |
import PIL # ligne à supprimer si on n'a pas besoin des images | |
import PIL.Image as PIM # ligne à supprimer si on n'a pas besoin des images | |
def transcription_entier (str) : | |
"""convertit un entier lu en format binaire en entier""" |
This file contains 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
<?php | |
namespace Traits\Tests; | |
/** | |
* Mocks the entity manager | |
* | |
* Provides everything in the memory, so the tests does not depend on doctrine, | |
* which does a lot of stuff (maybe too much). This also allows to avoid to | |
* need and modify the data in the database, even if those are for the tests. |
This file contains 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
plans_block_title: "Welcome into Wisembly's community !" | |
plans_block_intro: "More than 200 enterprises in the world are using Wisembly. Join the community and manage memorables meetups." | |
free_use: "\o/ A job for captain obvious. I think." | |
abo_now: "Suscribe now" | |
free_claim: "Create a new wiz in 30 seconds. It is free, and you won't need any credit cards." | |
create_your_wiz: "Captain obvious is asked at the reception desk. Thank you." | |
label_email: "Email" | |
free_wiz_notice: "Your wiz will be operationnal but will be limited up to 5 users" | |
abo_claim: "You will have to pay monthly (without any engagements), regardless of the number of events you have. It is simple and yet so flexible !" |
This file contains 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
<?php | |
class ApiContext | |
{ | |
//... | |
/** | |
* Sends a request with a body and token | |
* This function is used to pass an array in the JSON. If your data is only simple values, prefer sendRequestWithTokenAndValues | |
* | |
* @Given /^I sent a post request (?:on|to) "(?P<url>(?:[^"]|\\")*)" with my token and this body :$/ |
This file contains 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
<?php | |
define('MAIL_PLUS_WIDTH', 10); | |
define('MAIL_PLUS_HEIGHT', 10); | |
define('MAIL_POS_WIDTH', (MAIL_PLUS_WIDTH / 2) ); | |
define('MAIL_POS_HEIGHT', (MAIL_PLUS_HEIGHT / 2) ); | |
/** | |
* Transform a adresse mail to GD. | |
* @param string $mail mail du membre | |
* @param string $where ou l'enregistrer ? |
This file contains 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
<?php | |
// php wtf of the day | |
use \DateTime, | |
\DateInterval; | |
$now = ['ref'=> new DateTime(), 0 => new DateTime(), 1 => new DateTime]; | |
$interval = new DateInterval('PT10S'); | |
// Have to do this to make it work. Just putting it here, so we can analyse the difference |
This file contains 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
<service id="un.service" class="%un.service%"> | |
<argument type="service" id="doctrine.orm.entity_manager" /> | |
<argument type="service" id="validator" /> | |
<!-- etc //--> | |
</service> |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
int main() { | |
int i = 42, | |
j = 42, | |
k = 42, | |
sum = 0; |
OlderNewer