(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
class Func { | |
static loop(cnt, func) { | |
'v' | |
.repeat(cnt) | |
.split('') | |
.map((_, idx) => func(idx)); | |
} | |
} |
# 1 for Linux | |
# curl -L https://gist.githubusercontent.com/scplay/5e2b68133f2a0486596f25fa45fc4c18/raw/4aa4247f593c7d0987ff6a531be11b7d9dadbfd1/.bash_profile >> ~/.bashrc | |
# 1 for Win | |
# copy this file to windows git bash ~/.bashrc file | |
# 1 for Mac iterm2 | |
# curl -L https://gist.githubusercontent.com/scplay/5e2b68133f2a0486596f25fa45fc4c18/raw/4aa4247f593c7d0987ff6a531be11b7d9dadbfd1/.bash_profile >> ~/.zshrc | |
# 2 open new terminal |
/* https://leahayes.wordpress.com/2011/08/28/documenting-javascript-with-jsdoc3/ | |
Namespaces can still be documented when a more abstract mechanism is used. @lends allows members to be added to an existing namespace: | |
*/ | |
/** | |
* Root namespace | |
* @namespace root | |
*/ | |
$namespace('root', /** @lends root **/ { | |
/** |
/** | |
* Check if an element is truncated. | |
* | |
* CSS to be used: | |
* .truncate { | |
* width: 250px; | |
* white-space: nowrap; | |
* overflow: hidden; | |
* text-overflow: ellipsis; | |
* } |
#!/usr/bin/env bash | |
GEMS=$(cat <<EOF | |
childprocess-0.5.8.gem | |
ffi-1.9.10.gem | |
little-plugger-1.1.4.gem | |
micromachine-1.1.0.gem | |
multi_json-1.11.1.gem | |
net-ssh-2.9.2.gem | |
rest-client-1.6.9.gem |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
1. Open /Applications/XAMPP/etc/httpd.conf | |
2. Enable the following Modules by removing the # at the front of the line. | |
- LoadModule rewrite_module modules/mod_rewrite.so | |
- LoadModule proxy_module modules/mod_proxy.so | |
- LoadModule proxy_http_module modules/mod_proxy_http.so | |
3. Copy and Paste below to the bottom of httpd.conf | |
# Implements a proxy/gateway for Apache. |
<snippet> | |
<content><![CDATA[base(this, '${1:method}'${2});${0}]]></content> | |
<tabTrigger>base</tabTrigger> | |
<scope>source.js</scope> | |
<description>Base method call</description> | |
</snippet> |