Changing a remote's URL
git remote set-url origin NEW_REMOTE_URL
Clone single branch from repo
git clone -b BRANCH_NAME --single-branch REPO_URL
| <?php | |
| // Add '<b>' tags to search terms in results | |
| function namespace_highlight_results($text){ | |
| if ( is_search() && !is_admin() ){ | |
| $sr = get_query_var('s'); | |
| $keys = explode(" ",$sr); | |
| $keys = array_filter($keys); | |
| $text = preg_replace('/('.implode('|', $keys) .')/iu', '<b>'.$sr.'</b>', $text); | |
| } | |
| return $text; |
| /// Responsive breakpoint manager | |
| /// @access public | |
| /// @param {String} $breakpoint - Breakpoint name | |
| /// @requires $breakpoints | |
| @mixin respond-to($breakpoint) { | |
| $raw-query: map-get($breakpoints, $breakpoint); | |
| @if $raw-query { | |
| $query: if( | |
| type-of($raw-query) == 'string', |
Changing a remote's URL
git remote set-url origin NEW_REMOTE_URL
Clone single branch from repo
git clone -b BRANCH_NAME --single-branch REPO_URL
AFG : Afghanistan
AGO : Angola
ALB : Albania
ARE : United Arab Emirates
ARG : Argentina
ARM : Armenia
ATA : Antarctica
ATF : French Southern and Antarctic Lands
AUS : Australia
AUT : Austria
| // Parallax-like interaction "stolen" from https://www.awwwards.com/PWA-ebook | |
| window.addEventListener('mousemove', move); | |
| function move(){ | |
| var w = window, | |
| d = document, | |
| e = d.documentElement, | |
| g = d.getElementsByTagName('body')[0], | |
| window_width = w.innerWidth||e.clientWidth||g.clientWidth, |