Skip to content

Instantly share code, notes, and snippets.

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

Adil Ben Moussa adilbenmoussa

🏠
Working from home
  • CareXS
  • Heemskerk
View GitHub Profile
//import TestRail from './TestRail';
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var request = require('request');
var qs = require('querystring');
var Promise = require('bluebird');

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@adilbenmoussa
adilbenmoussa / date-fns-date-adapter.ts
Created February 12, 2019 10:50 — forked from JoniJnm/date-fns-date-adapter.ts
date-fns angular material adapter
import {Injectable} from '@angular/core';
import {DateAdapter} from '@angular/material';
import {addDays, addMonths, addYears, format, getDate, getDaysInMonth, getMonth, getYear, parse, setDay, setMonth, toDate} from 'date-fns';
// CONFIG. Use environment or something for a dynamic locale and settings
import {es as locale} from 'date-fns/locale';
const WEEK_STARTS_ON = 1; // 0 sunday, 1 monday...
export const MAT_DATE_FNS_DATE_FORMATS = {
@adilbenmoussa
adilbenmoussa / SVG.js
Created July 19, 2017 08:37 — forked from beausmith/SVG.js
React Native SVG Component using react-native-svg
// React Native SVG Component
// https://github.com/react-native-community/react-native-svg
//
// Process
// 1. Clean up SVG in graphics app (Illustrator/Sketch/etc) to set consistent width, height, and make sure the viewBox is "0, 0, W, H"
// 2. Open SVG in text editor to remove width, height, and any undesired/unnecessary styles
// 3. Open in https://jakearchibald.github.io/svgomg/ and optimize.
// 4. Integrate info app by converting SVG tags to component-based SVG tags used in https://github.com/react-native-community/react-native-svg and updating with JS variables such that I can controls dimensions, colors, etc.
// 5. Use in other components.
//
@adilbenmoussa
adilbenmoussa / index.html
Created May 26, 2017 13:46
JS Bin javascript-redux-react-todo-list-example-toggling-a-todo // source https://jsbin.com/bobitif
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="javascript-redux-extracting-presentational-components-todo-todolist">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://unpkg.com/expect/umd/expect.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/freezer-js/0.12.1/freezer.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
@adilbenmoussa
adilbenmoussa / index.html
Created May 26, 2017 13:28
JS Bin javascript-redux-react-todo-list-example-toggling-a-todo // source https://jsbin.com/bobitif
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="javascript-redux-react-todo-list-example-filtering-todos">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://unpkg.com/expect/umd/expect.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/freezer-js/0.12.1/freezer.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
@adilbenmoussa
adilbenmoussa / index.html
Created May 26, 2017 12:19
JS Bin javascript-redux-react-todo-list-example-toggling-a-todo // source https://jsbin.com/bobitif
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="javascript-redux-react-todo-list-example-toggling-a-todo">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://unpkg.com/expect/umd/expect.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/freezer-js/0.12.1/freezer.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
@adilbenmoussa
adilbenmoussa / index.html
Created May 26, 2017 12:09
JS Bin javascript-redux-react-todo-list-example-adding-a-todo // source https://jsbin.com/bobitif
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="javascript-redux-react-todo-list-example-adding-a-todo">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://unpkg.com/expect/umd/expect.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/freezer-js/0.12.1/freezer.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
@adilbenmoussa
adilbenmoussa / index.html
Created May 26, 2017 11:29
JS Bin javascript-redux-reducer-composition-with-arrays // source https://jsbin.com/bobitif
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="javascript-redux-implementing-combinereducers-from-scratch">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://unpkg.com/expect/umd/expect.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/freezer-js/0.12.1/freezer.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>