These rules are adopted from the AngularJS commit conventions.
This file contains hidden or 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
" vim-plug | |
" Press `gx` to open the GitHub URL for a plugin or a commit with the default browser. | |
" From https://github.com/junegunn/vim-plug/wiki/extra#gx-to-open-github-urls-on-browser | |
function! s:plug_gx() | |
let line = getline('.') | |
let sha = matchstr(line, '^ \X*\zs\x\{7,9}\ze ') | |
let name = empty(sha) ? matchstr(line, '^[-x+] \zs[^:]\+\ze:') | |
\ : getline(search('^- .*:$', 'bn'))[2:-2] | |
let uri = get(get(g:plugs, name, {}), 'uri', '') | |
if uri !~ 'github.com' |
This file contains hidden or 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
[user] | |
name = Mehdi Kabab | |
[color] | |
ui = auto | |
[core] | |
excludesfile = ~/.config/git/ignore | |
editor = nvim | |
whitespace = -trailing-space | |
# Make `git rebase` safer on macOS |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
// Settings | |
// =========================================== | |
$fonts-map: ( | |
'sourcesanspro': |
This file contains hidden or 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
// ---- | |
// libsass (v3.3.2) | |
// ---- | |
%title-alpha { | |
font-size: 3rem; | |
color: blue; | |
%title-rank { | |
color: yellow; | |
} |
This file contains hidden or 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
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |
This file contains hidden or 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
<?php | |
/** | |
* Promote the theme stylesheets. | |
* | |
* Implements hook_css_alter(). | |
* | |
* @param array &$css | |
* An array of all CSS items (files and inline CSS) being requested on the page. | |
* @param array $options | |
* (optional) An associative array containing: |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
/* Solution 1 */ | |
$_selectors: ''; | |
@for $i from 1 through 12 { | |
$_selectors: '#{$_selectors}.truc_#{$i}'; | |
} |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
.component { | |
margin-top: 10px; | |
@at-root .affects-component #{&} { | |
margin-top: 0; |
NewerOlder