-
- Create ez-alias.sh file
-
- Add directory of the ez-alias script file to export PATH (ex: export PATH=:/$HOME/BASH)
-
- Add the command
source $HOME/BASH/aliases.sh
to $HOME/.bash_profile file and source it
- Add the command
-
- Go to any directory and launch command
ez-alias.sh
and type in the name of your alias then reboot the terminal
- Go to any directory and launch command
- Done !
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Reference: https://medium.com/better-programming/dependency-injection-containers-in-javascript-5fd2c2b4be30 | |
// | |
import parseFunction from 'parse-function' | |
const app = parseFunction({ | |
ecmaVersion: 2017, | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Migrations; | |
use Phinx\Seed\AbstractSeed; | |
use Symfony\Component\Filesystem\Filesystem; | |
use Symfony\Component\Filesystem\Exception\FileNotFoundException; | |
class AbstractSeedFromJson extends AbstractSeed | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CRITIQUE toujours dependre de l'evenement de DOMContentLoaded | |
// avant de lancer une instruction qui comporte une modification ou un ajout d'elements dans le DOM | |
document.querySelector('.new-todo').addEventListener('keypress', function (e) { | |
var key = e.keyCode; | |
if (key === 13) { // 13 is enter | |
// INTERDIT ! il faut utiliser le système de template fourni | |
//var txtToDo = document.querySelector('.new-todo').value; | |
//var li = document.createElement('li'); | |
//var div = document.createElement('div'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
import Store from 'stores/store' | |
const TRACKING = { | |
DEBUG: true,//"<%= global.environment %>".match(/development/gi), | |
PAGES: { | |
// heroes xp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CLGeocoder+Timeout.swift | |
// | |
// Created by Bertrand Souriau on 17/06/2016. | |
// Thanks to Mathias Amnell (https://github.com/apping/APFoundation/blob/master/Pod/Classes/CLGeocoder%2BTimeout.m) | |
import Foundation | |
import MobileCoreServices | |
import CoreLocation |