Skip to content

Instantly share code, notes, and snippets.

@nweldev
nweldev / schema.json
Last active January 15, 2019 23:40
Angular.json shema definitions - schematicsOptions and projects
{
...
"properties": {
...
"schematics": {
"$ref": "#/definitions/schematicOptions"
},
...
"projects": {
"type": "object",
@nweldev
nweldev / angular-prompt-zsh.sh
Last active March 30, 2019 00:31 — forked from manekinekko/spaceship-prompt__sections__angular.zsh
Customize your Oh My Zsh SpaceShip theme with Angular and AngularCLI prompt (https://github.com/denysdovhan/spaceship-prompt)
# ANGULAR
SPACESHIP_ANGULAR_SHOW="${SPACESHIP_ANGULAR_SHOW:=true}"
SPACESHIP_ANGULAR_PREFIX="${SPACESHIP_ANGULAR_PREFIX:="with "}"
SPACESHIP_ANGULAR_SUFFIX="${SPACESHIP_ANGULAR_SUFFIX:="$SPACESHIP_PROMPT_DEFAULT_SUFFIX"}"
SPACESHIP_ANGULAR_SYMBOL="${SPACESHIP_ANGULAR_SYMBOL:="🅰️ "}"
SPACESHIP_ANGULAR_DEFAULT_VERSION="${SPACESHIP_ANGULAR_DEFAULT_VERSION:=""}"
SPACESHIP_ANGULAR_COLOR="${SPACESHIP_ANGULAR_COLOR:="red"}"
SPACESHIP_ANGULAR_CLI_SHOW="${SPACESHIP_ANGULAR_CLI_SHOW:=true}"
SPACESHIP_ANGULAR_CLI_PREFIX="${SPACESHIP_ANGULAR_CLI_PREFIX:=""}"
@nweldev
nweldev / .bash_profile
Last active July 23, 2018 09:45
.bash_profile for window's git bash
###################################################################
### Basic bash configuration for git bash (Windows) ###
### from a oh-my-zsh & vs-code user ###
###################################################################
### EDITOR
export EDITOR="code --wait"
export GIT_EDITOR="code --wait"
@nweldev
nweldev / .gitconfig
Last active July 23, 2018 13:17
my .gitconfig for work
[user]
# Please adapt and uncomment the following lines:
name = Noël Macé
email = contact@noelmace.com
[log]
date = iso
[format]
#pretty = format:%C(yellow)%h %Cblue%>(14)%ad %Cgreen%<(15)%aN%Cred%d %Creset%s
@nweldev
nweldev / nodejs_installer.ps1
Last active April 25, 2023 10:40
Powershell script installing nodejs (with git) and some npm packages
write-host "`n ## NODEJS INSTALLER ## `n"
### CONFIGURATION
# nodejs
$version = "4.4.7-x64"
$url = "https://nodejs.org/dist/latest-v4.x/node-v$version.msi"
# git
$git_version = "2.9.2"
@nweldev
nweldev / .bashrc
Last active November 30, 2016 09:52
another .bashrc file formerly used at work on Mac OS X
export no_proxy='usine.fdj.fr,192.168.120.96'
stty cs8 -istrip -parenb
bind 'set convert-meta off'
bind 'set meta-flag on'
bind 'set output-meta on'
# TODO : updatedb at first connection
# Reset
@nweldev
nweldev / .bashrc
Created July 15, 2015 21:09
My bashrc configuration
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@nweldev
nweldev / gogit.sh
Last active August 29, 2015 14:23
cd faster to a local git repository
# cd faster to a local git repository
# author : Noël Macé (noelmace.com)
# license : LGPL v3.0
# syntaxe : gogit { folder_name | --option }
# options :
# --show : print all the absolute pathes to detected git repositories
# --basenames : print all repositories names
# --reload : redetect the folders
@nweldev
nweldev / ctags_angular
Created June 17, 2015 22:20
.ctags configuration file for angularjs projects
--exclude=node_modules
--exclude=bower_components
--exclude=*.min.js
--exclude=*.txt
--exclude=*.json
--exclude=vendors
--exclude=.git
--exclude=*.out
--exclude=.tmp
--exclude=*.md
@nweldev
nweldev / angular_install.sh
Last active August 29, 2015 14:23
Install a complete (and customizable) development environnement for AngularJS on Linux & Mac OS X
#!/usr/bin/env bash
#####################
# automatically installs a complete AngularJS development environment
# you can run this script even if a lot of this tools are already installed
# this will just update the all thing (maybe not the beter way, but it will)
# don't run this script as root (or via sudo)