Skip to content

Instantly share code, notes, and snippets.

View alan-camilo's full-sized avatar
🚲
Riding my bike

Camilo H_ alan-camilo

🚲
Riding my bike
View GitHub Profile
./gradlew compileDebugSources compileDebugUnitTestSources assembleDebug --no-build-cache --rerun-tasks

Docker commands

Gitbook image

docker pull fellah/gitbook

Init a gitbook and run server

docker run -d --name gitbook -p 80:4000 -v $PATHTOPROJECT/gitbook/:/srv/gitbook fellah/gitbook
import kotlin.math.ceil
data class Task(val priority: Int, val period: Double,
val computingTime: Double, val deadline: Double)
/**
* Vérifie si une tâche est ordonnaçable
* @param list une liste de tâches
* @param index l'index de la tâche à vérifier
* @return vrai si la pire charge de task est inférieure à son échéance, ou sinon faux
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.