What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-21 21:21:11
get data from elasticsearch to jupyter
from datetime import datetime from elasticsearch import Elasticsearch from pandas import DataFrame, Series import pandas as pd import matplotlib.pyplot as plt es = Elasticsearch(host="192.168.121.252") res = es.search(index="_all", doc... Add solution -
Other 2021-11-19 13:08:11
Capturing enter in javascript
//You can use onKeyPress directly on input field. onChange function changes //state value on every input field change and after Enter //is pressed it will call a function search(). <input type="text" placeholder="Search..."... Add solution -
Python 2021-11-19 05:35:25
find text between two strings regex python
>>> import re >>> s = 'Part 1. Part 2. Part 3 then more text' >>> re.search(r'Part 1\.(.*?)Part 3', s).group(1) ' Part 2. ' >>> re.search(r'Part 1(.*?)Part 3', s).group(1) '. Part 2. ' Add solution -
Python 2021-11-19 00:05:10
read emails from gmail python
# Python 3.8.0 import smtplib import time import imaplib import email import traceback # ------------------------------------------------- # # Utility to read email from Gmail Using Python # # ------------------------------------------------ ORG_EMAIL = ... Add solution -
Javascript 2021-11-18 20:28:25
get $_get in javascript
var parts = window.location.search.substr(1).split("&"); var $_GET = {}; for (var i = 0; i < parts.length; i++) { var temp = parts[i].split("="); $_GET[decodeURIComponent(temp[0])] = decodeURIComponent(temp[1]); } conso... Add solution -
Dart 2021-11-17 07:50:24
search in flutter listview
import 'package:flutter/material.dart';void main() => runApp(new MyApp());class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return new MaterialApp( title: 'Fl... Add solution -
Javascript 2021-11-16 02:32:28
fetch file on server using jquery
$.get(url) .done(function (responseText) { // things to do when file is found and use below condition // if only the server redirection is on a = responseText if (a.search("a sample string from response html") &l... Add solution
Best helpers
Amine
+5
Asgs
+5
Jboeke
+5
Frank Gado
+5
Jim MacA
+5
Lightalloy
+5
PeterSalz
+5
Altendky
+5
GiantDuck
+5
Faerubin
+5
David Baucum
+5
Ravin Online
+5
Xemnarth
+5
Withkare
+5
DSM
+5
Njbair
+5
Troy Woo
+5