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
import * as React from 'react'; | |
import { withRouter } from 'react-router-dom'; | |
import { isLoggedIn } from '../../security/authentication'; | |
import routeTo from '../utils/routeTo'; | |
const authenticatedMiddleware = Component => { | |
class AuthenticatedMiddleware extends React.PureComponent { | |
componentDidMount() { | |
this.redirectIfNotAuthenticated(); |
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
<?php | |
if ( ! function_exists('config_path')) | |
{ | |
/** | |
* Get the configuration path. | |
* | |
* @param string $path | |
* @return string | |
*/ |
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
0. RESOURCES | |
http://www.smashingmagazine.com/2014/06/25/how-to-speed-up-your-wordpress-website/ | |
1. IDENTIFY PLUGINS THAT ARE SLOWING YOU DOWN | |
https://wordpress.org/plugins/p3-profiler/ | |
2. COMPRESS YOUR WEBSITE | |
http://checkgzipcompression.com/ | |
https://gist.github.com/illycz/1b896273dfd4cf26d184 |
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
server { | |
listen 0.0.0.0:12345; | |
location / { | |
root /home/zdwolfe/src/angularAWS/app; | |
try_files $uri $uri/ /index.html =404; | |
} | |
} |
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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |