What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-04 09:43:02
global and local variables in c
#include <stdio.h> //local parameters take precedance to global// /* global variable declaration */ int a = 20; int main () { /* local variable declaration in main function */ int a = 10; int b = 20; int c = 0; printf ("value... Add solution -
Shell/Bash 2021-08-30 05:24:02
awk round numbers up
# Basic syntax: awk 'BEGIN {printf "%.0f\n", $field_to_round}' input_file # Where: - %.0f specifies that the field_to_round will have a precision # of 0 digits (i.e. it will be rounded to an integer). # Example usage: awk 'BEGIN {printf &quo... Add solution -
Shell/Bash 2021-08-29 08:09:03
self-documenting makefile
.PHONY: help help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' # All rules with double-hash comments will be automatically displayed in th... Add solution -
Shell/Bash 2021-08-28 19:08:02
ubuntu nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$... Add solution -
Shell/Bash 2021-08-28 08:00:02
linux install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$... Add solution -
Shell/Bash 2021-08-28 02:12:02
bash similiar to choice in cmd
#!/bin/sh show_menu(){ normal=`echo "\033[m"` menu=`echo "\033[36m"` #Blue number=`echo "\033[33m"` #yellow bgred=`echo "\033[41m"` fgred=`echo "\033[31m"` printf "\n${menu}***... Add solution -
Javascript 2021-08-27 18:23:02
install node js using nvm ubuntu
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$... Add solution -
Shell/Bash 2021-08-26 16:50:02
nvm
## Ubuntu curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash ## Set in your .bashrc or .zshrc export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XD... Add solution -
Shell/Bash 2021-08-26 10:50:02
install nvm ubuntu
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$... Add solution
Best helpers
ZhenYu Wang
+5
Christie
+5
Hongyan
+5
Rane Chetan
+5
Sharp Wit
+5
Mythio
+5
Alana
+5
Tjb1982
+5
Ms.Zizmor
+5
Bossylobster
+5
Realh
+5
Miros
+5
Jack Steele
+5
Mike
+5
Don Yarber
+5
Ms.crystal
+5
Robert Astle
+5
Joshua Burns
+5
Sea shell
+5
Zolani13
+5
Meldie Ching
+5
Nancye S....
+5
Oritatami
+5
Zhanxiong
+5
FirstLegion
+5
KItis
+5
S k pandey
+5
Androider
+5