Skip to content

Instantly share code, notes, and snippets.

View JiLiZART's full-sized avatar
💭
I may be slow to respond.

Nikolay Kost JiLiZART

💭
I may be slow to respond.
View GitHub Profile
###
# Retina images handler
###
if ($http_cookie ~* "isRetina=1" ) {
set $isRetina "retina";
}
location ~ ^/bundles/(.*)-retina\.png {
try_files /bundles/$1-retina.png @retinaFallback;
}

Using Pseudo Elements for Input Styling

On supported browsers, the pseudo elements can be used to style the inputs for checkbox/radio for their checked and unchecked states while still providing a functional fallback for browsers that don't support input styling without doing weird resets. Most notable issue is pseudo elements not existing for inputs on firefox. Check it out in Chrome & Safari.

A Pen by Alex Bergin on CodePen.

License.

@JiLiZART
JiLiZART / sites.json
Created June 8, 2014 15:11
Sites sorted by category
{
"programming":[
"http://blog.codinghorror.com/",
"http://thedailywtf.com/",
"http://www.hanselman.com/blog/",
"http://code.tutsplus.com",
"https://news.ycombinator.com/",
"http://www.reddit.com/r/programming/",
"http://codebetter.com",
"http://android-developers.blogspot.com/",
@JiLiZART
JiLiZART / make.js
Created October 1, 2015 21:45
client BH
var enbBemTechs = require('enb-bem-techs'),
borschikTech = require('enb-borschik/techs/borschik'),
fs = require('fs'),
path = require('path'),
techs = enbBemTechs,
provide = require('enb/techs/file-provider');
// php
// process.env.YENV = 'production';
enbBhPhp = require('enb-bh-php');
//wpPhp = require('./techs/wp-php.js');
<div class="js-favorite">
<a href="/favoriteActionWithAjaxSupport" class="js-favorite-link">Favorite</a>
</div>
var precss = require('precss');
var autoprefixer = require('autoprefixer');
var sorting = require('postcss-sorting'); // !
module.exports = {
module: {
loaders: [
{
test: /\.css$/,
loader: "style-loader!css-loader!postcss-loader"
@JiLiZART
JiLiZART / enb-exports-file.js
Created May 23, 2016 09:45
enb-exports-file.js
var fs = require('enb/lib/fs/async-fs'),
vow = require('vow'),
path = require('path');
module.exports = require('enb/lib/build-flow').create()
.name('enb-exports-file')
.target('target', '?.js')
.useSourceFilename('source', '?.txt')
.builder(function(cssFilename) {
var def = vow.defer();
const values = [
() => console.log({moveCircleToMiddle: true}),
1000,
() => console.log({showGrayCircle: true}),
() => console.log({showMicrophone: true}),
5000,
() => console.log({moveCircleToTop: true}),
1000,
() => console.log({pulseGrayCircle: true}),
5000,