Skip to content

Instantly share code, notes, and snippets.

View SelrahcD's full-sized avatar

Charles SelrahcD

View GitHub Profile
@SelrahcD
SelrahcD / Clean Cotcot.md
Last active August 29, 2015 14:07
Clean cotcot

Nettoyage CotCot & Eve

Controllers & Templates

Liste des quotes

Controller

  • Passer sur le ListController de ev-fdm
  • Revoir le système de filtres
@SelrahcD
SelrahcD / Readme.md
Last active August 29, 2015 14:03
Git hooks

#Git-hooks

*pre-commit : Checks phpcs rules against files in the index (after git add) before allowing you to commit. *post-merge/post-checkout : Run composer if needed and display a message if parameters.yml.dist is changed

Options

You can add a file called config with your githooks to override some of the scripts options.

Some more goodness

You should install ponysay and

var module = angular.module('Test', []);
module.service('TestService', ['ServiceA', function(serviceA) {
}]);
module.service('ServiceA', function() {
// First implementation of Service A
});
module.service('ServiceABis', function() {
@SelrahcD
SelrahcD / gist:7042692
Last active December 25, 2015 21:29
AngularJs directive for PrismJs
angular.module('Prism', []).
directive('prism', [function() {
return {
restrict: 'A',
link: function ($scope, element, attrs) {
element.ready(function() {
Prism.highlightElement(element[0]);
});
}
}