Skip to content

Instantly share code, notes, and snippets.

View codeleandre.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 80
typedef char tchaine[MAX];
char *lire(char *chaine)
{
View db_export
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Client : localhost:8889
-- Généré le : Sam 01 Avril 2017 à 17:29
-- Version du serveur : 5.6.28
-- Version de PHP : 7.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@snwfdhmp
snwfdhmp / ImageManipulator.php
Created May 6, 2017 — forked from philBrown/ImageManipulator.php
Image manipulation class, provides cropping, resampling and canvas resize
View ImageManipulator.php
<?php
class ImageManipulator
{
/**
* @var int
*/
protected $width;
/**
* @var int
@snwfdhmp
snwfdhmp / animated_bg.html
Last active May 13, 2017
Animated background (credits : jack@greensock.com (more: see sources))
View animated_bg.html
<!-- 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, jack@greensock.com
@snwfdhmp
snwfdhmp / Avalam_isOver.c
Created Jun 4, 2017
Fonction qui dit si la partie est terminée ou non
View Avalam_isOver.c
//à 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;
View Display.class.cpp
#ifndef DISPLAY_H
#define DISPLAY_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <iostream>
#include <vector>
View ALAVAMmain.cpp
#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"
@snwfdhmp
snwfdhmp / excavate+useallfuel.lua
Created Apr 4, 2020
Minecraft/Buildcraft Mining Turtle: 'excavate' program except it uses all fuel it collects
View excavate+useallfuel.lua
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" )
You can’t perform that action at this time.