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
Disabling XML-RPC | |
1. Locate your theme folder (usually in “wp-content/themes/”), and open the “functions.php” file. | |
2. Paste the following commands to the end of the file: | |
// Disable use XML-RPC | |
add_filter( 'xmlrpc_enabled', '__return_false' ); | |
Blocking Access to XML-RPC file .htaccess |
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
https://github.com/xinthink/react-native-material-kit | |
https://github.com/react-native-material-design/react-native-material-design | |
https://github.com/react-native-training/react-native-elements | |
https://nativebase.io/ | |
https://github.com/akveo/react-native-ui-kitten |
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
this.refs.messages_scroll_area.scrollTop = this.refs.messages_scroll_area.scrollHeight |
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
import React, { Component } from 'react'; | |
import { findDOMNode } from 'react-dom'; | |
import screenfull from 'screenfull'; | |
import ReactPlayer from 'react-player'; | |
const MULTIPLE_SOURCES = [ | |
{ src: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4', type: 'video/mp4' }, | |
{ src: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv', type: 'video/ogv' }, | |
{ src: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm', type: 'video/webm' } | |
] |
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
constructor(props) { | |
super(props); | |
this.state = { | |
height: window.innerHeight, | |
message: 'not at bottom' | |
}; | |
this.handleScroll = this.handleScroll.bind(this); | |
} | |
handleScroll() { | |
const windowHeight = "innerHeight" in window ? window.innerHeight : document.documentElement.offsetHeight; |
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
//input: 123456789 | |
function number_format(number) { | |
var value_number = number.toLocaleString({minimumFractionDigits: 0}); | |
return value_number; | |
} | |
//output: 123,456,789 |
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
// Fix | |
$('.button').unbind().bind('click', function(event) { | |
event.preventDefault(); | |
//ajax method .... | |
}); |
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
npm install vue-cli -g | |
vue init webpack-simple startbase | |
cd nam_project | |
npm install | |
npm run dev |
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
WHERE $match | |
GROUP BY $group | |
HAVING $match | |
SELECT $project | |
ORDER BY $sort | |
LIMIT $limit | |
SUM() $sum | |
COUNT() $sum | |
join $lookup - New in version 3.2. |