type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
A Pen by Marcus Obst on CodePen.
| //from https://css-tricks.com/snippets/jquery/smooth-scrolling/ | |
| // Scroll to specific values | |
| // scrollTo is the same | |
| window.scroll({ | |
| top: 2500, | |
| left: 0, | |
| behavior: 'smooth' | |
| }); |
| // http://stackoverflow.com/questions/7279567/how-do-i-pause-a-window-setinterval-in-javascript | |
| function RecurringTimer(callback, delay) { | |
| var timerId, start, remaining = delay; | |
| this.pause = function() { | |
| window.clearTimeout(timerId); | |
| remaining -= new Date() - start; | |
| }; |
| // for multiple requests | |
| let isRefreshing = false; | |
| let failedQueue = []; | |
| const processQueue = (error, token = null) => { | |
| failedQueue.forEach(prom => { | |
| if (error) { | |
| prom.reject(error); | |
| } else { | |
| prom.resolve(token); |
| <!-- WP Template Dir --> | |
| <?php bloginfo('template_directory'); ?> | |
| <!-- WP Child Theme Template Dir --> | |
| <?php get_stylesheet_directory_uri(); ?> | |
| <!-- WP Home Link --> | |
| <?php echo get_option('home') ?> | |
| <!-- WP Search Form --> |
| 1. Theme Structure | |
| - style file | |
| style.css | |
| - header section | |
| header.php | |
| - main section | |
| index.php |
TODO
##Theme Structure
| Template | Description |
|---|---|
| header.php | Header Section |
| index.php | Main Section |
| sidebar.php | Sidebar Section |
| single.php | Post Template |
| page.php | Page Template |
| comments.php | Comment Template |