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
html { | |
overflow: hidden; | |
height: 100%; | |
} | |
body { | |
height: 100%; | |
overflow: auto; | |
} |
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
# This is the root editor config file | |
root = true | |
# Apply rules to all files | |
[*] | |
# Use unix line endings | |
end_of_line = lf | |
insert_final_newline = true |
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
{ | |
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment. | |
"browser": true, // Standard browser globals e.g. `window`, `document`. | |
"esnext": true, // Allow ES.next specific features such as `const` and `let`. | |
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.). | |
"camelcase": false, // Permit only camelcase for `var` and `object indexes`. | |
"curly": false, // Require {} for every new block or scope. | |
"eqeqeq": true, // Require triple equals i.e. `===`. | |
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` | |
"latedef": true, // Prohibit variable use before definition. |
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 mce_mod( $init ) { | |
$init['forced_root_block'] = 'p'; | |
$init['apply_source_formatting'] = false; | |
$init['preformatted'] = true; | |
$init['force_br_newlines'] = true; | |
$init['wpautop'] = false; | |
return $init; | |
} | |
add_filter('tiny_mce_before_init', 'mce_mod', 99); |
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
margin-xs := 0.2rem | |
margin-s := 0.4rem | |
margin-m := 0.6rem | |
margin-l := 1rem | |
margin-xl := 10rem | |
padding-xs := 0.2rem | |
padding-s := 0.4rem | |
padding-m := 0.6rem | |
padding-l := 1rem | |
padding-xl := 1.5rem |
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
remove_shortcode( 'embed' ); | |
remove_filter( 'the_content', [ $GLOBALS['wp_embed'], 'autoembed' ], 8 ); | |
remove_filter( 'the_content', [ $GLOBALS['wp_embed'], 'run_shortcode' ], 8 ); | |
remove_action( 'edit_form_advanced', [ $GLOBALS['wp_embed'], 'maybe_run_ajax_cache' ] ); |
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 replace_admin_open_sans() { | |
wp_deregister_style( 'open-sans' ); | |
wp_register_style( 'open-sans', false ); | |
wp_enqueue_style( 'open-sans', '' ); | |
} | |
add_action( 'init', replace_admin_open_sans'); |
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
angular.module('test-app') | |
.factory('myHttpInterceptor', ['$q', function($q) { | |
return { | |
'response': function(res) { | |
console.log('New request', res, res.headers()); | |
return res || $q.when(res); | |
}, | |
'responseError': function(rej) { | |
if (canRecover(rej)) return responseOrNewPromise; |
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
div{ | |
overflow-y: scroll; | |
} | |
div::-webkit-scrollbar { | |
width: 9px; | |
} | |
div::-webkit-scrollbar-track { | |
border-radius: 5px; | |
background: rgba(0,0,0,0.1); | |
} |
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
.mailchimp {} | |
.mailchimp__email {} | |
.mailchimp__spamnet { | |
position: absolute; | |
left: -5000px; | |
} | |
.mailchimp__submit {} |