What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-24 19:45:12
record and store audio in pythn
import pyaudio import wave chunk = 1024 # Record in chunks of 1024 samples sample_format = pyaudio.paInt16 # 16 bits per sample channels = 2 fs = 44100 # Record at 44100 samples per second seconds = 3 filename = "output.wav" p = pyaudio.PyA... Add solution -
Python 2022-02-16 01:25:02
python dash plotly scatter draw a circle on the map
import plotly.express as px import geopandas as gpd import shapely.geometry import numpy as np import wget # download a zipped shapefile wget.download("https://plotly.github.io/datasets/ne_50m_rivers_lake_centerlines.zip") # open a zipped shap... Add solution -
Other 2022-02-15 17:25:13
selenium addd chrome extension
from selenium import webdriver from selenium.webdriver.chrome.options import Options options = webdriver.ChromeOptions() options.add_extension('./exampleOfExtensionDownloadedToFolder.crx') driver = webdriver.Chrome(chrome_options=options) driver.get('... Add solution -
-
Other 2022-02-10 08:05:02
select dropdown selenium
from selenium import webdriver from selenium.webdriver.support.ui import Select driver = webdriver.Firefox() driver.get('url') select = Select(driver.find_element_by_id('fruits01')) # select by visible text select.select_by_visible_text('Banana') # se... Add solution -
Other 2022-02-07 13:55:12
import from csv neo4j limit
//answer by: Fabio Lamanna go upvote him You can limit the rows you want to import with: USING PERIODIC COMMIT LOAD CSV WITH HEADERS 'file:///yourcsvfile.csv' AS row WITH row LIMIT 1000 ... and then continue with your usual import Cypher statements. Thi... Add solution