Skip to content

Instantly share code, notes, and snippets.

Clément Alexandre clm-a

  • Caen, France
Block or report user

Report or block clm-a

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
clm-a / docker-compose.yml
Created Jan 7, 2018
Docker compose file for use of Rails 5.1 + NodeJS 8.x, Yarn & Webpack(er) ready
View docker-compose.yml
version: '2'
image: 'clmntlxndr/rails51_webpacker'
- postgres:postgres
- $HOME/.docker_data/rails51/bundle:/usr/local/bundle
working_dir: $PWD
clm-a /
Last active Aug 22, 2019
Java & Design patterns


class Main{
  public static void main(String[] args){
    System.out.println("Hello world");
clm-a / html et
Last active Dec 14, 2016
Notes de cours
View html et


  1. Intro html
  2. Les balises
  3. Les attributs
  4. Quelques balises html5
  5. Zoom sur les formulaires
  6. CSS
  7. Les sélecteurs
  8. Modifier l'aspect

Algo cheatsheet

##1. Structure du fichier source

####En C : script.c

#include <stdio.h>
void main(){
  // commentaire
  // Code ici !
  printf("Hello world");
clm-a /
Last active Aug 29, 2015
Rails Provision
#!/usr/bin/env bash
apt-get update
apt-get -y install git-core curl build-essential autoconf zlib1g-dev libssl-dev libxml2-dev libreadline6-dev sqlite3 libsqlite3-dev imagemagick libmagickwand-dev libxslt-dev postgresql libpq-dev golang libv8-dev
# install rbenv and ruby-build
sudo -u vagrant git clone git:// /home/vagrant/.rbenv
sudo -u vagrant echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> /home/vagrant/.profile
sudo -u vagrant echo 'eval "$(rbenv init -)"' >> /home/vagrant/.profile
sudo -u vagrant git clone git:// /home/vagrant/.rbenv/plugins/ruby-build
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at
git log --graph --oneline --all
git rebase --onto topic1~2 topic2~1 topic2
clm-a / pitoval_import.rake
Created Jul 18, 2012 — forked from codatory/pitoval_import.rake
Pivotal Tracker Importer for Redmine
View pitoval_import.rake
require 'ruport'
rescue LoadError => err
warn "Couldn't load ruport gem: #{err}"
# ugly Ruport monkey patching to avoid the call of FasterCSV
module Ruport::Data
class Table
clm-a /
Created May 10, 2012
Getting started w/ devise, bootstrap, simple form...
rails new
# Gemfile
gem simple_form
gem twitter-bootstrap-rails gem
rails g simple_form:install --bootstrap
# have a look : lib/templates/erb/scaffold/_form.html.erb
View amperstand.rb
# From :
["1", "2", "3"].map(&method(:Integer))
filenames = ["a.txt", "b.txt", "c.txt"]
texts =
You can’t perform that action at this time.