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
| .PHONY: install | |
| install: clean wordpress phpunit wp-cli | |
| git submodule init; | |
| @echo "\n\nNOTICE: You may need to configure a MySQL database for your Wordpress installation. Just run:" | |
| @echo " mysql -u root -p;" | |
| @echo " CREATE DATABASE example_site; \n" | |
| wordpress: latest.tar.gz | |
| tar -zxvf latest.tar.gz; |
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
| <?php | |
| /* | |
| To add Infinite Loop Module provided in Jetpack wordpress Plugin, in Genesis driven site. | |
| */ | |
| /* | |
| Step 1. Install Jetpack Plugin | |
| */ |
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
| //* Register widget areas | |
| genesis_register_sidebar( array( | |
| 'id' => 'parallax-section-below-header', | |
| 'name' => __( 'Parallax Section Below Header', 'your-theme-slug' ), | |
| 'description' => __( 'This is the parallax section below header.', 'your-theme-slug' ), | |
| ) ); | |
| genesis_register_sidebar( array( | |
| 'id' => 'parallax-section-above-footer', | |
| 'name' => __( 'Parallax Section Above Footer', 'your-theme-slug' ), |
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
| #!/bin/sh | |
| # | |
| # Upload image(s) to imgur.com | |
| # Copyright (C) 2014 Vivien Didelot <vivien@didelot.org> | |
| # Licensed under GPL version 3, see http://www.gnu.org/licenses/gpl.txt | |
| # | |
| # Requires "jshon": | |
| # http://kmkeen.com/jshon/ | |
| # | |
| # Alternatives, which suck: |
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
| #!/bin/bash -e | |
| clear | |
| echo "" | |
| echo "=============================================" | |
| echo "# #" | |
| echo "# Welcome to the WordPress Installer #" | |
| echo "# #" | |
| echo "=============================================" | |
| echo "" |
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
| <?php | |
| $permalink = 'http://www.youtube.com'; | |
| $id = 2; | |
| $title = "My book title"; | |
| $pub_date = 'January 15th, 2015'; | |
| $city = "New York"; | |
| $zipcode = '28475'; | |
| $name = 'Bobby'; | |
| $like = 'WordPress'; |
React Component Lifecycle
- getInitialState
- getDefaultProps
- componentWillMount
- componentDidMount
- shouldComponentUpdate (Update only)
- componentWillUpdate (Update only)
- componentWillReceiveProps (Update only)
- render
Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.
My 3 developers team has just developed React.js application with 7668 lines of CSS (and just 2 !important).
During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.
Here are main principles we use to write CSS for modern (IE11+) browsers:
- SUIT CSS naming conventions + SUIT CSS design principles;
- PostCSS + CSSNext. Future CSS syntax like variables, nesting, and autoprefixer are good enough;
- Flexbox is awesome. No need for grid framework;
- Normalize.css, base styles and variables are solid foundation for all components;

