Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
//Convenience Wrapper functions | |
//Using TaskGraph | |
FGraphEventRef RunLambdaOnGameThread(TFunction< void()> InFunction) | |
{ | |
return FFunctionGraphTask::CreateAndDispatchWhenReady(InFunction, TStatId(), nullptr, ENamedThreads::GameThread); | |
} | |
FGraphEventRef RunLambdaOnAnyThread(TFunction< void()> InFunction) | |
{ |
Facebook tutorials and resources:
Why be interested:
#!/bin/bash | |
# https://meteorhacks.com/introduction-to-ddp.html | |
# https://meteorhacks.com/discover-meteor-ddp-in-realtime.html | |
if which ddp-analyzer-proxy 2>/dev/null; then | |
echo "ddp-analyzer-proxy found in $(which ddp-analyzer-proxy)" | |
elif [ -f $(npm root)/.bin/ddp-analyzer-proxy ]; then | |
echo "ddp-analyzer-proxy found in $(npm root)/.bin/ddp-analyzer-proxy" | |
export PATH="$(npm root)/.bin/:$PATH" |
upstream haproxy { | |
server 127.0.0.1:9000; | |
} | |
upstream stats { | |
server 127.0.0.1:9999; | |
} | |
server { | |
listen 80; ## listen for ipv4; this line is default and implied |
(function($) { | |
// My micro jQuery templating engine | |
// Include this script before your closing </body> tag. | |
// Usage: | |
// | |
// <section data-html="content"></section> | |
// | |
// This will load <html/content.html> into <section> |