What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 17:55:11
vscode pylint missing-function-docstring
You can add "--errors-only" flag for pylint to disable warnings. To do this, go to settings. Edit the following line: "python.linting.pylintArgs": [] As "python.linting.pylintArgs": ["--errors-only"] Add solution -
Other 2022-03-27 17:30:32
merge sort algo
// @see https://www.youtube.com/watch?v=es2T6KY45cA&vl=en // @see https://www.cs.usfca.edu/~galles/visualization/ComparisonSort.html function merge(list, start, midpoint, end) { const left = list.slice(start, midpoint); const right = list.sli... Add solution -
Shell/Bash 2022-03-27 16:35:31
wget typo3 8
wget https://get.typo3.org/8.7 -O 8.7.32.tar.gz Add solution -
Html 2022-03-27 15:55:03
how to get html code in selenium python
#_*_coding: utf-8_*_ from selenium import webdriver import time # start web browserbrowser=webdriver.Firefox() # get source codebrowser.get("https://en.wikipedia.org") html = browser.page_source time.sleep(2) print(html) # close web browser br... Add solution -
Other 2022-03-27 15:20:36
mongodb populate in same collection
async function lookup() { const times = []; for (let i = 0; i < 10; ++i) { let startTime = Date.now(); const orders = await Order.aggregate([ {$match: {completed: true}}, { $lookup: { from: 'users', localField: 'user', foreignField:... Add solution -
Python 2022-03-27 14:10:11
keras preprocess_input
from tensorflow.keras.applications.resnet50 import ResNet50 from tensorflow.keras.preprocessing import image from tensorflow.keras.applications.resnet50 import preprocess_input, decode_predictions import numpy as np model = ResNet50(weights='imagenet') ... Add solution -
Other 2022-03-27 12:00:11
unity make raycast ignore object
Transform targetTransform = null; // target assigned in inspector RaycastHit[] hits; // returned hits LayerMask mask = new LayerMask(); // set in inspector - USE LAYER MASK TO FILTER hits = Physics.RaycastAll(transform.position, transform.forward, ma... Add solution -
Shell/Bash 2022-03-27 11:50:13
vim search and replace between lines
# Basic syntax: :<start_number>,<end_number>s/search_text/replacement_text/g # Example usage: # Say you have a file with the following text and only want to change # mispeled to misspelled on lines 2 and 3: 1. I mispeled a word on this line ... Add solution