This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
w v u t s r | |
q p o n m l | |
k j i h g f | |
d c b a { | |
color: black | |
} | |
.foo .bar a { | |
color: white; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="#"> | |
<div class="[ 1/2 3/4@md 5/12@lg 2_@lg ]"> | |
… | |
</div> | |
<div class="[ 1/2 1/4@md 5/12@lg ]"> | |
… | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"directory": "lib/components" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pokemons = [ | |
{ | |
"name": "rattata", | |
"resource_uri": "api/v1/pokemon/19/" | |
}, | |
{ | |
"name": "charmander", | |
"resource_uri": "api/v1/pokemon/4/" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.05" encoding="UTF-8"?> | |
<!-- With version 1.05 this should be processed as XML 1.0 --> | |
<exotic> | |
<!-- | |
"" Zero Width Joiner ‍ | |
"" Zero Width Non-Joiner ‌ | |
Note that a valid tag may not start with a number or be empty. Both of the following tags are still valid - there is a non-printable character on the first position. | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 Prepare your toolshed | |
npm install -g less | |
mkdir less/ | |
#2+3 Rename and compile | |
for f in css/*.css; do b=$(basename $f .css); mv css/$b.css less/$b.less; lessc less/$b.less css/$b.css; done | |
#4 Enjoy and gain credibility | |
git add && git commit -m "Switch CSS to LESS in whole project #time 3m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a folder | |
# Yeoman will use its name as your project's name | |
mkdir myapp && cd myapp | |
# Install the generator | |
npm install generator-lessapp | |
# Run Yeoman and follow the instructions | |
yo lessapp | |
# Install dependencies | |
npm install && bower install | |
# Develop the next big thing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.loadNpmTasks('grunt-legacssy'); | |
grunt.initConfig({ | |
legacssy: { | |
files: { | |
'css/style-legacy.css': 'css/style.css', | |
}, | |
}, | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo, | |
bar { | |
background-color: #e0e0e0; | |
} | |
foo { | |
color: blue; | |
} | |
bar { | |
color: green; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export * as moduleA from './moduleA' | |
// should be a shorthand for: | |
import * as _moduleA from './moduleA' | |
export const moduleA = _moduleA |
OlderNewer