Skip to content

Instantly share code, notes, and snippets.

View mugukamil's full-sized avatar
🏠
Working from home

Kamil Mugutdinov mugukamil

🏠
Working from home
View GitHub Profile
local spaces = require('hs.spaces') -- https://github.com/asmagill/hs._asm.undocumented.spaces
-- Switch alacritty
hs.hotkey.bind({'alt'}, 'space', function ()
local APP_NAME = 'Alacritty'
function moveWindow(alacritty, space, mainScreen)
-- move to main space
local win = nil
while win == nil do
win = alacritty:mainWindow()
@EricBusch
EricBusch / hide-attributes-under-additional-information-tab.php
Last active April 14, 2021 14:32
Hide specific attributes from the Additional Information tab on single WooCommerce product pages. [datafeedr][woocommerce]
<?php
/**
* Hide specific attributes from the Additional Information tab on single
* WooCommerce product pages.
*
* @param WC_Product_Attribute[] $attributes Array of WC_Product_Attribute objects keyed with attribute slugs.
* @param WC_Product $product
*
* @return WC_Product_Attribute[]
@akella
akella / setup.md
Last active February 21, 2023 22:59
Мой сетап

То что я использую в работе и стримах

Софт для разработки

@proweb
proweb / equalheightslick.js
Created May 6, 2017 16:30
Slick carousel equal height slides
$(window).load(function() {
$('.slides').on('setPosition', function () {
$(this).find('.slick-slide').height('auto');
var slickTrack = $(this).find('.slick-track');
var slickTrackHeight = $(slickTrack).height();
$(this).find('.slick-slide').css('height', slickTrackHeight + 'px');
});
})
@obenjiro
obenjiro / parsersissparta.md
Last active September 13, 2020 18:03
Parsers - is Sparta!
/*
* Динамическая сетка
* Внедряется подмешиванием DOM-узлу поведенческих классов: grid_col_3, grid_cell...
*/
.grid
box-sizing border-box
/*
* Генерирует стили для сетки
@ierhyna
ierhyna / gulpfile.js
Last active June 12, 2021 15:12
gulpfile.js
'use strict';
const gulp = require('gulp');
const sourcemaps = require('gulp-sourcemaps');
const browserSync = require('browser-sync');
const reload = browserSync.reload;
gulp.task('build:css', ['lint:css'], function () {
const postcss = require('gulp-postcss');
const nano = require('gulp-cssnano');
@ALF-er
ALF-er / Opinion.md
Last active April 29, 2020 21:16
ReactJS Conf 2016

Disclaimer 1: Первую которая "про то чего мы достигли" я таки пропустил.

Disclaimer 2: Многие доклады смотрелись и отчёты писались в состоянии алкогольного опьянения.

Сейчас посмотрел Ben Alpert - What Lies Ahead она про то какие идеи они имеют о дальнейшем развитии. И они делят на UX-идеи и DX-идеи. В UX у них:

@kyleferguson
kyleferguson / .vimrc
Created February 10, 2016 22:14
Show vim highlighting groups for work under cursor (ctrl-g)
" Show highlighting groups for current word
nmap <c-g> :call <SID>SynStack()<CR>
function! <SID>SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc