What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-08 09:41:28
python json web request
import requests url = 'http://maps.googleapis.com/maps/api/directions/json' params = dict( origin='Chicago,IL', destination='Los+Angeles,CA', waypoints='Joplin,MO|Oklahoma+City,OK', sensor='false' ) resp = requests.get(url=url, params=p... Add solution -
PHP 2021-11-07 22:10:17
php cors header multiple domains
//Function to be called first in php file. function CORS_HEADERS_HANDLER(){ if (isset($_SERVER['HTTP_ORIGIN'])){ switch($_SERVER['HTTP_ORIGIN']){ //Handle an IP address and Port case 'http://1.2.3.4:4200': header('Access-Contro... Add solution -
C# 2021-11-06 16:27:25
Levenshtein.jaro_winkler c#
public static class JaroWinklerDistance { /* The Winkler modification will not be applied unless the * percent match was at or above the mWeightThreshold percent * without the modification. * Winkler's paper used a default value of 0... Add solution -
Html 2021-11-06 12:54:18
html static widget code
// Step 1 function codepotent_display_static_dashboard_widget() { ?> <div style="display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fit,minmax(48%,1fr));grid-template-rows:1fr;grid-gap:20px;"> &... Add solution -
Python 2021-11-06 11:46:08
keras auc without tf.metrics.auc
import tensorflow as tf from sklearn.metrics import roc_auc_score def auroc(y_true, y_pred): return tf.py_func(roc_auc_score, (y_true, y_pred), tf.double) # Build Model... model.compile(loss='categorical_crossentropy', optimizer='adam',metrics=['ac... Add solution -
Javascript 2021-11-05 16:51:16
download combotree grid js
<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>Basic ComboTree - jQuery EasyUI Demo</title> <link rel="stylesheet" type="text/css" href="../../themes/default/eas... Add solution -
Python 2021-11-05 15:09:14
how to multiply in python
Multiply two integer numbers num1=int(input("Enter the first number: ")) #input value for variable num1 num2=int(input("Enter the second number: ")) #input value for variable num2 mul=num1*num2; #perform multiplication operation print... Add solution