Skip to content

Instantly share code, notes, and snippets.

@MrSwed
MrSwed / README.md
Created September 18, 2018 05:21 — forked from jonathantneal/README.md
SASS @font-face mixin

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@MrSwed
MrSwed / plugin.LoadElement.php
Last active March 14, 2017 07:21 — forked from AgelxNash/plugin.LoadElement.php
[MODX Evolution] Плагин загрузки элементов (чанков и сниппетов) из файлов
<?php
if (!defined('MODX_BASE_PATH')) { die('HACK???'); }
/**
* LoadElement
*
* Загрузка чанков и сниппетов из файлов
*
* @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.html
* @author Agel_Nash <modx@agel-nash.ru>
@MrSwed
MrSwed / flexbox-extend.less
Last active March 23, 2016 14:42 — forked from jayj/flexbox.less
CSS3 Flexbox - LESS Mixins
// --------------------------------------------------
// Flexbox LESS extends
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// example usage as extender .mydiv:extend(.flex) {&:extend(.flex.j-center)}
@import "flexbox";
.flex {
display: -webkit-box;
display: -moz-box;
#!/bin/sh
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ ! -n "$oemail" ]
then
oemail="$OLD_EMAIL"
fi
#!/bin/sh -e
#git-cache-meta -- simple file meta data caching and applying.
#Simpler than etckeeper, metastore, setgitperms, etc.
#from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694
#modified by n1k
# - save all files metadata not only from other users
# - save numeric uid and gid
# 2012-03-05 - added filetime, andris9