Skip to content

Instantly share code, notes, and snippets.

View tom-combet's full-sized avatar
🔥
Coding to break the codes

Tom Combet tom-combet

🔥
Coding to break the codes
View GitHub Profile
@tom-combet
tom-combet / create-alias.sh
Created January 2, 2022 11:36
Create a CLI alias
echo "alias your-alias='<your-command>'" >> ~/.bash_aliases
source ~/.bash_aliases
@tom-combet
tom-combet / create-new-module.sh
Last active March 21, 2022 11:45
Create new module from kjmodulebedrock
#!/bin/bash
# Usage: ./create-new-module.sh <module-full-name>
# <module-full-name>: PREFIX,ModuleClassName
# To use at the root of your PrestaShop environment.
[[ -z "$1" ]] && { echo "Module class name is missing." ; exit 1; }
githubName=Kaudaj # Replace with your own GitHub name/organization
moduleFullName="$1"
@tom-combet
tom-combet / responsive.js
Last active September 2, 2021 13:15
For PrestaShop : Responsive.js with Bootstrap breakpoints
import $ from 'jquery';
import prestashop from 'prestashop';
prestashop.responsive = prestashop.responsive || {};
prestashop.responsive.current_width = window.innerWidth;
prestashop.responsive.breakpoints = {
xs: 0,
sm: 520,
md: 768,