Skip to content

Instantly share code, notes, and snippets.

Enoch Root Alinaki

Block or report user

Report or block Alinaki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Alinaki
Alinaki / tree.txt
Created Mar 14, 2019
Typical structure
View tree.txt
.
├── Brocfile.js
├── Makefile
├── dist
├── doc
│   ├── 2017-12-23\ Grid\ Definition.md
│   ├── 2017-12-24\ New\ Footer\ Social\ Icons.md
│   ├── 2017-12-25\ Layout\ Changes.md
│   ├── 2017-12-25\ Slider\ Declaration.md
│   ├── 2017-12-27\ Layout\ Changes.md
@Alinaki
Alinaki / fucked-up.md
Last active Nov 30, 2017
SCSS BEM Fucked up situation
View fucked-up.md

В общем, суть вся в том, что если ты применяешь БЭМ, все эти бесконечные block block__el block__el_m, велик соблазн написать вот так:

.block {
  стили блока

  &__el {
    стили элемента

    &_m {
      стили модификатора для элемента
@Alinaki
Alinaki / staggered.less
Last active Sep 29, 2016
Position icons in the staggered order
View staggered.less
@step: @icon-size + 12 / 1366 * 100vw;
@t: @icon-size * 0.35;
@l: -@icon-size;
@d: 5ms;
@from: 0;
@to: 17;
@break: 6;
.loop(@index) when(@index =< @to) {
@i: @index + 1;
@Alinaki
Alinaki / Brocfile.js
Last active Feb 12, 2017
Broccoli.js + Babel + LESS/SASS + BrowserSync
View Brocfile.js
'use strict';
const TASKS = {
build: 'build',
serve: 'serve'
}
const BUILDING = process.argv.indexOf(TASKS.build) > 0;
const SERVING = process.argv.indexOf(TASKS.serve) > 0;
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View application.template.hbs
{{#link-to 'my-route'}}Route with action{{/link-to}}
{{outlet}}
You can’t perform that action at this time.