This document is useful to developers who know either JavaScript or Ruby and want to learn the other language. Note that the code provided for comparison may not have the exact same behaviour. Edge cases are not covered extensively.
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 -> pnpm redirector | |
| # For those people who hate typing "pnpm" or even saying it | |
| # | |
| # INSTRUCTIONS | |
| # APPEND the following lines in our ~/.bashrc or ~/.zshrc | |
| ### npm -> pnpm shim start (https://gist.github.com/sidx1024/22b07c6dda9ca707d7b91e148d2e86ef) | |
| export REAL_NPM_BIN="$(command -v npm)" | |
| _find_pm_root() { |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| <!DOCTYPE html> | |
| <html> | |
| <!--[if IE 5]><b>Internet Explorer version 5 </b><![endif]--> | |
| <!--[if IE 6]><b>Internet Explorer version 6 </b><![endif]--> | |
| <!--[if IE 7]><b>Internet Explorer version 7 </b><![endif]--> | |
| <!--[if IE 8]><b>Internet Explorer version 8 </b><![endif]--> | |
| <!--[if IE 9]><b>Internet Explorer version 9 </b><![endif]--> | |
| <br/><br/> | |
| <script> | |
| var _navigator = {}; |