Skip to content

Instantly share code, notes, and snippets.

@ZeeDev
ZeeDev / .editorconfig
Created January 14, 2014 16:28
.editorconfig
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
indent_style = space
end_of_line = lf
charset = utf-8
@ZeeDev
ZeeDev / .htaccess
Created October 4, 2013 12:27
htaccess from h5bp
# ##############################################################################
# # MIME TYPES AND ENCODING #
# ##############################################################################
# ------------------------------------------------------------------------------
# | Proper MIME types for all files |
# ------------------------------------------------------------------------------
<IfModule mod_mime.c>
@ZeeDev
ZeeDev / fonts.scss
Last active December 19, 2015 19:09
fonts.scss
// This shows how to define a font including variants
$futura:
light Futura normal 300,
book Futura normal 400,
medium Futura normal 500,
heavy Futura normal 700;
// You can pick only a specific variant this way
$base-font: get-font-variant($futura, light);
@ZeeDev
ZeeDev / hello.md
Created July 10, 2013 07:50
Test de seb C.

Hello world Gist coucou seb

@ZeeDev
ZeeDev / console.js
Created May 28, 2013 20:11
console.js
(function(fn) {
window.console = window.console || {log: fn, warn: fn, info: fn};
})(function() {});
@ZeeDev
ZeeDev / ellipsis.scss
Created May 24, 2013 08:59
ellipsis.scss
@mixin ellipsis(
$height: 1em,
$width: 2.5em,
$line-height: 1em,
$padding-right: 5px
) {
&:before {
content: '';
float: left;
width: 5px;
@ZeeDev
ZeeDev / placeholder.scss
Created May 17, 2013 09:59
placeholder.scss
@mixin placeholder {
&::-webkit-input-placeholder { @content; }
&::-moz-placeholder { @content; }
&:-ms-input-placeholder { @content; }
&:-moz-placeholder { @content; }
}
@ZeeDev
ZeeDev / BEM.php
Last active December 17, 2015 08:59
BEM.php
<?php
/**
* BEM
* experimental function to output BEM style class names from strings and/or arrays
* @param string|array $b block
* @param string|array $e element
* @param string|array $m modifier
* @return string class names
*
* eg:
@ZeeDev
ZeeDev / example.html
Last active December 16, 2015 03:49
jquery.zee.fontsize.js
<a href="#" class="font-minus">minus</a>
<a href="#" class="font-reset">reset</a>
<a href="#" class="font-plus">plus</a>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
@ZeeDev
ZeeDev / link-to-tab.js
Created April 11, 2013 22:13
link-to-tab.js (dirty)