Skip to content

Instantly share code, notes, and snippets.

View gruzzilkin's full-sized avatar

Nick Sadovnikov gruzzilkin

View GitHub Profile
@gruzzilkin
gruzzilkin / IdJFq.markdown
Created November 8, 2014 14:42
A Pen by Nick Sadovnikov.
@gruzzilkin
gruzzilkin / fonts_format_woff.css
Created October 23, 2014 09:15
Google Webfonts response with `woff` files
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v10/RjgO7rYTmqiVp7vzi-Q5UT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}
@font-face {
font-family: 'Open Sans Condensed';
font-style: normal;
font-weight: 300;
@gruzzilkin
gruzzilkin / gemini-sample.js
Created September 7, 2014 17:00
Sample gemini test
var gemini = require('gemini');
gemini.suite('new-post', function(suite) {
suite
.setUrl('projects/7days/7days-redesign/product/new-post.html')
.setCaptureElements('.b-page')
.capture('plain')
});
@gruzzilkin
gruzzilkin / css-stylus-with-if-ie.js
Created August 27, 2014 07:13
Custom "stylus + if-ie.styl + autoprefixer" tech for ENB project. Destination `.bem/techs`
var autoprefixer = require('autoprefixer');
module.exports = require('enb-stylus/techs/css-stylus').buildFlow()
.name('css-stylus-with-if-ie')
.defineOption('browsers')
.defineOption('autoprefixerArguments')
.methods({
_configureRenderer: function(renderer) {
var args = this._browsers || this._autoprefixerArguments;
### Input
```stylus
.b-pure-content_type_detail
for $type in disc square circle decimal decimal-leading-zero lower-roman upper-roman georgian armenian lower-latin lower-alpha upper-latin upper-alpha lower-greek
oList($type)
```
mixin:
```stylus
oList($type = decimal)
ol[type=$type]
@gruzzilkin
gruzzilkin / css-stylus-with-if-ie-ie9.js
Last active August 29, 2015 14:01
bemup-2014-msk | Вопросы
var autoprefixer = require('autoprefixer');
module.exports = require('enb/techs/css-stylus').buildFlow()
.name('css-stylus-with-if-ie-ie9')
.defineOption('autoprefixerArguments')
.target('target', '?.ie9.css')
.useFileList(['css', 'ie9.css', 'styl'])
.methods({
_configureRenderer: function(renderer) {
var args = this._autoprefixerArguments;
block('b-menu')(
tag()('ul'),
elem('item').tag()('li'),
elem('text').tag()('span')
)
$ enb make desktop.bundles/user-profile/user-profile.html
12:50:02.929 - build started
12:50:03.208 - [rebuild] [desktop.bundles/user-profile/user-profile.bemjson.js] file-provider
12:50:03.239 - [rebuild] [desktop.bundles/user-profile/user-profile.levels] levels
12:50:03.244 - [rebuild] [desktop.bundles/user-profile/user-profile.bemdecl.js] bemdecl-from-bemjson
12:50:03.307 - [rebuild] [desktop.bundles/user-profile/user-profile.deps.js] deps-with-modules
12:50:03.308 - [rebuild] [desktop.bundles/user-profile/user-profile.files] files
12:50:03.308 - [rebuild] [desktop.bundles/user-profile/user-profile.dirs] files
12:50:05.019 - [rebuild] [desktop.bundles/user-profile/user-profile.bemhtml.js] bemhtml-old
12:50:05.039 - [failed] [desktop.bundles/user-profile/user-profile.html] html-from-bemjson
@gruzzilkin
gruzzilkin / gist:9502633
Created March 12, 2014 07:57
Already disposed: Project (Disposed) error.
Already disposed: Project (Disposed) 7days-redesign: Already disposed: Project (Disposed) 7days-redesign
java.lang.AssertionError: Already disposed: Project (Disposed) 7days-redesign
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:186)
at com.intellij.openapi.fileEditor.FileEditorManager.getInstance(FileEditorManager.java:34)
at org.editorconfig.configmanagement.CodeStyleManager.windowGainedFocus(CodeStyleManager.java:62)
at java.awt.Window.processWindowFocusEvent(Window.java:2105)
at java.awt.Window.processEvent(Window.java:2021)
at java.awt.Component.dispatchEventImpl(Component.java:4883)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Window.dispatchEventImpl(Window.java:2739)
module.exports = function (grunt) {
'use strict';
// Enb targets
var fs = require('fs');
var targetsList = [],
htmlList = [],
cssList = ['desktop.bundles/common/common.css', 'desktop.bundles/common/common.ie.css', 'desktop.bundles/common/common.ie8.css', 'desktop.bundles/common/common.ie9.css'],
jsList = ['desktop.bundles/common/common.js'];