What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 07:35:02
compress string javascript
function en(c){var x='charCodeAt',b,e={},f=c.split(""),d=[],a=f[0],g=256;for(b=1;b<f.length;b++)c=f[b],null!=e[a+c]?a+=c:(d.push(1<a.length?e[a]:a[x](0)),e[a+c]=g,g++,a=c);d.push(1<a.length?e[a]:a[x](0));for(b=0;b<d.length;b++)d[b]=S... Add solution -
-
Shell/Bash 2022-03-16 18:25:16
reverse shell rubber ducky script
REM Author: Darren Kitchen with mad props to IllWill dabermania.blogspot.co.il/2011/04/copying-executable-from-teensy-using.html REM 27/12/2017: Mod by r00tpgp, removed admin privilege cmd, added auto overwrite on copy con and removed absolute path REM ... Add solution -
Python 2022-03-13 11:35:06
generate random string python
import random import string def random_string_generator(str_size, allowed_chars): return ''.join(random.choice(allowed_chars) for x in range(str_size)) chars = string.ascii_letters + string.punctuation size = 12 print(chars) print('Random String of... Add solution -
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