Skip to content

Instantly share code, notes, and snippets.

@ZellSnippets
ZellSnippets / gist:6957147
Created October 13, 2013 01:53
Cpanel: Change file permissions with chmod
//
To change all the directories to 755 (-rwxr-xr-x):
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r--r--):
find /opt/lampp/htdocs -type f -exec chmod 644 {} \;
//
@ZellSnippets
ZellSnippets / gist:6928756
Created October 11, 2013 02:34
Image Replacement / Hide Text
// Hide Text by Scott Kellum
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
// old way of doing things
.hide-text {
text-indent: -9999px;
@ZellSnippets
ZellSnippets / gist:6863064
Created October 7, 2013 05:48
ios key dimensions
IOS Dimensions:
iPad / iPad Mini - 768 x 1024 pt
Status Bar - 20 pt
Nav bar - 44 pt
@ZellSnippets
ZellSnippets / Gruntfile.js
Last active December 23, 2015 14:19 — forked from ospatil/Gruntfile.js
Grunt: Yeoman + Angular + Express + Compass
'use strict';
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// configurable paths
var yeomanConfig = {
app: 'app',
dist: 'dist'
@ZellSnippets
ZellSnippets / gist:6604249
Created September 18, 2013 03:40
SCSS: Clearfix
// Clearfix for IE8 and up http://css-tricks.com/snippets/css/clear-fix/
&:after {
content: "";
display: table;
clear: both;
}
@ZellSnippets
ZellSnippets / gist:6603895
Created September 18, 2013 02:54
SCSS: Image icon before/after settings
.icons:before{
content:"";
display: inline-block;
width: 16px;
height: 16px;
background-image: url(../images/icons/meta-icons.png);
background-repeat: no-repeat;
vertical-align: middle;
position: relative;
}
@ZellSnippets
ZellSnippets / untitled.scss
Created September 15, 2013 03:02
SCSS: Vertical align methods. Line height, Transform, Ghost pseudo, Auto margins, Negative margins
/**
* Line Height method.
* Works with any single line (text / images)
*/
.parent {
line-height: 5rem;
// For images
.img {
vertical-align: middle;
}
@ZellSnippets
ZellSnippets / gist:6567583
Created September 15, 2013 02:39
SCSS: Vertical align with Ghost pseudo
// http://css-tricks.com/centering-in-the-unknown/
/* This parent can be any width and height */
.block {
text-align: center;
}
/* The ghost, nudged to maintain perfect centering */
.block:before {
content: '';
display: inline-block;
@ZellSnippets
ZellSnippets / gist:6563300
Created September 14, 2013 16:19
PHP: Genesis Custom Viewport Meta
//* Add custom Viewport meta tag for mobile browsers
add_action( 'genesis_meta', 'sp_viewport_meta_tag' );
function sp_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}
@ZellSnippets
ZellSnippets / gist:6563154
Created September 14, 2013 16:01
SCSS: Equidistant CSS with justify
ul {
float: none;
// Justify menu @Chris Coyier – http://css-tricks.com/equidistant-objects-with-css/
text-align: justify;
// font-size: 0.1px;
> li {
display: inline-block;
}
&:after {