Functions in Bash

Posted on Dec 04, 2019 in Computer Science • Tagged with programming, Bash, functions

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.

By default, variables defined in a function are global, i.e., they are visible outside the function too.


Loops in Bash

Posted on Dec 03, 2019 in Computer Science • Tagged with programming, Bash, loop

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.

Tips and Traps

  1. Forggeting $ is a common mistake when using a shell variable.

Git Shell on Windows

Posted on Oct 14, 2019 in Software • Tagged with Software, Git, shell, Windows, WSL, Windows Subsystem Linux

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! **

It is suggested that you use Git in …


Continue reading

Tips on SAS

Posted on Oct 10, 2013 in Computer Science • Tagged with tips, SAS, programming

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

  1. SAS on Linux recognize …


Continue reading

Tips on Pig

Posted on Jan 09, 2014 in Computer Science • Tagged with programming, big data, Pig, Hadoop, tips

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Tips

  1. Pig uses -- (at the beginning of lines) to comment out lines. It also support C-style comment, i.e., using /* ... */

  2. Filter out records that you don't want …


Continue reading

Install R Kernel for JupyterLab

Posted on Dec 25, 2016 in Programming • Tagged with programming, R, CRAN, IRKernel, Jupyter, JupyterLab

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

  1. Install JupyterLab.
wajig install …

Continue reading