Skip to content

Instantly share code, notes, and snippets.

@Yopadd
Yopadd / README.md
Last active August 16, 2021 09:12
An other application structure to Angular

Structure de l'application

Utilisez le plus que possible le ng CLI pour générer les fichiers souhaités

src-┐
    assets-
    styles-
    index.html
    main.ts
    app-┐
        moduleName-┐ // ng g module <name> [--route <routeName> --module <moduleTargeted>] [--routing]
@Yopadd
Yopadd / async-flat-map.js
Created February 16, 2018 07:15
return a flatten map resolved by async function
async function asyncFlatMap (arr, asyncFn) {
return Promise.all(flatten(await asyncMap(arr, asyncFn)))
}
function asyncMap (arr, asyncFn) {
return Promise.all(arr.map(asyncFn))
}
function flatMap (arr, fn) {
return flatten(arr.map(fn))
@Yopadd
Yopadd / .zshrc
Last active March 22, 2017 14:16
Oh My Zsh
# Path to your oh-my-zsh installation.
export ZSH=/home/yoann/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="avit"
# Uncomment the following line to use case-sensitive completion.