Provider | Singleton | Instantiable | Configurable |
---|---|---|---|
Constant | Yes | No | No |
Value | Yes | No | No |
Service | Yes | No | No |
Factory | Yes | Yes | No |
Decorator | Yes | No? | No |
Provider | Yes | Yes | Yes |
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
library(data.table) | |
library(h2o) | |
# Load train and properties data | |
properties <- fread("../input/properties_2016.csv", header=TRUE, stringsAsFactors=FALSE, colClasses = list(character = 50)) | |
train <- fread("../input/train_2016_v2.csv") | |
training <- merge(properties, train, by="parcelid",all.y=TRUE) | |
# Initialise h20 |
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
<html> | |
<head> | |
<title>Angular 2 First App</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="styles.css"> | |
<!-- 1. Load libraries --> | |
<!-- Polyfill(s) for older browsers --> | |
<script src="node_modules/core-js/client/shim.min.js"></script> | |
<script src="node_modules/zone.js/dist/zone.js"></script> |
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
//* Modify the speak your mind title in comments | |
add_filter( 'comment_form_defaults', 'sv_comment_form_defaults' ); | |
function sv_comment_form_defaults( $defaults ) { | |
$defaults['title_reply'] = __( 'Comments' ); | |
return $defaults; | |
} |
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
//* Modify the size of the Gravatar in comments | |
add_filter( 'genesis_comment_list_args', 'sv_comments_gravatar' ); | |
function sv_comments_gravatar( $args ) { | |
$args['avatar_size'] = 96; | |
return $args; | |
} |
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
//* Customize the submit button text in comments | |
add_filter( 'comment_form_defaults', 'sv_comment_submit_button' ); | |
function sv_comment_submit_button( $defaults ) { | |
$defaults['label_submit'] = __( 'Submit', 'custom' ); | |
return $defaults; | |
} |
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
//* Add a comment policy box in comments | |
add_action( 'genesis_after_comments', 'sv_comment_policy' ); | |
function sv_comment_policy() { | |
if ( is_single() && !is_user_logged_in() && comments_open() ) { | |
?> | |
<div class="comment-policy-box"> | |
<p class="comment-policy"><small><strong>Comment Policy:</strong>All the comments and approved upon verification</small></p> | |
</div> | |
<?php |
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
//* Modify the comment link text in comments | |
add_filter( 'genesis_post_info', 'sv_post_info_filter' ); | |
function sv_post_info_filter( $post_info ) { | |
return '[post_comments zero="Leave a Comment" one="1 Comment" more="% Comments"]'; | |
} |
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
//* Modify the size of the Gravatar in the author box | |
add_filter( 'genesis_author_box_gravatar_size', 'author_box_gravatar_size' ); | |
function author_box_gravatar_size( $size ) { | |
return '80'; | |
} |