Skip to content

Instantly share code, notes, and snippets.

Avatar

Parhum Khoshbakht parhumm

View GitHub Profile
@parhumm
parhumm / gulpfile.js
Last active Aug 29, 2015 — forked from par6n/gulpfile.js
Git handler through Gulp, read hive.ir or contact me for more details.
View gulpfile.js
// Example for handling git through gulp. Useful receipt for sometimes ;)
// hive.ir - made by Ehsaan <iehsan.ir@gmail.com>
// gulpfile.js
var gulp = require( 'gulp' );
var git = require( 'gulp-git' );
var minifyCss = require( 'gulp-minify-css' );
var uglify = require( 'gulp-uglify' );
var concat = require( 'gulp-concat' );
var fs = require( 'fs' );
View SassMeister-input-HTML.html
<h1 class="header__logo">Header Logo</h1>
<span class="footer__logo">Footer Logo</span>
View SassMeister-input.scss
//
// Article Info(Fun Part):
//
@mixin person($who) {
#{$who}-name: "Parhum Khoshbakht";
#{$who}-url: "http://parhum.net";
#{$who}-twitter: "@parhumm";
}
%article__info {
article-title: "Get Color Data";
@parhumm
parhumm / SassMeister-input.scss
Created Sep 16, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
// Returns $list as a string
// -------------------------------------------------------------------------------
// @documentation http://sassylists.com/documentation/#debug
// -------------------------------------------------------------------------------
// @example debug(a b c d e) => [ a, b, c, d, e ]
@parhumm
parhumm / SassMeister-input.scss
Last active Aug 29, 2015
Sass Media Queries Structure - Zurb Founation Base
View SassMeister-input.scss
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
//
// Article Info(Fun Part):
//
@mixin person($who) {
#{$who}-name: "Parhum Khoshbakht";
@parhumm
parhumm / SassMeister-input.scss
Created Sep 25, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
// @if
// @function
// @mixin
// Direction Controller
View SassMeister-input.scss
//
// Functions
//
// RANGES
// We use these functions to define ranges for various things, like media queries.
@function lower-bound($range){
@if length($range) <= 0 {
@return 0;
}
@parhumm
parhumm / SassMeister-input.scss
Created Feb 9, 2016
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
a {
color: blue;
&:hover {
color: red;
}
@parhumm
parhumm / virtualPagePath.js
Last active Dec 13, 2019
GTM virtualPagePath Variable
View virtualPagePath.js
function virtualPagePath() {
/**
* Get the URL parameters
* source: https://css-tricks.com/snippets/javascript/get-url-variables/
* @param {String} url The URL
* @return {Object} The URL parameters
*/
var getParams = function (url) {
var params = {},
parser = document.createElement('a');
You can’t perform that action at this time.