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.
//