A HTML/CSS Class Naming Convention for Scalable/Modular CSS.
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
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
/* | |
* inspired by: | |
* http://www.smashingmagazine.com/2014/06/12/sassy-z-index-management-for-complex-layouts/ | |
*/ | |
$z: ( |
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 CustomWordPressValetDriver extends WordPressValetDriver | |
{ | |
/** | |
* Allow filename-based cache busting. | |
* @see https://gist.github.com/stidges/3d0c0317bf0d36073dd045bbcc742852 | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
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
var p1 = { | |
x: 20, | |
y: 20 | |
}; | |
var p2 = { | |
x: 40, | |
y: 40 | |
}; |
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
# ------------------------------ | |
# Appearance | |
# ------------------------------ | |
# Enable colors | |
CLICOLOR=1 | |
# Custom prompt | |
# - Git branch: https://www.mfitzp.com/article/add-git-branch-name-to-terminal-prompt-mac/ | |
# - Current folder: https://superuser.com/a/142129, http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html |
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
var comp = app.project.activeItem; | |
var layer = comp.selectedLayers[0]; | |
var numEffects = layer.Effects.numProperties; | |
var slider; | |
for(var i = 1; i<=numEffects; i++){ | |
var effectLayer = layer.Effects.property(i); | |
var matchName = effectLayer.matchName; | |
if(matchName == "ADBE Slider Control"){ |
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
#!/bin/sh | |
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php70.plist | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php70.plist | |
echo "xdebug disabled" |
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
/* Resize and Save to Desktop */ | |
/* @@@BUILDINFO@@@ Resize and Save to Desktop.jsx 0.1.0 */ | |
/* jshint ignore:start */ | |
// Enable double clicking from Macintosh Finder or Windows Explorer | |
#target photoshop | |
/* jshint ignore:end */ |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
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
// ------------------------------ | |
// Vars | |
// ------------------------------ | |
// Save the current preferences | |
var startRulerUnits = app.preferences.rulerUnits; | |
var startTypeUnits = app.preferences.typeUnits; | |
var startDisplayDialogs = app.displayDialogs; | |