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
#! /bin/bash | |
# | |
# getopt.sh: | |
# functions like getopts but do long-named options parsing | |
# and support optional arguments | |
# | |
# Version 1.0 1997 by Grigoriy Strokin (grg@philol.msu.ru), Public Domain | |
# Date created: December 21, 1997 | |
# Date modified: December 21, 1997 | |
# |
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
< | |
<he | |
<hea | |
<head | |
<head> | |
> <body></b | |
< <body></body> | |
> <body></body><bod | |
< <body></body><body>g | |
<body></body><body><id |
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.Scanner; | |
import java.util.Random; | |
public class Puissance4 { | |
public static void main (String[] args) { | |
if (args.length == 0) { | |
System.out.println("Player mode unspecified.\nUse PvP, PvC, CvP or CvC."); | |
return; | |
} |
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[a4paper,12pt]{report} | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage[french]{babel} | |
\usepackage{amsfonts} | |
\usepackage{amsmath} | |
\usepackage{amsthm} | |
\usepackage{amssymb} | |
\usepackage{graphicx} | |
\usepackage{fancyhdr} |
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
md5 = require 'md5' | |
Writers = {} | |
isWriter = true | |
currentWriter = false | |
Studied = {} | |
for line in io.lines() do | |
if line == "" then |
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
# $@ Le nom de la cible | |
# $< Le nom de la première dépendance | |
# $^ La liste des dépendances | |
# $? La liste des dépendances plus récentes que la cible | |
# $* Le nom du fichier sans suffixe | |
CC=gcc | |
CFLAGS=-Wall | |
LDFLAGS= | |
EXEC=copy |
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 <locale.h> | |
#include <ncurses.h> | |
int main(int argc, char *argv[]) { | |
int phys_row, phys_col; | |
setlocale(LC_ALL, ""); | |
initscr(); | |
getmaxyx(stdscr, phys_row, phys_col); | |
//timeout(10); | |
cbreak(); // raw(); |
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
all: build | |
build: | |
ocamlbuild -pkg graphics project.native -I src | |
rapport: build | |
ocamldoc -latex -charset "utf-8" -noheader -notoc -notrailer \ | |
-colorize-code -o rapport/ocamldoc.tex -d rapport -I _build/src \ | |
src/voronoi.ml src/project.ml | |
pdflatex -output-format pdf -output-directory rapport rapport/rapport.tex |
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
#!/bin/bash | |
set -e | |
SITE_DIR=$(echo "$1" | sed -E 's|^(https?\|file)://([^/]*)/.*$|\2|') | |
mkdir -p "httrack" | |
cd "httrack" | |
httrack "$1" -O "httrack" | |
grep -r "$2" "httrack/${SITE_DIR}" --color=auto |
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
project('Ungoliant', 'c') | |
bson = dependency('libbson-1.0') | |
mongoc = dependency('libmongoc-1.0') | |
glib = dependency('glib-2.0') | |
libevent = dependency('libevent') | |
libcurl = dependency('libcurl') | |
src = include_directories('src') |
OlderNewer