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
// Assert that the parent selector matches one of the selectors passed into $selectors | |
// Url: https://github.com/dropbox/scooter/blob/e4d1ffc42e6f4d787fffa94bd96397e9b862a2f3/scss/mixins/_accessibility.scss | |
@mixin assert-selector($selectors...) { | |
&:not(#{$selectors}) { | |
/*! You must ensure the element matches one of these selectors: #{$selectors} */ | |
outline: 2px solid red !important; | |
outline-offset: 5px; | |
position: relative; | |
&:before { |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$color-a: red; | |
$color-a-light: lighten(red, 20%); | |
$color-b: blue; | |
$color-b-light: lighten(blue, 20%); | |
$color-c: green; | |
$color-c-medium: lighten(green, 20%); |
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 React = require('react'); | |
var HelloMessage = React.createClass({ | |
render: function() { | |
return mustache(templateName, this.props); | |
} | |
}); | |
module.exports = HelloMessage; |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
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
"/node_modules/", | |
"/.sass-cache/", | |
"\\.sassc", | |
"\\.scssc", | |
"\\.log" |
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
# Exclude build folders | |
dist/ | |
build/ | |
app/ | |
# Exclude node modules | |
node_modules/ | |
# Exclude sass cache files | |
.sass-cache/ |
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
# Block the WordPress include-only files. | |
# Source: http://codex.wordpress.org/Hardening_WordPress#Securing_wp-includes | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^wp-admin/includes/ - [F,L] | |
RewriteRule !^wp-includes/ - [S=3] | |
RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] | |
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] |
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
<a href="javascript:(function(){window.open('//developers.google.com/speed/pagespeed/insights/?url='+window.location);})()"> | |
Check page in Google PageSpeed | |
</a> |
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
Here I stand head in hand | |
Turn my face to the wall | |
If she's gone I can't go on | |
Feeling two-foot small | |
Everywhere people stare | |
Each and every day | |
I can see them laugh at me | |
And I hear them say |
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
# Move around quicker | |
alias ..="cd .." | |
# Show pretty file list using `list` | |
alias list="ls --color=always -s -h -g --sort=extension" | |
# Useful application shortcuts | |
alias chrome="google-chrome" |