What do you want to save?
Add Code snippet
New code examples
-
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 -
Other 2022-03-27 12:35:57
jinja render template to file
from jinja2 import Environment, FileSystemLoader env = Environment(loader=FileSystemLoader('templates')) template = env.get_template('test.html') output_from_parsed_template = template.render(foo='Hello World!') print(output_from_parsed_template) # to ... Add solution -
Python 2022-03-27 09:45:35
header imitate python
import requests url = 'http://www.ichangtou.com/#company:data_000008.html' headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} response = requests.get(url, ... Add solution -
Other 2022-03-27 07:25:32
adding redirect_uri in octorate testing
In the following example you will find a param that is called redirect_uri, that uri needs to be whitelisted from Octorate. So write [email protected] asking for add the page you can host on your website. This step in mandatory to go in producti... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5