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
def check(m): | |
#on verifie les colonnes | |
for i in range(0,3): | |
if(m[i][0]==m[i][1]==m[i][2]!=" "): | |
print('GG le joueur:',m[i][0]) | |
return 0 | |
#on verifie les lignes | |
for i in range(0,3): | |
if(m[0][i]==m[1][i]==m[2][i]!=" "): |
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 "./libcaddinFile/_libcaddin.h" | |
int main(void) | |
{ | |
unsigned int key; | |
Bdisp_AllClr_DDVRAM(); | |
//locate(1,3); | |
Print((unsigned char*)"This application is"); |
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 <stdarg.h> | |
void format(char * f, va_list ap); | |
int printf(char *f,...){ | |
va_list ap; | |
va_start(ap, f); | |
char retour asm ("reto");/* point de retour*/ | |
asm("push %eipd\r\npop reto");//on affecte la valeur à reto | |
format(f,ap); | |
va_end(ap); |
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> | |
#define FUNC_CAST(retour,function,args...) retour(*function)(args) | |
typedef FUNC_CAST(void,callback_t,void); | |
#undef FUNC_CAST | |
#define FUNC_CAST(retour,function,args...) ((retour(*)(args))function) | |
int a(int a){ | |
return printf("%d",a); | |
} |
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> | |
//#include <string.h> | |
struct s_argument | |
{ | |
int valc; //# de valeurs | |
char *opt; //Nom de l'option sans tiret | |
char **val; //Tableau d'argument de taille `valc` | |
}; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
/*an exemple for my friend | |
**voici un exemple d'animation*/ | |
div | |
{ | |
width: 100px; | |
height: 100px; |
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
// ==UserScript== | |
// @name deezer reaper | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author élie | |
// @match https://www.deezer.com/* | |
// @grant none | |
// ==/UserScript== | |
var exports = {} |
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
import java.util.Random; | |
import java.util.Arrays; | |
public class TP5 | |
{ | |
static Random rand = new Random(); | |
static int randRange(int a, int b) | |
{ | |
return (rand.nextInt(b - a) + a); |
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
using System; | |
using System.Linq; | |
namespace Outils { | |
class intArrayToString { | |
static void Main(string[] args) { | |
Console.WriteLine("{0}", deepToString(new int[][]{new int[]{5}, new int[]{5}, new int[]{5}})); | |
Console.ReadLine(); | |
} | |
static string deepToString(int[][] a) |
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
using System; | |
using System.Linq; | |
namespace Main { | |
public class TP5 { | |
static Random rand = new Random(); | |
static int randRange(int a, int b) | |
{ | |
return (rand.Next(b - a - 1) + a); | |
} |
OlderNewer