Skip to content

Instantly share code, notes, and snippets.

module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-autoprefixer');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
@PhilippeRoy
PhilippeRoy / CRG-question-1.js
Created September 4, 2016 08:18
Coding Challenge for CRG
// Write a program which gets a users timeline from Twitter and then prints out each odd item.
// Node.js
// Functional programming - No Loop - return a new array of odd values
function returnOdd(arr) {
return arr.filter(function(el, index){
return index % 2 ? el : null;
})
}
@PhilippeRoy
PhilippeRoy / WP-Plugin-List.md
Created October 4, 2016 23:52
Wordpress Plugins - A list of useful WP plugins

#Wordpres Plugins

  • Custom Post Type UI
  • Advanced Custom Fields
  • Duplicate Post
  • Duplicator
  • Google Analytics by Yoast
  • Revolution Slider
  • WP Ultimate CSV Importer
@PhilippeRoy
PhilippeRoy / google-extensions.md
Created October 5, 2016 00:04
Google Extensions - Just a dump list for now

#Google Extensions ###Just a dump list for now

  • After the Deadline
  • Pendule
  • PageEdit
  • Search by Image
  • Tape
  • pagespeed
  • Awesome screenshot
@PhilippeRoy
PhilippeRoy / script
Last active August 6, 2019 04:11 — forked from fesor/script
Jenkins: script for checking is directory has changed from last build
#!/bin/bash
DIR_PATH=$1
GIT_PREVIOUS_COMMIT=$(git rev-parse --short "HEAD^")
GIT_COMMIT=$(git rev-parse --short HEAD)
if [ ! -d "$DIR_PATH" ]; then
echo "Directory '$DIR_PATH' not exists"
exit 1
fi