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:2960784
Created June 20, 2012 16:28
Path coercible
def source_text(arg)
case arg
when IO then arg.read
when Path then Path(arg).read
else
raise "Unable to find source text for `#{arg}`"
end
end
@blambeau
blambeau / gist:1612013
Created January 14, 2012 16:51
epath test failures under mingw
Run options: exclude {:fails_on=>#<Proc:./spec/spec_helper.rb:32>, :unix=>false, :symlink=>false, :ruby=>#<Proc:./spec/spec_helper.rb:27>}
........FF...........................F.F.....F..FF...........F.....F......F...............................................
Failures:
1) Path implementation realpath
Failure/Error: not_exist.make_symlink('not-exist-target')
NotImplementedError:
symlink() function is unimplemented on this machine
# ./lib/epath/file.rb:65:in `symlink'
@blambeau
blambeau / Gemfile
Created January 13, 2012 13:54
Temple uninitialized constant Temple::Mixins::CompiledDispatcher
source :rubygems
gem "temple"
@blambeau
blambeau / Gemfile
Created January 13, 2012 13:22
Inheritance with multiple Citrus grammars
source :rubygems
gem "citrus"
gem "rspec"
@blambeau
blambeau / Gemfile
Created December 14, 2011 10:54
jquery-sinatra-streaming
source "http://rubygems.org/"
gem "sinatra", "~> 1.3.0"
gem "thin"
@blambeau
blambeau / destr.rb
Created November 22, 2011 09:00
Fun destructuring in Ruby 1.9
class Hash
def with(&block)
block.call *block.parameters.map{|x| self[x.last]}
end
end
# Example
h = {:name => "blambeau", :hobby => "ruby"}