Skip to content

Instantly share code, notes, and snippets.

View RaphaelBlehoue's full-sized avatar
🎯
Focusing

Raphael Blehoue RaphaelBlehoue

🎯
Focusing
View GitHub Profile
@RaphaelBlehoue
RaphaelBlehoue / package.json
Created March 4, 2021 23:48 — forked from coryhouse/package.json
Example of pre and post scripts in package.json
{
"name": "npm-scripts-example",
"version": "1.0.0",
"description": "npm scripts example",
"scripts": {
"prebuild": "echo I run before the build script",
"build": "cross-env NODE_ENV=production webpack",
"postbuild": "echo I run after the build script"
}
}
@RaphaelBlehoue
RaphaelBlehoue / DEPLOYMENT_AWS_NODEJS.md
Created October 20, 2020 13:39 — forked from mdang/DEPLOYMENT_AWS_NODEJS.md
Deploying Node.js apps to Amazon Web Services

Deploying Node.js apps to Amazon Web Services

This tutorial is for deploying Node.js applications to Amazon Web Services (AWS) using Elastic Beanstalk. Elastic Beanstalk is similar to Heroku in that it's a Platform as a Service (PaaS) that enables us to deploy code with little effort and manages the complexities of provisioning resources, auto scaling, monitoring and failover of infrastructure for us.

Requirements

AWS Account

  1. Go to the AWS Homepage
  2. Click the button Create an AWS Account
@RaphaelBlehoue
RaphaelBlehoue / regex.md
Created May 28, 2020 11:20 — forked from vitorbritto/regex.md
Regex Cheat Sheet

Regular Expressions

Basic Syntax

  • /.../: Start and end regex delimiters
  • |: Alternation
  • (): Grouping
@RaphaelBlehoue
RaphaelBlehoue / CompagnyType.php
Last active July 24, 2018 12:26
Problème avec la sérialisation (JMS Sérializer )des données en poster en Ajax avec un Formulaire symfony 4 - Erreur Afficher
<?php
namespace App\Form;
use App\Entity\Company;
use App\Entity\Domain;
use App\Entity\Legal;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
@RaphaelBlehoue
RaphaelBlehoue / SignInFormContainer.js
Last active February 17, 2018 14:44
HOC authorization Failed
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Field, reduxForm } from 'redux-form';
import { Link } from 'react-router-dom';
import $ from 'jquery/dist/jquery.min';
import '../../Ui/styles/login.css';
import logo from '../../Ui/images/logo_origin.png';
import SecurityLayout from '../../Layouts/SecurityLayout';
import renderField from '../../Components/renderField';
<?php
/**
* Created by PhpStorm.
* User: raphael
* Date: 07/03/2017
* Time: 16:19
*/
namespace Labs\AuthBundle\Form;
use Symfony\Component\Form\AbstractType;
parameters:
database_host: 127.0.0.1
database_port: null
database_name: database
database_user: root
database_password: root
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
@RaphaelBlehoue
RaphaelBlehoue / config.yml
Last active August 29, 2015 14:27
Solution de l'erreur [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized option "naming_strategy" under "doctrine.orm" du Bundle stof/doctrine-extensions-bundle
orm:
auto_generate_proxy_classes: "%kernel.debug%"
entity_managers:
default:
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
mappings:
gedmo_translatable:
type: annotation
prefix: Gedmo\Translatable\Entity
@RaphaelBlehoue
RaphaelBlehoue / donnée Json
Created September 14, 2014 09:47
Bonjour j'utilise Mustache et j'aimerai afficher mes données recuperées en ajax avec le template mustache , mais je ne compren pas pourquoi celui ne s'affiche pas : Voila mon code - j'utilise cakephp
//données recuperées en JSON
[
{
"User": {
"lastname": "wild",
"firstname": "bertrand",
"email": "wild@outlook.fr",
"entreprise": "alpha",
"fonction": "ScrumMaster"
}