Skip to content

Instantly share code, notes, and snippets.

View MohamedLamineAllal's full-sized avatar

Mohamed Lamine Allal MohamedLamineAllal

View GitHub Profile
@MohamedLamineAllal
MohamedLamineAllal / .bashrc
Created February 28, 2018 20:34 — forked from lukaswilkeer/.bashrc
Gnome terminal with colors and git branch.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
#define GIT_COLOR_NORMAL “”
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
@MohamedLamineAllal
MohamedLamineAllal / bash_profile.md
Created February 28, 2018 20:14 — forked from ankurk91/bash_profile.md
:octocat: Git branch name in Linux/Mac Terminal

Mac OS : Show your git branch name on your terminal

Add these lines in your ~/.bash_profile file

# Show current git branch name
parse_git_branch() {
     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
@MohamedLamineAllal
MohamedLamineAllal / defineProperty.js
Created January 13, 2018 23:20 — forked from afuggini/defineProperty.js
Object.defineProperty polyfill
/*!
* https://github.com/es-shims/es5-shim
* @license es5-shim Copyright 2009-2015 by contributors, MIT License
* see https://github.com/es-shims/es5-shim/blob/master/LICENSE
*/
// vim: ts=4 sts=4 sw=4 expandtab
// Add semicolon to prevent IIFE from being passed as argument to concatenated code.
;
@MohamedLamineAllal
MohamedLamineAllal / vanilla-js-cheatsheet.md
Created January 11, 2018 11:11 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@MohamedLamineAllal
MohamedLamineAllal / List.md
Created December 18, 2017 22:29 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):