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
<html class="<%= FeatureToggles.GetCssClassesForFeatures('en') %>"> |
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
<html class="feat-AccountRegistrationTools feat-SidebarNav"> |
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
Show hidden characters
{ | |
"font_face": "UbuntuMono", | |
"font_size" : 12, | |
"tab_size" : 2, | |
"translate_tabs_to_spaces": true, | |
"detect_indentation": false, | |
"draw_minimap_border": true, | |
"always_show_minimap_viewport": true, | |
"caret_style": "smooth", | |
"line_padding_top": 2, |
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
// If 'sidebarNav' feature is toggled ON... | |
if ($('html').hasClass('.feat-sidebarNav')) { | |
// Load the new SidebarNav module | |
require(['modules/sidebar'], function(SidebarNav) { | |
// ... | |
}); | |
} |
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
{ | |
"sublimelinter_gutter_marks_theme": "hard", | |
"jshint_options": | |
{ | |
// Enforcement options | |
"curly" : true, | |
"eqeqeq" : true, | |
"forin" : true, | |
"immed" : true, | |
"latedef" : true, |
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
/* Basically a gnarly hack to try and roughly detect Android <= 2.3 without UA sniffing */ | |
@media screen and (-webkit-min-device-pixel-ratio: 1.0) { /* Can't use ratio 1.5 as original Galaxy S was too low res */ | |
.no-csstransforms3d .someFixedPositionClass { /* Android > 2.3 supports 3D transforms */ | |
position: absolute; /* Fixed not supported, use absolute instead, or whatever */ | |
} | |
} |
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
for (var k in Object.keys(window)) { | |
console.log(Object.keys(window)[k], window[Object.keys(window)[k]]) | |
} |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// Clean the build output directory before we begin | |
clean : { | |
options: { | |
force : true | |
}, |
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
#!/bin/sh | |
# Redirect output to stderr. | |
exec 1>&2 | |
# enable user input | |
exec < /dev/tty | |
consoleregexp='console.log' | |
# CHECK | |
if test $(git diff --cached | grep $consoleregexp | wc -l) != 0 | |
then |
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
#!/bin/bash | |
# Change $stopword to whatever string you want to disallow | |
# N.B. It's going into a regex, so don't be ridiculous. | |
stopword="TODO" | |
######################################## | |
# You shouldn't need to touch anything # |