Skip to content

Instantly share code, notes, and snippets.

View exdeniz's full-sized avatar

Igor Pnev exdeniz

  • VerstkaLab
  • Amster, NL
View GitHub Profile
#crumbs ul li a {
display: block;
float: left;
height: 50px;
background: #3498db;
text-align: center;
padding: 30px 40px 0 40px;
position: relative;
margin: 0 10px 0 0;
@exdeniz
exdeniz / footer.css
Created October 9, 2013 04:54
Flexbox sticky footer
@exdeniz
exdeniz / gulp.js
Created January 11, 2014 22:34
gulp simple config
var lr = require('tiny-lr'),
gulp = require('gulp'),
stylus = require('gulp-stylus'),
livereload = require('gulp-livereload'),
prefix = require('gulp-autoprefixer'),
csslint = require('gulp-csslint'),
myth = require('gulp-myth'),
server = lr();
@exdeniz
exdeniz / README
Last active January 4, 2016 14:49
Generate sprite for gulp
Сам плагин для галпа: https://github.com/gratimax/gulp-grunt
Плагин для спрайтов: https://github.com/Ensighten/grunt-spritesmith
var gulp = require('gulp');
var gutil = require('gulp-util');
var express = require('express');
var path = require('path');
var tinylr = require('tiny-lr');
var createServers = function(port, lrport) {
var lr = tinylr();
lr.listen(lrport, function() {
gutil.log('LR Listening on', lrport);
link(rel='icon', sizes='16x16 32x32 48x48 64x64', href='favicon.ico')
link(rel='shortcut icon', href='favicon.ico')
link(rel='apple-touch-icon-precomposed', href='favicon-152.png')
meta(name='msapplication-TileColor', content='#FFFFFF')
meta(name='msapplication-TileImage', content='favicon-144.png')
meta(name='msapplication-square70x70logo', content='favicon-70.png')
meta(name='msapplication-square150x150logo', content='favicon-150.png')
meta(name='msapplication-square310x310logo', content='favicon-310.png')
link(rel='apple-touch-icon-precomposed', sizes='152x152', href='favicon-152.png')
link(rel='apple-touch-icon-precomposed', sizes='144x144', href='favicon-144.png')
diff -Nru prl_fs.orig/SharedFolders/Guest/Linux/prl_fs/inode.c prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c
--- prl_fs.orig/SharedFolders/Guest/Linux/prl_fs/inode.c 2013-11-11 17:56:58.000000000 +0200
+++ prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c 2013-11-29 20:41:53.689167040 +0200
@@ -199,10 +199,18 @@
if (attr->valid & _PATTR_MODE)
inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 0777);
if ((attr->valid & _PATTR_UID) &&
- (sbi->plain || sbi->share || attr->uid == -1))
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
+ (sbi->plain || sbi->share || __kuid_val(attr->uid) == -1))
@exdeniz
exdeniz / gulpfile-browser-sync.js
Created May 26, 2014 21:56
gulp с одного проекта. Второй файл - вариант использования browser-sync по другому.
// Собираем Stylus
gulp.task('stylus', function() {
gulp.src('./assets/b/blocks.styl')
.pipe(plumber())
.pipe(stylus()) // собираем stylus
.pipe(prefix())
.pipe(gulp.dest('./public/css/')) // записываем css
.pipe(browserSync.reload({stream:true}))
});
;( function( window, document )
{
'use strict';
var file = './img/svghtml.html',
revision = 1,
debug = true;
if( !document.createElementNS || !document.createElementNS( 'http://www.w3.org/2000/svg', 'svg' ).createSVGRect )
return true;
@exdeniz
exdeniz / theme.js
Last active August 29, 2015 14:17
Themes css
"use strict";
var gulp = require("gulp"),
postcss = require("gulp-postcss"),
gulp = require("gulp"),
csso = require("gulp-csso"),
replace = require('gulp-replace'),
prefix = require("postcss-prefix-selector"),
empty = require('postcss-discard-empty'),
rename = require("gulp-rename"),
filterDeclarations = require("postcss-filter-declarations");