What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-09 12:40:08
query mriqc api with Python
In [2]: def get_iqms(modality, versions=None, software='mriqc'): """ Grab all iqms for the given modality and the list of versions """ url_root = 'https://mriqc.nimh.nih.gov/api/v1/{modality}?{que... Add solution -
Javascript 2022-01-23 22:45:06
php chart table with javascript
<?php$con = mysqli_connect("localhost","root","","salesdb"); if (!$con) { # code... echo "Problem in database connection! Contact administrator!" . mysqli_error(); }else{ $sql ="SEL... Add solution -
PHP 2021-11-10 21:42:15
csv to json php
<?php //Open our CSV file using the fopen function. $fh = fopen("names.csv", "r"); //Setup a PHP array to hold our CSV rows. $csvData = array(); //Loop through the rows in our CSV file and add them to //the PHP ... Add solution -
Javascript 2021-11-08 20:09:12
when do you use javascript in your framework
Sometimes browser don’t react well against selenium commands and we may face issues while locating web elements. To overcome such kind of situation, we use JavaScriptExecutor interface. It provides mechanism to execute Javascript through Selenium d... Add solution -
Python 2021-10-20 18:47:10
youtube subscriber count discord bot activity
import discord from discord.ext import commands from discord.ext.commands import Bot from discord.utils import get import urllib.request import json import asyncio intents = discord.Intents.default() intents.members = True bot = commands.Bot(intents=int... Add solution -
PHP 2021-10-14 19:36:09
return multiple rows from mysqli php and encode JSON
<?php $dashboard_content_token = $_REQUEST["dashboard_content_token"]; $token = "g4"; require(cc_scripts/connect.php); $sql = "SELECT * FROM `dashboard_content`"; $check = strcmp("$token", &... Add solution -
Java 2021-10-09 22:20:05
java get json from url
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.net.URL; import java.nio.charset.Charset; import org.json.JSONException; import org.json.JSONObjec... Add solution -
C++ 2021-10-08 14:57:04
solve linear equation system equation functions in c/c++
#include "stdafx.h" int matrixToValues(char matrix[DIM], double result) { int i = 0, j = 0, k = 0, l = 0; for (i = 0; matrix[i] != '\0'; i++) { if (matrix[i] == ';') { count++; } } for (i = 0; i < count - 1; i++) { for (j = 0; j... Add solution