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
#newsletter-form { | |
color: white; | |
input { | |
border-radius: 0px !important; | |
} | |
.mc4wp-response { | |
text-align: center; | |
@extend .container; | |
margin: 15px 0px; | |
.mc4wp-alert, |
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
public abstract class LoadMoreListener extends RecyclerView.OnScrollListener { | |
private static final int ITEMS_PER_PAGE = 10; | |
private boolean loading = false; | |
private int page = 1; | |
@Override | |
public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) { | |
super.onScrolled(recyclerView, dx, dy); |
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 | |
/* | |
参考自: | |
http://darklaunch.com/2010/09/01/http-status-codes-in-php-http-header-response-code-function | |
http://snipplr.com/view/68099/ | |
*/ | |
function HTTPStatus($num) { | |
$http = array( |
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
//* Adding DNS Prefetching | |
function wp_dns_prefetch() { | |
echo '<meta http-equiv="x-dns-prefetch-control" content="on"> | |
<link rel="dns-prefetch" href="//fonts.googleapis.com" /> | |
<link rel="dns-prefetch" href="//fonts.gstatic.com" /> | |
<link rel="dns-prefetch" href="//ajax.googleapis.com" /> | |
<link rel="dns-prefetch" href="//apis.google.com" /> | |
<link rel="dns-prefetch" href="//google-analytics.com" /> | |
<link rel="dns-prefetch" href="//www.google-analytics.com" /> | |
<link rel="dns-prefetch" href="//ssl.google-analytics.com" /> |
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
Step 1: | |
Go to: C:\Windows\System32\Drivers\etc\hosts | |
And add this to the bottom of the file: | |
============= | |
127.0.0.1 your.domain.com | |
============= | |
Step 2: | |
Go to [your XAMPP directory]/apache/conf/httpd-xampp.conf |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<meta charset="utf-8"> | |
<meta property="og:image" content="https://fotos.subefotos.com/408e393e09f5467a27bfc29faacbc7a3o.jpg" /> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
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 android.graphics.Rect; | |
import android.support.v7.widget.GridLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
public class EqualSpacingItemDecoration extends RecyclerView.ItemDecoration { | |
private final int spacing; | |
private int displayMode; | |
public static final int HORIZONTAL = 0; |