Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View blambeau's full-sized avatar

Bernard Lambeau blambeau

View GitHub Profile
@blambeau
blambeau / alice.html
Last active March 5, 2020 20:44
CSS layout exercice
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://gist.githubusercontent.com/DavidWells/18e73022e723037a50d6/raw/ead7e72d11c847ad9b81f094686543522101c278/reset.css" />
<style>
body {
margin: 10%;
}
.container {
border: 1px solid red;
<!doctype html>
<html lang="fr-BE">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Inscription Incroyables Comestibles - Sombreffe en Transition</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!--[if lt IE 9]>
@blambeau
blambeau / La Belgique à la COP24... en wel om te werken.md
Created December 11, 2018 07:56
La Belgique à la COP24... en wel om te werken!

België naar de COP24, en verder ...

We vragen de aandacht van

  • Charles Michel, Eerste Minister

  • Marie-Christine Marghem, Federale Minister van Energie, Leefmilieu en Duurzame Ontwikkeling

  • François Bellot, Federale Minister van Mobiliteit

Les couacs du vote électronique, un tremplin bienvenu pour vous parler de résilience

Au lendemain des élections communales, j'observe la vague verte s'écouler dans les quotidiens, et m'amuse de la voir partager l'actualité avec d'autres titres évoquant les (très attendus, j'y viens!) couacs du vote électronique.

A Bruxelles, quarante-sept bureaux de votes ont ouvert avec deux heures de retard ou plus, cinq n'ont semble-t-il jamais ouvert. A Wavre, au delà des files interminables constatées, c'est le décompte qui a été fortement perturbé par une panne d'électricité.

Je suis un professionnel du secteur informatique, en charge du développement et du monitoring de systèmes informatiques souvent complexes, docteur de l'UCL dans l'équipe d'ingénierie informatique et... ces problèmes ne m'étonnent aucunement. J'irai même plus loin: personne ne les règlera jamais, c'est comme cela. Cela vous étonne? Moi pas.

Comme je suis me récemment intéressé à la notion de résilience dans le cadre d'initiatives de transition

@blambeau
blambeau / gist:03e9c8239ce9818a45a8
Last active August 29, 2015 14:11
PostgreSQL and CTEs

Why doesn't PostgreSQL optimize Common Table Expressions?

PostgreSQL does not seem to optimize common table expressions (CTE) very well. At the same time, is seems to optimize properly when views are involved. Any idea why? Is that accidental or is it a technical/theoretical/essential reason? Examples below.

With CTE, restriction after join

Does not seem optimized.

sap=# explain with j as (select * from suppliers natural join shipments) select * from j where status > 20;
logger.configure({
default: "none",
override: {
"brolMachin": "all",
"trucBidule": "get"
}
});
customResource.get("brolMachin").then(function(result){
//
<!DOCTYPE html>
<html lang="en" ng-app="myApp">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.8/angular.js"></script>
<script>
var myApp = angular.module('myApp', [
]);
myApp.directive('bang', function() {
return {
link: function(scope, element, attr) {
@blambeau
blambeau / gist:366bd21ff9704c33b9b1
Created May 20, 2014 17:19
Finitio dress/undress
S = Finitio.parse <<-EOF
Uuid = String( ... )
Time = .Date <iso> String( s | ... ) .Finitio.Contract.Time.iso
Physical = {
uuid: String
title: String
at: String
@blambeau
blambeau / ast.rb
Created March 9, 2014 18:20
Q -- Abstract Syntax Tree
[
:system,
[
:type_def,
"Boolean",
[
:union_type,
[
:builtin_type,
"TrueClass"
TypeError: Cannot read property 'should' of undefined
at World.<anonymous> (/Users/blambeau/work/devel/qjs/features/step_definitions/steps.coffee:59:12)
at Object.invoke (/usr/local/lib/node_modules/cucumber/lib/cucumber/support_code/step_definition.js:84:14)
at Object.execute (/usr/local/lib/node_modules/cucumber/lib/cucumber/ast/step.js:161:22)
at Object.acceptVisitor (/usr/local/lib/node_modules/cucumber/lib/cucumber/ast/step.js:153:12)
at Object.executeStep (/usr/local/lib/node_modules/cucumber/lib/cucumber/runtime/ast_tree_walker.js:192:12)
at Object.processStep (/usr/local/lib/node_modules/cucumber/lib/cucumber/runtime/ast_tree_walker.js:187:14)
at /usr/local/lib/node_modules/cucumber/lib/cucumber/runtime/ast_tree_walker.js:80:16
at callUserFunctionAndBroadcastAfterEvent (/usr/local/lib/node_modules/cucumber/lib/cucumber/runtime/ast_tree_walker.js:104:9)
at iterate (/usr/local/lib/node_modules/cucumber/lib/cucumber/type/collection.js:31:11)