Skip to content

Instantly share code, notes, and snippets.

Luc SANCHEZ ColonelMoutarde

Block or report user

Report or block ColonelMoutarde

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d30953da3e3f54a75461e2bc32070961
function removeDuplicates(myArr, prop) {
return myArr.filter((obj, pos, arr) => {
return => mapObj[prop]).indexOf(obj[prop]) === pos;
View gist:a2bef084b19ba17d29159c9a3f45c186
* @param string $url
* @return string|string[]
function force_relative_url(string $url)
return str_replace(get_site_url(), '', $url);
View gist:4268920ea2f36a43f5008b36cf5dbc40
function isIE() {
var value = false;
if (window.navigator.userAgent.indexOf('Trident/') > 0) {
value = true;
return value;
if (isIE() !== true){
You can’t perform that action at this time.