Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
function hl_theme_icons() { | |
return array( | |
array( 'hl-icon-commerce' => __( 'Commerce', 'js_composer' ) ), | |
array( 'hl-icon-cup-and-plate' => __( 'cup and plate', 'js_composer' ) ), | |
array( 'hl-icon-envelope2' => __( 'envelope2', 'js_composer' ) ), | |
array( 'hl-icon-facebook2' => __( 'facebook2', 'js_composer' ) ), | |
array( 'hl-icon-favorite' => __( 'favorite', 'js_composer' ) ), | |
); | |
} |
Sooo... I'm about to be released into the wild as a free roaming web developer. I won't have the company hosting anymore and it's damn well about time I got my own shit sorted. After a little reading I have decided to give Amazon Web Services a try. So far I am loving it.
I have oooooooodles of control. It's super nerdy and more importantly, it's super fast. Seriously - I had fun.
When I first set this up i tried following some third party tutorials to get a wordpress server setup and running on Amazon Web Services. After some trial and error I found the proper documentation and everything when much more smoothly (I know right)! The AWS docs are very detailed and easy to follow.
// Function | |
function wpex_video_oembed( $video = '', $classes = '', $params = array() ) { | |
// Define output | |
$output = ''; | |
// Sanitize URl | |
$video = esc_url( $video ); | |
// Video required |
In this demonstration I will show you how to read data in Angular2 final release before application startup. You can use it to read configuration files like you do in other languages like Java, Python, Ruby, Php.
This is how the demonstration will load data:
a) It will read an env file named 'env.json'. This file indicates what is the current working environment. Options are: 'production' and 'development';
b) It will read a config JSON file based on what is found in env file. If env is "production", the file is 'config.production.json'. If env is "development", the file is 'config.development.json'.
{ | |
"name": "invited-ionic3", | |
"description": "An Ionic project", | |
"version": "0.0.1", | |
"author": "Ionic Framework", | |
"homepage": "http://ionicframework.com/", | |
"private": true, | |
"scripts": { | |
"clean": "ionic-app-scripts clean", | |
"build": "ionic-app-scripts build", |