Skip to content

Instantly share code, notes, and snippets.

@MohannadNaj
MohannadNaj / alias.bat.md
Created February 18, 2018 01:26
My windows aliases list.

My windows aliases list.

Installation

1- Attaching Aliases to the native command line:

Steps in this stackoverflow answer.Quoting:

you may make the alias(es) persistent with the following steps,

@GabeBenjamin
GabeBenjamin / gmailAutoArchive.js
Created May 6, 2017 01:00
Google script to automatically archive emails after x number of days.
// Original author fwed (contact@fwed.fr)
// Modified from
// https://gist.github.com/anonymous/2cca33d376f7f924fdaa67891ad098cc
// https://medium.com/@fw3d/auto-archive-emails-in-gmail-after-2-days-1ebf0e076b1c
function gmailAutoArchive() {
gmailAutoarchiveHelper(1);
gmailAutoarchiveHelper(2);
gmailAutoarchiveHelper(3);
gmailAutoarchiveHelper(7);
/******************************************************
* PATTERN LAB NODE
* EDITION-NODE-GULP
* The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
******************************************************/
var gulp = require('gulp'),
path = require('path'),
browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
argv = require('minimist')(process.argv.slice(2));
@chrisgoddard
chrisgoddard / json-ld-gtm.html
Last active July 23, 2023 16:52
JSON-LD GTM Tag
<script>
(function(){
var data = {
"@context": "http://schema.org",
"@type": "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": {{Page URL}}
},
"headline": {{SCHEMA - Article Headline}},
@MagicJoseph
MagicJoseph / README
Last active August 29, 2015 14:05
Foundation 5 with Compass - Gradient button extension
HOW TO USE ?
Please add this file in to your Foundation 5 project.
You must to add this file in to path_to_your_project/bower_components/foundation/scss
Next add this @import path to your _foundation.scss file.
@import "foundation/components/buttons-with-gradient";
Please create your custom button .class and @include btn-gradient-style @mixin in _buttons-with-gradient.scss file.
Set your $color-start value for example #e74c3c.
@kiennt2
kiennt2 / input clearText : onblur - onfocus
Created September 2, 2013 08:12
input clearText : onblur - onfocus
function clearText(field){
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
//<input type="text" onblur="clearText(this)" onfocus="clearText(this)" value="value"/>
}