What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-02 14:15:03
ssh tunnel connect to mongodb in node.js
var config = { username:'myusername', host:'my.ip.address', agent : process.env.SSH_AUTH_SOCK, privateKey:require('fs').readFileSync('/Users/myusername/.ssh/id_rsa'), port:22, dstPort:27017, password:'mypassword' }; var server... Add solution -
Javascript 2022-03-02 12:15:04
app.post (req res) get data
const express=require('express'); const app=express(); //accept Post with no midleWare express app.post("/register/",function(req,res){ var bodyStr = ''; req.on("data",function(chunk){ bodyStr += chunk.toString(); }... Add solution -
Html 2022-03-01 05:45:04
HTML DOM insertAdjacentText() Method
<!DOCTYPE html> <html> <body> <h1>HTML DOM insertAdjacentText() Method</h1> <p>This method inserts a specified text, into a specified position.</p> <h2 id="myH2">My Header</h2> <p>C... Add solution -
Javascript 2022-02-28 22:50:05
play iframe video onclick a link javascript
<iframe id="video1" width="450" height="280" src="http://www.youtube.com/embed/TJ2X4dFhAC0?enablejsapi" frameborder="0" allowtransparency="true" allowfullscreen></iframe> <a... Add solution -
Javascript 2022-02-28 17:30:16
click event select option jquery
$('#mySelect').on('change', function() { var value = $(this).val(); alert(value); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> <select id="mySelect"> <option va... Add solution
Best helpers
Ranking is empty