Skip to content

Instantly share code, notes, and snippets.

View viktorbezdek's full-sized avatar

Viktor Bezdek viktorbezdek

View GitHub Profile
@viktorbezdek
viktorbezdek / controls.md
Last active August 29, 2015 13:56
Great JS UI controls libs to use
@viktorbezdek
viktorbezdek / useful-yo.md
Last active August 29, 2015 13:57
Useful Yeoman Generators
@viktorbezdek
viktorbezdek / microjs.md
Last active August 29, 2015 13:57
JS Micro Libraries
@viktorbezdek
viktorbezdek / gruntfile-css-sprites.js
Created May 1, 2014 13:03
Gruntfile for CSS sprites
module.exports = function (grunt) {
grunt.initConfig({
// spritesmith
sprite: {
all: {
src: 'src/assets/img/icons/*.png',
destImg: 'src/assets/img/spritesheet.png',
destCSS: 'src/styles/sprites.css'
@viktorbezdek
viktorbezdek / box-shadows.css
Last active August 29, 2015 14:02
Useful box-shadows snippets
/* Taken from http://cssdeck.com/labs/16-box-shadows-to-save-your-time */
.box1 {
-webkit-box-shadow: 0 10px 6px -6px #777;
-moz-box-shadow: 0 10px 6px -6px #777;
box-shadow: 0 10px 6px -6px #777;
}
.box2 {
-webkit-box-shadow: 0 1px 2px #777;
-moz-box-shadow: 0 2px 1px #777;
@viktorbezdek
viktorbezdek / bundle-plugins.php
Created August 4, 2014 07:33
Bundling plugins to Wordpress Theme
<?php
if (is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
$theme_url = get_bloginfo('template_url');
$theme_url_split = explode("/", $theme_url);
$theme_url_split_length = count($theme_url_split);
$theme_name = $theme_url_split[$theme_url_split_length-1];
$plugin_source = "../wp-content/themes/".$theme_name."/bundled_plugins/plugin_name";
@viktorbezdek
viktorbezdek / conditional-outlook-comments.md
Created August 6, 2014 08:03
Conditional comments for Outlook

Conditional comments for Outlook

Supported versions

  • Outlook 2000 - Version 9
  • Outlook 2002 - Version 10
  • Outlook 2003 - Version 11
  • Outlook 2007 - Version 12
  • Outlook 2010 - Version 14
  • Outlook 2013 - Version 15
@viktorbezdek
viktorbezdek / viewport-units.js
Last active August 29, 2015 14:07
Polyfill to enable VW, VH, VM, VMIN units in unsupported browsers.
/**
* Polyfill for VW, VH, VM, VMIN units. Handles int and float values, both positive and negative.
* @depends StyleFix from -prefix-free http://leaverou.github.com/prefixfree/
* @author Lea Verou, Xandor Schiefer, Viktor Bezdek
*/
(function() {
// dependence je prefixfree.js
if (!window.StyleFix) {
console.warn('Viewport units requires prefixfree.js.');