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 scroller = function() { | |
var scrollPosition = $(window).scrollTop(); | |
if ( scrollPosition < 90 ) { | |
var bgColor = 'rgba(0, 0, 0, ' + (scrollPosition / 100) + ')'; | |
$('.navbar').css('background-color', bgColor); | |
} else { | |
$('.navbar').css('background-color', 'rgba(0, 0, 0, 0.9)'); | |
} | |
} |
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
... | |
add_action( 'init', 'create_media_category' ); | |
function create_media_category() { | |
register_taxonomy( | |
'media_category', // taxonomy machine name | |
'attachment', // content type | |
array( | |
'labels' => array( |
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
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": "\t", | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "double", |
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 | |
git remote rm origin | |
git remote add origin $1 | |
git push -u origin --all |
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 | |
tar -cvzf /compress.tar.gz /directory-to-compress/ |