What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-27 19:50:05
mongodb uploading csv php
<?php $mongo = new Mongo("mongodb://192.168.1.7:27017"); $collection = $mongo->test->cartoons; $row = 1; $handle = fopen(dirname(Yii::app()->request->scriptFile).'/images/importcsv/upload.csv', "r"); while (($data... Add solution -
C++ 2022-03-20 08:10:06
tuple with functions c++
#include <tuple> #include <iostream> #include <string> #include <stdexcept> std::tuple<double, char, std::string> get_student(int id) { if (id == 0) return std::make_tuple(3.8, 'A', "Lisa Simpson"); i... Add solution -
Other 2022-03-17 17:20:02
longest chain of same elemetns in an array
#include<bits/stdc++.h> using namespace std; #define ll long long int main(){ ll n; cin>>n; ll a[n]; for(ll i=0;i<n;++i){ cin>>a[i]; } ll temp=1,ans=1; for (ll i = 1; i < n; i++) { if (a[i] >= a[i - 1]... Add solution -
Other 2022-03-16 11:40:02
bits/stdc++.h visual studio
To use bits/stdc++.h preprocessor in Visual Studio you need to download the stdc++.h file from the given below link. Download file from the following link: https://mega.nz/file/feIXkY7a#ECkj1bZKA-72dYzatuKsgBQJ4lMe0v81sfxuhyKCNk0 Create bits folder in th... Add solution -
Javascript 2022-03-16 11:00:03
append new element for each value in array d3.js
var data = [ ["colours", "green", "blue"], ["shapes", "square", "triangle"], ["languages", "javascript", "c++"] ]; var svg = d3.select("body")... Add solution