What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-13 18:04:06
bash edit prompt display appearance
# syntax: # export PS1='<Format required>' # example: export PS1='\[\033[1;33m\]\u@\[\e[0;36m\]\h:\[\e[1;32m\]$(pwd)\[\e[1;32m\]> \[\033[1;37m\]' #=========================================================================================== # +... Add solution -
Javascript 2021-10-13 09:43:03
js rgba to hex
function rgbToHex(r, g, b) { return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1); } function hexToRgb(hex) { var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); if(result){ var... Add solution -
C 2021-10-12 10:17:05
how to stop scanf from adding a new line in c
For a simple solution, you could add a space before the format specifier when you use scanf(), for example: scanf(" %c", &ch); The leading space tells scanf() to skip any whitespace characters (including newline) before reading the next char... Add solution -
Shell/Bash 2021-10-11 04:53:05
install choco windows 10
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString(... Add solution -
Go 2021-10-11 02:18:03
how to make code in google docs
Code Blocks makes it easy to put your code into Google Docs. Simply select some text, click the "Format" button, and it will be formatted with the color theme of your choice. Features: • One-click syntax highlighting • Automatic langu... Add solution -
Java 2021-10-11 01:44:09
java add commas to numbers
String number = "1000500000.574"; double amount = Double.parseDouble(number); DecimalFormat formatter = new DecimalFormat("#,###.00"); // the zeroes after the point are the number of digits shown after the period // you can also switch... Add solution