What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-06 17:19:01
java:image to base64 string example
public static void main(String[] args) throws Exception{ File f = new File("/opt/myImage.jpg"); &nb... Add solution -
Javascript 2021-09-06 06:23:02
mongoose query with function(req, res, next)
router.post('/travellers', passport.authenticate('jwt', { "session": false }), function(req, res, next) { var pickup_location = req.body.pickup_location; var delivery_location = req.body.delivery_location; var date = req.body.dat... Add solution -
SQL 2021-09-06 01:50:02
create a api + python + mysql
import pymysql from app import app from config import mysql from flask import jsonify from flask import flash, request @app.route('/add', methods=['POST']) def add_emp(): try: _json = request.json _name = _json['name'] _email = _json['email'] ... Add solution -
Javascript 2021-09-05 22:44:02
javascript sleep function
const sleep = (milliseconds) => { return new Promise(resolve => setTimeout(resolve, milliseconds)) } /*Use like so*/ async function timeSensativeAction(){ //must be async func //do something here await sleep(5000) //wait 5 seconds //contin... Add solution
Best helpers
Ranking is empty