Skip to content

Instantly share code, notes, and snippets.

View Symfomany's full-sized avatar

Symfomany Symfomany

  • Lyon
View GitHub Profile
@Symfomany
Symfomany / gist:d18408da8f2ea1ced4e0
Last active August 29, 2015 14:00
Warning: DOMElement::setAttribute() expects parameter 2 to be string, array given in /var/www/cinhetic/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/
I have an error once time in two:
Stack Trace XDebug:
Warning: DOMElement::setAttribute() expects parameter 2 to be string, array given in /var/www/cinhetic/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php on line 121
And Symfony stack trace:
Failed to start the session because headers have already been sent by "/var/www/cinhetic/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php" at line 121.
I do not know where where it comes from in my project Symfony 2.4.4
@Symfomany
Symfomany / WIld Gulp Project
Last active March 7, 2017 17:04
Wild Gulp Project to handle dev/prod environments with CSS,JS, SASS IMAGES, JSON & HTML optimizes
Use Gulp Task Runner to create/handle tasks around your Wild Web Project
Example with:
### Requirements Gulp & Browser Sync in Global
```
npm install -g gulp
npm install -g browser-sync
```
@Symfomany
Symfomany / Gist ansible
Created March 15, 2017 17:44
Gist Ansible
Gist ansible
Gist ansible
# Install python-apt
---
- hosts: web
gather_facts: yes
sudo: true
vars:
# Mysq & Apache2
MySQL_root_pass: zuzu
http_port: 80
@Symfomany
Symfomany / atelier.md
Created April 3, 2017 05:00
Atelier Vue Final

Exercice

Pendant cet atelier, nous allons créer une petite application d'E-Commerce avec la bibliothèque VueJS.

Prérequis

Pour aider au développement, vous pouvez utiliser l'extention Chrome Vue-devtools (https://github.com/vuejs/vue-devtools)

Afin d'éviter les problèmes de réseau le jour J, veuillez cloner ce projet et exécuter les commandes suivantes :

enter image description here

Atelier 3 - Filtres et Composants

Partie 1 : Les Filtres

  • Récupérer 100 utilisateurs à la création de l'instance VueJS avec Vue-Ressource avec l'API randomuser URL: https://randomuser.me/api/?results=100&nat=fr
  • Afficher la liste des utilisateurs avec (gender,nom prénom, adresse, ville, email, portable, image en miniature)
@Symfomany
Symfomany / atelier4.md
Created April 20, 2017 07:29
Atelier 4
var express = require('express');
var mysql = require('mysql');
var router = express.Router();
var connection = mysql.createConnection({
host: 'localhost',
user: 'root',
password: 'djscrave',
@Symfomany
Symfomany / atelier_node.md
Created May 10, 2017 12:03
atelier_node.md

VueJS Atelier - Introduction au langage NodeJS

enter image description here

Etape 0 - Documentation & Tutoriaux de NodeJS à lire

let express = require('express')
let app = express()
let datas = require('./datas.json')
let fs = require('fs');
var cors = require('cors');
/********
*
* Utilisez Nodemon.js
* https://nodemon.io/