Skip to content

Instantly share code, notes, and snippets.

Project name

Project details:

Confluence link

CI/CD

Please check azure-pipeline.yml to have an overview of different CI/CD tasks

Start application

Run mvn clean install to install dependecies...

@fouad-j
fouad-j / LitElementLight.ts
Created October 29, 2020 08:43
Create Component (custom-element & slot) with lit-element
import {LitElement} from 'lit-element';
class LitElementLight extends LitElement {
slotMap: object;
connectedCallback() {
this.slotMap = Array
.from(this.renderRoot.querySelectorAll('[slot]'))
.reduce((map, obj) => ({
...map,
@fouad-j
fouad-j / e2eLauncher.sh
Created May 24, 2017 23:20
prototype for e2e launcher to use it in jenkins for example
#!/usr/bin/env bash
set -u
source utils.sh
declare -A servers=([INTEGRATION]='pi@pi' [HOMOLOGATION]='fouad@integration' [UAT]='ubuntu@lisa-prod');
rapport_directory="./report/$(date +%d_%m_%Y__%H_%M)";
environment=${servers['HOMOLOGATION']};
{
"name": "testweb",
"version": "0.0.1",
"description": "",
"author": "Fouad JADOUANI",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/fouad-j/init-project-angular.git"
},
var HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter');
var reporter = new HtmlScreenshotReporter({
dest: 'target/screenshots',
filename: 'my-report.html',
userCss: 'e2e/reporter.css'
});
exports.config = {
framework: 'jasmine',
@fouad-j
fouad-j / example_angular_toggle_html_es6.html
Created May 3, 2017 21:11
example_angular_toggle_html_es6
<div feature-toggle="TOGGLE_NAME_1">
<h1>FeatureToggle</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
@fouad-j
fouad-j / example_angular_toggle_directive_es6.js
Created May 3, 2017 21:08
example_angular_toggle_directive_es6
angular.module('app').directive('featureToggle', function(toggleService) {
return {
restrict: 'A',
template: '<span ng-transclude></span>',
transclude: true,
link: function(scope, element, attrs) {
if(toggleService.isEnable(attrs.featureToggle)) element.remove()
}
};
});
@fouad-j
fouad-j / example_angular_toggle_service_es6.js
Last active May 3, 2017 21:08
example_angular_toggle_service_es6
angular.module('app').service('toggleService', function() {
const TOGGLE_LIST = ['TOGGLE_NAME_1', 'TOGGLE_NAME_2', 'TOGGLE_NAME_3'];
this.isEnable = toggleName => TOGGLE_LIST.includes(toggleName);
});
@fouad-j
fouad-j / ecran2.sh
Created November 25, 2016 20:24
Add new resolution for an additional screen
#! /bin/sh
########################################################
# Auteur : Fouad JADOUANI <[email protected]>
# Description : Ajoute une nouvelle resolution pour un
# ecran additionel s'elle n'existe pas
################
# French documentation : http://doc.ubuntu-fr.org/xrandr
# Version 1.0
###############
# Historique :
@fouad-j
fouad-j / .conkyrc
Created November 6, 2016 18:03
my conky config
# temps pour fermer conky en secondes. 0 = toujours actif
total_run_times 0
# affiche le texte sur la sortie standard
out_to_console no
# réglage de la mémoire, pour éviter le clignotement
double_buffer yes
# Soustraire les mémoires tampons de la mémoire utilisée
no_buffers yes