Skip to content

Instantly share code, notes, and snippets.

View imranomari's full-sized avatar

Imran Omari imranomari

View GitHub Profile
#!/bin/bash
cd $1
file_count=$(git ls-tree -r --name-only HEAD | wc -l | xargs)
current_file=1
default_since='2019-01-01'
default_fixes_pattern='fix|revert|bug'
echo "Collecting stats of repository files since ${3:-$default_since}"
echo "--> total files: $file_count"
# START CSV
@imranomari
imranomari / normalize-space
Last active August 29, 2015 14:02
normalize margin and padding values (e.g: normalize-space(13px 0px 13px 0px). returns 13px 0 )
@function strip-unit($_value) {
@return $_value / ($_value * 0 + 1);
}
// normalize margin and padding values (e.g: normalize-space(13px 5px 13px 5px). returns 13px 5px).
@function normalize-space($_values, $_flip-if-rtl: false, $_dir: ltr) {
$len: length($_values);
$a: false;// all
<!DOCTYPE html>
<html lang="en" class="no-js" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, width=device-width, initial-scale=1">
<title>[PageTitle]</title>
<!-- SEO Meta -->