This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin size($size) { | |
@if length($size) == 2 { | |
$width : nth($size,1); | |
$height : nth($size,2); | |
@if unitless($width) { | |
$width: $width + 0px; | |
} | |
@if unitless($height) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v0.7.0) | |
// ---- | |
$media-direction: max; | |
// Mixin: flex-breakpoint | |
// Flexible Breakpoint Mixin | |
// 'Mixin with Content Insert' | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Smart Append Selectors | |
* | |
* @param {string} $name - Name of the Tag | |
* @param {string|bool} $mod - Name of the modifier | |
* @param {bool} $context - For nested selector | |
* @param {string} $name - Name from the Tag | |
*/ | |
@mixin append($tag, $mod: false, $context: false) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Include a directory in your Theme folder with the name `wp-config` and include here the File for your Environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// When we give an element some ‘attention’. | |
@mixin attention() { | |
&:hover, | |
&:active, | |
&:focus { | |
@content; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Because gdrive will not actually sync symlinks from your computer to gdrive, you should temporarily do the opposite. | |
For example, I wanted to have a symlink from my ~/Sites directory to automatically sync with gdrive, so i did the simple command: | |
ln -s ~/Sites/drive ~/Google\ Drive/mSites/ | |
That will not sync at the moment. | |
So instead I made a directory in gdrive and did a symlink back in my ~/Sites directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Download Craft Plugins | |
* | |
* @package generator-mh-boilerplate | |
* @author Martin Herweg <info@martinherweg.de> | |
*/ | |
const inquirer = require('inquirer'); | |
const download = require('download'); | |
const ProgressBar = require('progress'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class IncludeRawExtension extends \Twig_Extension | |
{ | |
public function getFunctions() | |
{ | |
return [ | |
new \Twig_SimpleFunction( | |
'includeRaw', | |
[$this, 'includeRaw'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sections": [ | |
{ | |
"name": "A New Section", | |
"handle": "a_new_section_handle" | |
} | |
] | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Craft3ValetDriver extends ValetDriver | |
/* https://github.com/laravel/valet/blob/master/cli/drivers/CraftValetDriver.php */ | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName |
OlderNewer