Udate /etc/hosts or c:\windows\system32\drivers\etc\hosts file so that the new servername is mapped to 127.0.0.1
Apache config file changes document root
DocumentRoot "/Users/hoan/www"
<Directory "/Users/hoan/www">
#
| /* | |
| * RC4 symmetric cipher encryption/decryption | |
| * | |
| * @license Public Domain | |
| * @param string key - secret key for encryption/decryption | |
| * @param string str - string to be encrypted/decrypted | |
| * @return string | |
| */ | |
| function rc4(key, str) { | |
| var s = [], j = 0, x, res = ''; |
Udate /etc/hosts or c:\windows\system32\drivers\etc\hosts file so that the new servername is mapped to 127.0.0.1
Apache config file changes document root
DocumentRoot "/Users/hoan/www"
<Directory "/Users/hoan/www">
#
| /** | |
| * MediaFormat | |
| * format and return only needed pieces of media from their public sources | |
| * Author: Trevor Clarke | |
| */ | |
| function MediaFormat (){ | |
| // http://www.youtube.com/embed/m5yCOSHeYn4 | |
| var ytRegEx = /^(?:https?:\/\/)?(?:i\.|www\.|img\.)?(?:youtu\.be\/|youtube\.com\/|ytimg\.com\/)(?:embed\/|v\/|vi\/|vi_webp\/|watch\?v=|watch\?.+&v=)((\w|-){11})(?:\S+)?$/; | |
| // http://vimeo.com/3116167, https://player.vimeo.com/video/50489180, http://vimeo.com/channels/3116167, http://vimeo.com/channels/staffpicks/113544877 | |
| var vmRegEx = /https?:\/\/(?:vimeo\.com\/|player\.vimeo\.com\/)(?:video\/|(?:channels\/staffpicks\/|channels\/)|)((\w|-){7,9})/; |
| 'use strict'; | |
| module.exports = function CustomError(message, extra) { | |
| Error.captureStackTrace(this, this.constructor); | |
| this.name = this.constructor.name; | |
| this.message = message; | |
| this.extra = extra; | |
| }; | |
| require('util').inherits(module.exports, Error); |
| # Delete prior revisions from a GitHub wiki so that only the most-recent | |
| # version of the content is available. | |
| # Clone the wiki. | |
| git clone https://github.com/[user]/[repo].wiki.git | |
| # Remove the .git folder. | |
| rm -rf .git | |
| # Reconstruct the local repo with only latest content |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParentAssuming project is SOME/PROJECT
And you are FOO
You will need to do the following one time only:
SOME/PROJECT repository under your namespace.Create the first page. You will get an error (that's ok!)| /* | |
| load uasset from file path. | |
| */ | |
| FString filepath("/Game/an_animation_file"); // without extension, path start with `/Game`, `/Game` refer-> `Content` folder in real. | |
| FStringAssetReference asset_stream_ref(filepath); | |
| TAssetPtr<UAnimationAsset> animation_asset(asset_stream_ref); | |
| UAnimationAsset* animation = animation_asset.LoadSynchronous(); | |
| bool isValid = animation_asset.IsValid(); | |
| bool isNull = animation_asset.IsNull(); | |
| bool isPending = animation_asset.IsPending(); |
| #include <uWS/uWS.h> | |
| #include <iostream> | |
| unsigned long getTime(); | |
| int main(int argc, char *argv[]) { | |
| uWS::Hub h; | |
| h.onMessage([](uWS::WebSocket<uWS::SERVER> *ws, char *data, size_t length, uWS::OpCode opCode) { |