Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am abernier on github.
  • I am abernier_ (https://keybase.io/abernier_) on keybase.
  • I have a public key ASDyVK6AAgsQ_KVnrAmaEj6kS1HWl5Iy_igxPqaU86P5ego

To claim this, I am signing this object:

View README.md
View lecture.css
.alert.lecture:before {content:"hello ";}
View bonbon.css
/* BonBon Buttons 1.1 by simurai.com
1.1 Added unprefixed attributes, :focus style, <button> support
1.0 Released
Usage:
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);
next();
View README.md

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
abernier / playground.rs
Created Sep 22, 2019 — forked from rust-play/playground.rs
Code shared from the Rust Playground
View playground.rs
struct A {
a : i32,
}
impl A {
fn bind_lifetime_mut(&mut self) -> &i32 {
return &self.a;
}
fn legal(&mut self) -> &i32 {
@abernier
abernier / README.md
Last active Sep 20, 2019
👨🏻‍⚕️ irondoctor.sh
View README.md

irondoctor

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

INSTALL

curl -s -o- https://gist.githubusercontent.com/abernier/a19c2cff04c93642dd623beba6f5543d/raw/irondoctor.sh | bash
View local-ssr.md
  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.