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> | |
#define MAX 80 | |
typedef char tchaine[MAX]; | |
char *lire(char *chaine) | |
{ |
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 ImageManipulator | |
{ | |
/** | |
* @var int | |
*/ | |
protected $width; | |
/** | |
* @var int |
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
<!-- PLEASE GO TO LINE 10 FOR CREDITS --> | |
<div id='animated-background' class='animated-background'> | |
<canvas id='animated-background-canvas'></canvas> | |
</div> | |
<script> | |
/*! | |
* @author: Jack Doyle, [email protected] |
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
//à caser où tu veux | |
//dépendances : MovePlan, Emplacement | |
bool isOver(Emplacement grille[TAILLE][TAILLE]) { | |
MovePlan tmp; | |
int x,y,k,l; | |
for (x = 0; x < TAILLE; ++x) | |
for (y = 0; y < TAILLE; ++y) | |
if(grille[x][y].valeur == 2) | |
continue; |
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
#ifndef DISPLAY_H | |
#define DISPLAY_H | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <string> | |
#include <iostream> | |
#include <vector> |
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 <iostream> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include "classes/Emplacement/Emplacement.class.h" | |
#include "classes/Mouvement/Mouvement.class.h" | |
#include "classes/Player/Player.class.h" | |
#include "classes/Window/Window.class.h" | |
#include "config/macros.h" | |
#include "config/constants.h" |
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
local tArgs = { ... } | |
if #tArgs ~= 1 then | |
print( "Usage: excavate <diameter>" ) | |
return | |
end | |
-- Mine in a quarry pattern until we hit something we can't dig | |
local size = tonumber( tArgs[1] ) | |
if size < 1 then | |
print( "Excavate diameter must be positive" ) |
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
const startingTime = 4324; | |
function main() { | |
console.log(data.players[0].state); | |
for (let i = 0; i < data.players.length; i++) { | |
updatePlayer(data.players[i], startingTime + 200); | |
} | |
console.log(data.players[0].state); | |
} |