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
\documentclass{report} | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage[francais]{babel} | |
\usepackage[top=2cm, bottom=2cm, left=3cm, right=3cm]{geometry} | |
\setcounter{secnumdepth}{4} | |
\setcounter{tocdepth}{3} | |
\makeatletter |
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 <SDL/SDL.h> | |
#include <math.h> | |
typedef unsigned char uchar; | |
void ppixel(SDL_Surface *screen, int x, int y, uchar r, uchar g, uchar b); | |
int main(int argc, char *argv[]) | |
{ | |
SDL_Event event; |
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 <time.h> | |
#include <math.h> | |
#include <GL/gl.h> | |
#include <GL/glu.h> | |
#include <SDL/SDL.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
import bpy | |
import Blender | |
objects = [] | |
for o in bpy.data.objects: | |
if o.type == "Mesh": | |
objects.append(o) | |
data = "" |
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
37 | |
0.919672 0.652852 0.000000 | |
3.110558 25.558341 6.383472 | |
0.416783 24.683066 6.383472 | |
1.161313 26.974533 4.894371 | |
0.919672 0.652852 0.000000 | |
3.110558 25.558341 6.383472 | |
1.161313 26.974533 4.894371 | |
3.110558 28.390726 6.383472 | |
0.919672 0.652852 0.000000 |
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
var Class = function () { | |
var F, methods = {}, parent = {}, i, statics = {}, args; | |
args = Array.prototype.slice.call(arguments); | |
if (args.length == 2) | |
parent = args.shift(); | |
methods = args[0]; |
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
from math import * | |
class Factor: | |
def __init__(self, primes): | |
self.primes = primes | |
def factorize(self, N): | |
factors = {} | |
lim = int(floor(sqrt(N))) |
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 | |
/* | |
* Retourne un tableau JSON : ["player 1", "player 2", ...] | |
*/ | |
function get_orasia() { | |
$url = "http://188.165.212.56/mapviewer/serveur2/world/chattercraft/chatter.php"; | |
$data = file_get_contents($url); |
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
------ AVANT ------- | |
Dichotomie := proc(expr, m_a, m_b, e) | |
local f, a, b, r, n_steps; | |
a := m_a; | |
b := m_b; | |
n_steps := 0; | |
f := unapply(expr, x); |
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
uniform sampler2D framebuffer; | |
float contrast(float c) | |
{ | |
float a = 0.3; | |
return clamp((c - a) / (1 - a), 0, 1); | |
} | |
void main(void) | |
{ |
OlderNewer