Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am abernier on github.
  • I am abernier_ ( on keybase.
  • I have a public key ASDyVK6AAgsQ_KVnrAmaEj6kS1HWl5Iy_igxPqaU86P5ego

To claim this, I am signing this object:

View lecture.css
.alert.lecture:before {content:"hello ";}
View bonbon.css
/* BonBon Buttons 1.1 by
1.1 Added unprefixed attributes, :focus style, <button> support
1.0 Released
Default button: <a href="" class="button">Label</a>
View user.js
const userSchema = new Schema({
email: String,
password: String
userSchema.pre('save', function (next) {
if (!this.isModified('password')) return next(); // only if password has been modified (or is new)
this.password = bcrypt.hashSync(this.password, 10);

Express controllers/routes conventions

HTTP Verb Path Controller#Action Used for
GET /photos photos#index display a list of all photos
PUT /photos/:id/valid OR /photos/valid photos#validate tell whether the passed data are valid (204 or 422)
HEAD /photos/:id OR /photos?people=Sam photos#exist tell whether that photo exists (204 or 404)
GET /photos/new photos#new return an HTML form for creating a new photo
POST /photos photos#create create a new photo
abernier /
Created Sep 22, 2019 — forked from rust-play/
Code shared from the Rust Playground
struct A {
a : i32,
impl A {
fn bind_lifetime_mut(&mut self) -> &i32 {
return &self.a;
fn legal(&mut self) -> &i32 {
abernier /
Last active Sep 20, 2019


👨🏻‍⚕️ will examine your environment and check if you are ready to start the bootcamp!


curl -s -o- | bash
  1. Cloner ma branch abernier :
git checkout -b abernier --track origin/develop
git pull origin abernier
  1. définir le fichier .env a partir du template .env-dist
cp .env-dist .env
You can’t perform that action at this time.