Skip to content

Instantly share code, notes, and snippets.

@mchayka
mchayka / gist:3849283
Created October 7, 2012 19:15 — forked from SirPepe/gist:1073470
CSS: Clearfix
/* Source: http://nicolasgallagher.com/micro-clearfix-hack/ */
/* For modern browsers */
.cf:before,
.cf:after {
content:"";
display:table;
}
.cf:after {
@mchayka
mchayka / gist:3849288
Created October 7, 2012 19:17
CSS: Image replacement
/*
* Image replacement
*/
.ir {
background-color: transparent;
border: 0;
overflow: hidden;
/* IE 6/7 fallback */
*text-indent: -9999px;
@mchayka
mchayka / Preferences.sublime-settings
Last active October 12, 2015 05:38
Sublime: user preferences
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"draw_white_space": "all",
"font_size": 10,
"soda_classic_tabs": true,
"soda_folder_icons": true,
"theme": "Soda Dark 3.sublime-theme",
"trim_trailing_white_space_on_save": true
}
@mchayka
mchayka / clear chage from command line
Created November 8, 2012 22:02
ezPublish: clear cache
php bin/php/ezcache.php --clear-all
@mchayka
mchayka / contain-floats.css
Created November 10, 2012 13:26 — forked from necolas/contain-floats.css
CSS: Cross-browser, consistent float-containment methods for IE 6+, Firefox 2+, Safari 4+, Opera 9+, Chrome
/*
* Containing floats in a consistent manner
* By Jonathan Neal and Nicolas Gallagher
*/
/*
* New block formatting context method
* IE 6+, Firefox 2+, Safari 4+, Opera 9+, Chrome
*/
@mchayka
mchayka / gist:4051452
Created November 10, 2012 15:50
CSS: IE: extra padding for submit button hack
<!--[if lt IE 8]>
<style>
/* IE6 */
*html input.button{
overflow: visible; /* remove padding from left/right */
width:0; /*remove the remaining space in IE6*/
}
/* IE7 */
*:first-child+html input.button{
@mchayka
mchayka / main.css
Created December 24, 2012 11:13
Styleguides: CSS comments
/* ==========================================================================
Section comment block
========================================================================== */
/* Sub-section comment block
========================================================================== */
/* Sub-section comment block
-------------------------------------------------------------------------- */
@mchayka
mchayka / gist:5089593
Created March 5, 2013 11:12
ezPublish: regenerate autoloads
php bin/php/ezpgenerateautoloads.php -e
@mchayka
mchayka / gist:5196836
Created March 19, 2013 15:00
SVN: basic commands
# Watch changes in revision
svn log -v -r 70
# Compare revisions with SVN
svn diff -r 63:64
@mchayka
mchayka / gist:5507719
Created May 3, 2013 07:24
bash: create link to php file
ln -s ../steig_en/design.ini.append.php design.ini.append.php