Skip to content

Instantly share code, notes, and snippets.

View julienbourdeau's full-sized avatar
🏠
Working from home

Julien Bourdeau julienbourdeau

🏠
Working from home
View GitHub Profile
export PS1='\[\e[0;36m\][\A] \u@\h:\[\e[0m\e[0;32m\]\W\[\e[1;33m\]$(__git_ps1 " (%s)")\[\e[0;37m\] \$\[\e[0m\]'
@julienbourdeau
julienbourdeau / module-process-filter
Created November 6, 2014 15:44
processFilter for HelperList in Module classes
public function processFilter()
{
if (!isset($this->list_id))
$this->list_id = $this->table;
$prefix = str_replace(array('admin', 'controller'), '', Tools::strtolower(get_class($this)));
if (isset($this->list_id))
{
foreach ($_POST as $key => $value)
@julienbourdeau
julienbourdeau / fonts.scss
Created March 1, 2015 20:43
Scss Font Face Mixin
@mixin font-face($style-name, $file, $family, $category:"") {
$filepath: "fonts/" + $family + "/" + $file;
@font-face {
font-family: "#{$style-name}";
src: url($filepath + ".eot");
src: url($filepath + ".eot?#iefix") format('embedded-opentype'), url($filepath + ".woff") format('woff'), url($filepath + ".ttf") format('truetype'), url($filepath + ".svg#" + $style-name + "") format('svg');
}
%#{$style-name} {
font: {
@if $category != "" {
@julienbourdeau
julienbourdeau / invoice-price.tpl
Last active August 29, 2015 14:17
Display tax_excl or tax_incl price in invoice
{if $tax_excluded_display}
{displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_excl_including_ecotax}
{else}
{displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_incl_including_ecotax}
{/if}
@julienbourdeau
julienbourdeau / 2015-12-31-demo-post.markdown
Last active September 11, 2015 22:28
Demo article for build.prestashop.com
layout title subtitle date author icon tags published
post
Title goes here
And here is a subtitle
2015-12-31 07:00:00 -0800
julienbourdeau
fa-pencil
random
tag
example
false
@julienbourdeau
julienbourdeau / .gitignore
Last active April 4, 2018 16:03
.gitignore for PrestaShop (with core files)
# Private files
# The following files contain your database credentials and other personal data.
config/settings.*.php
# Cache, temp and generated files
# The following files are generated by PrestaShop.
/admin-dev/autoupgrade/
/cache/
@julienbourdeau
julienbourdeau / Preferences.sublime-settings
Last active June 15, 2016 08:16
Sublime Text config for PrestaShop
{
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
"*.map",
"Desktop.ini",
@julienbourdeau
julienbourdeau / Preferences.sublime-settings
Last active September 25, 2015 12:57
Minimal Sublime Text config for PrestaShop
{
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"highlight_modified_tabs": true,
"rulers":
[
80,
120
@julienbourdeau
julienbourdeau / .php_cs
Created July 9, 2015 08:52
php-cs-fixer config for PrestaShop
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude(array(
'admin-dev/filemanager',
'cache',
'modules',
'tools',
))
->in(__DIR__)
@julienbourdeau
julienbourdeau / .gitconfig
Last active October 20, 2016 12:15
Git configuration for contributing to PrestaShop
[user]
name = Your Name
email = your-github-email@tiscali.fr
[color]
ui = auto
[alias]
st = status
stt = status --ignore-submodules