What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-05 16:30:04
how to get keyboard input and if no input is pressed program doesn't stop 8086
BITS 16 ORG 100h _loop: ; ; L O O P S T U F F ; ;Show a greeting message mov ah, 09h mov dx, strGreetings int 21h ; ; K E Y S C H E C K ; ;Check for a keystroke mov ah, 01h int 16h jz _loop ;ZF is s... Add solution -
Shell/Bash 2021-10-10 08:03:05
command to transform to asci code
#First way to convert to ascii code printf "\x$(printf %x 65)" #Second way to convert to ascii code set $(printf %x 65) printf "\x$1" #Third way to convert to ascii code awk 'BEGIN{printf "%c", 65}' Add solution -
Javascript 2021-10-08 02:26:07
binary agents freecodecamp
const binaryAgent = str => { let string = '' str.split(' ').forEach(elem => { // Converts binary numbers to base 2 const toBase = Number.parseInt(elem, 2) // Then convert the ASCII code which is now (toBase) to unicode string +=... Add solution -
Shell/Bash 2021-10-02 10:14:02
command to transform to asci code bash
#First way to convert to ascii code printf "\x$(printf %x 65)" #Second way to convert to ascii code set $(printf %x 65) printf "\x$1" #Third way to convert to ascii code awk 'BEGIN{printf "%c", 65}' Add solution -
Javascript 2021-09-20 20:44:03
string reduction javascript
// method to extend String to call reduce the same way as an Array String.prototype.reduce = function () { return this.split().reduce(...arguments); } // sum of the ascii codes using the newly created String prototype method str.reduce((a,b) => a... Add solution -
Other 2021-09-19 21:36:02
Escaping special characters in JSON / list of invalid characters to strip from JSON string
A JSON string must be double-quoted, according to the specs, so you don't need to escape '. If you have to use special character in your JSON string, you can escape it using \ character. See this list of special character used in JSON : \b Backspace (a... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5